igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Compile igraph c code on ubuntu with the -static switch?


From: Gábor Csárdi
Subject: Re: [igraph] Compile igraph c code on ubuntu with the -static switch?
Date: Sun, 29 Nov 2009 21:26:56 +0100

PATH is irrelevant for dynamic linking, the environment variable you
need to set is called LD_LIBRARY_PATH

Gabor

On Sun, Nov 29, 2009 at 9:18 PM, Gang Su <address@hidden> wrote:
> Also when i was trying to run the compiled program, I got the error msg:
> error while loading shared libraries: libigraph.so.0, can't open shared
> object file: No such file or directory.
>
> I checked that the /usr/local/lib is in the $PATH variable
>
> Gang
>
> Gang Su wrote:
>>
>> Hi developers,
>>
>> I am new to Ubuntu.. right now I am trying to compile the example file
>> here:
>> http://igraph.sourceforge.net/doc/html/ch03s01.html
>>
>> However, the compiled binary will require igraph lib installed to run. I
>> was trying
>> with the -static switch to make the executable run independent of igraph
>> library,
>> but got tons of errors. What is the correct way of building library
>> independent
>> executables?
>>
>> Thanks
>>
>> Gang
>>
>>
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/igraph-help
>>
>>
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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