octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How I do link arpack to eigs.cc and svd.cc on the Ubuntu build?


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

Tatsuro,

I compiled and installed it, too, here. From what I understand is you have to do the following:

Instead of:

LIB='-larpack'

try

LIB='-L/usr/local/lib -larpack'

Then open a terminal and do

gksudo gedit /etc/ld.so.conf

and add the line

/usr/local/lib

Save the file and do

sudo ldconfig

Cheers,
Jacob

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.

Jacob

Am 10. Januar 2012 08:37 schrieb Tatsuro MATSUOKA <address@hidden>:
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
>



--
„Alle sagten: Das geht nicht. Da kam einer, der wusste das nicht und hat's gemacht.“ - Unbekannt

reply via email to

[Prev in Thread] Current Thread [Next in Thread]