LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Compiling from source with different library prefixes (https://www.linuxquestions.org/questions/linux-general-1/compiling-from-source-with-different-library-prefixes-517866/)

shevegen 01-09-2007 09:30 PM

Compiling from source with different library prefixes
 
Hi,

I usually compile from source, using a set of ruby scripts,
and paco (from sourceforge) to drop binaries.
I have a mixed system, meaning most basic things go into
/usr prefix, but other packages, especially smaller ones,
go into /pkg/programname/version.

My scripts do all the necessary symlinking too, however
often it seems that libraries cant be found.

I assume this is either because of wrong include, or
wrong library files, or better said:

The configure script of a program does not check my
/pkg directory.


Is there a way I could tell my shell (bash) that I
want to include all things that are in /pkg or in
/symlink? I know distributions like Gobolinux
do it somehow, but I seem to have a difficulty
especially with libraries that are not under /usr/lib
or similar dirs

(/symlink is just my helper dir, where all things get
symlinked to)

titopoquito 01-10-2007 10:32 AM

As far as I know (a) editing /etc/ld.so.conf and adding /pkg or /symlink and (b) running "ldconfig" after this should do what you want.


All times are GMT -5. The time now is 01:52 AM.