[CppAD] tests with ADOLC
Brad Bell
bradbell at seanet.com
Thu Sep 6 08:27:19 EDT 2012
Is the directory
/opt/adolc/221/adolc_base/lib
is in your LD_LIBRARY_PATH ?
Under the heading "adolc_dir" and the subheading "Linux" on the web page
http://www.coin-or.org/CppAD/Doc/installunix.xml#adolc_dir.Linux
the following text appears
Linux
If you are using Linux, you will have to add to following lines to the
file .bash_profile in your home directory:
LD_LIBRARY_PATH=adolc_dir/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
in order for Adolc to run properly.
What is really needed here is that the shell that runs the program must
have the adolc library directory included in LD_LIBRARY_PATH
On 09/05/2012 03:11 PM, Rishi Amrit wrote:
> Hi,
>
> I followed the instructions on the install page and tried to make
> the tests. This is what I get:
>
> g++ -O2 -DNDEBUG -DSPEED_ADOLC -L../src
> -L/opt/adolc/221/adolc_base/lib -L/opt/adolc/221/adolc_base/lib64 -o
> adolc alloc_mat.o main.o det_lu.o det_minor.o mat_mul.o ode.o poly.o
> sparse_hessian.o sparse_jacobian.o -lspeed -ladolc
> make[2]: Leaving directory `/opt/cppad/2012/speed/adolc'
> ./adolc correct 123
> ./adolc: error while loading shared libraries: libadolc.so.1: cannot
> open shared object file: No such file or directory
> make[1]: *** [test] Error 127
> make[1]: Leaving directory `/opt/cppad/2012/speed/adolc'
> make: *** [test] Error 2
>
>
> Its not finding adolc library file in the location, even though it is
> there:
>
> /opt/cppad/2012$ ls /opt/adolc/221/adolc_base/lib64
> libadolc.a libadolc.la <http://libadolc.la> libadolc.so
> libadolc.so.1 libadolc.so.1.1.1
>
> Any help would be appreciated.
>
> Thanks,
>
> Kind regards,
> R.
>
>
>
> _______________________________________________
> CppAD mailing list
> CppAD at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cppad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cppad/attachments/20120906/de604e60/attachment.html>
More information about the CppAD
mailing list