LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-25-2005, 10:57 PM   #1
brainlesspinkey
Member
 
Registered: Jul 2004
Distribution: Debian Unstable
Posts: 66

Rep: Reputation: 15
Setting a different library path on compile


Hi, I have what seems to be a simple problem, but I keep banging my head trying to fix it:

When I compile the xfce terminal program, It works fine until I get this:
libtool: link: cannot find the library `/usr/local/lib/libxfcegui4.la'

The reason it can't find the library, is because it is actually in /usr/lib/libxfcegui4.la
I tried to then configure it with:
./configure LDFLAGS=-L/usr/lib

But it gave the same error when i compiled

I think it should just be some sort of env variable I have to set or something, but I can't figure it out.
Help would be appreciated.

-pinkey
 
Old 06-26-2005, 01:59 AM   #2
melinda_sayang
Member
 
Registered: Dec 2003
Location: Jakarta
Distribution: Gentoo
Posts: 473

Rep: Reputation: 31
Edit /etc/ld.so.conf

Put /usr/local/lib to the file. Save. Quit. Then /sbin/ldconfig as root.
 
Old 06-26-2005, 01:47 PM   #3
brainlesspinkey
Member
 
Registered: Jul 2004
Distribution: Debian Unstable
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks for the reply.

I tried it, and it still does not work. Even though I appended /usr/lib to the ld.so.config file, the compile is still looking for the library in /usr/local/lib when I want it to look for the library in /usr/lib
urg.

-Pinkey
 
Old 11-13-2005, 12:24 PM   #4
makron
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
maybe it is a little bit to late, but if it helps (i found this thread because i had the same problem today):

just do a

Code:
ln -s /usr/lib/libxfcegui4.la /usr/local/lib
ln -s /usr/lib/libxfce4utils.la /usr/local/lib
it works because those libs get statically linked with the application you create, after building and installing Terminal you could remove both links (EDIT; thanks to foo_bar_foo)

Last edited by makron; 11-13-2005 at 02:12 PM.
 
Old 11-13-2005, 12:55 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 47
it's worth pointing out here i think that *.la files are not libraries at all
but rather plain text files with configuration information in them.
they contain hard coded path names to lib dependancies and what not

the real question is why is the .la file and the libs are in /usr/local while the other libs that depend on it and are linked to it think it's in /usr

there is a fundamental install screwup there somewhere
 
Old 11-13-2005, 02:10 PM   #6
makron
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
sorry my fault

but the libs and the la files aren't in /usr/local ... but the libtool skript shipping with this xfce terminal program wants to search it right there ...

also the to the libs corresponding pkgconfig files are pointing to /usr ... and allmost all other applications i have compiled so far for xfce did not look for this libs in /usr/local ...

it is some kind of specific for this xfce terminal program
 
Old 11-13-2005, 03:02 PM   #7
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 47
i get it now and the link solution seems perfect
it mght also work to do
./configure --prefix=/usr
 
Old 11-13-2005, 05:42 PM   #8
makron
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
fine :-)

( ./configure --prefix=/usr did not work for me :-) )
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
library path Scott7 Debian 1 10-19-2005 07:25 AM
library path variable vrdhananjay Linux - Software 2 09-03-2005 06:31 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
GD Library path? kinkybullet Linux - Newbie 1 02-11-2004 09:15 PM
Cannot find path for library Baran Linux - Newbie 5 09-03-2003 04:46 AM


All times are GMT -5. The time now is 06:00 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration