LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-09-2007, 09:30 PM   #1
shevegen
Member
 
Registered: May 2004
Distribution: Slackware / GoboLinux / LFS / VoidLinux
Posts: 145

Rep: Reputation: 26
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)
 
Old 01-10-2007, 10:32 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,640

Rep: Reputation: 144Reputation: 144
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling library with gcc and m4? nro Programming 1 10-21-2006 08:33 PM
Kde prefixes ravi.xolve Linux - Software 1 07-27-2006 06:06 AM
cross compiling a shared library baba_gorakhnath Linux - Laptop and Netbook 0 03-10-2005 11:02 PM
source for xlib / libx11 library source? Whatsisname Linux - Software 7 02-18-2005 03:23 PM
Re-compiling PHP with GD library ubers0ldat Linux - Software 1 08-20-2003 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration