|
From: | Jacob Dawid |
Subject: | Re: How I do link arpack to eigs.cc and svd.cc on the Ubuntu build? |
Date: | Tue, 10 Jan 2012 09:09:45 +0100 |
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
Hello
After 'make' of arpack, I did
$ sudo make install
After that,
ls /usr/local/lib
libarpack.a libarpack.so libarpack.so.2.0.0 octave python2.7
libarpack.la libarpack.so.2 ocaml pkgconfig
Have to I add /usr/local/lib to LD_LIBRARY_PATH and/or LD_RUN_PATH?
Regards
Tatsuro
--- On Tue, 2012/1/10, Jacob Dawid wrote:
> Dear Matsuoka-san,
>
> usually you type 'make' to compile a project. If you want to make your library available system-wide, you need to do 'make install' with root privileges, ie. 'sudo make install' in the folder you built arpack. This will enable you to use -larpack as a switch. Did you do that?
>
> Cheers,
> Jacob
>
>
> Am 10. Januar 2012 07:34 schrieb Tatsuro MATSUOKA <address@hidden>:
> Hello
>
> I have built arpack-3.0.0 by myself and tried to link it to the octave (using the source octave-3.5.92).
>
> I added LIB='-larpack'
>
> which was effective on windows build.
>
> However, all tests of eigs.cc failed on the Ubuntu 11.10 (32bit).
>
> I am a newbie to the Ubuntu (correctly newbie to the Linux) so that I cannot understand the behaviors happned.
>
> It would be grateful for me someone will show me the way.
>
> Regards
>
> Tatsuro
>
>
>
> --
> „Alle sagten: Das geht nicht. Da kam einer, der wusste das nicht und hat's gemacht.“ - Unbekannt
>
[Prev in Thread] | Current Thread | [Next in Thread] |