LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
Search this Thread
Old 07-18-2002, 11:36 AM   #1
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
Why /usr/X11R6 before /usr/local?


I installed a new version of zlib from source without using the prefix option of configure (I hate to have to type that everytime, so I just have everything in /usr/local).

Now when I was compiling something that was using zlib headers, I noticed there also was another version of zlib on my system in the /usr/X11R6 directory. This directory is before /usr/local in the search path for both libraries and include files.

Of course I can fix the library path by changing ld.so.conf, but what do I do about the include files? I can now throw away the old zlib from /usr/X11R6, but the next time I upgrade X11 it will install zlib again which will probably again be an older version than the zlib in /usr/local.

Is there a good reason for the /usr/X11R6 path to be before the /usr/local path?
 
Old 07-18-2002, 02:23 PM   #2
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Which distro is this? Mandrake, Deb or LFS? I don't know Deb well, but with mandy you should be able to uninstall the original zlib as it was from an rpm on the install cd and I wouldn't think LFS does that weird stuff, if so you can always see if it will do a make uninstall if you saved the dir you compiled it from. I don't know why the search path prefers the /etc dir but obviously you could go and use the --prefix=/etc/X11 to fix just this one prog.
 
Old 07-18-2002, 06:46 PM   #3
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Original Poster
Rep: Reputation: 30
zlib came with Xfree itself and I don't remember whether or not there was an option to not install zlib. There probably is, so I'll just have to remember that the next time I install X I suppose. If I forget it, things may start to go wrong again. =(
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
/usr vs /usr/local on linuxpackages.net merchtemeagle Slackware 4 10-18-2005 03:09 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 10:57 AM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM


All times are GMT -5. The time now is 10:45 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration