LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-27-2014, 02:02 PM   #1
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
Unhappy No libraries in /usr/local/lib


Hi, a few years back Linux had certain libraries automatically in
Code:
/usr/local/lib
. I am using Debian Wheezy. When I look in that directory it is empty, except for two folders named python2.6 & 2.7.

I need to have the following in usr/local/lib:

Code:
/usr/local/lib/libX11.a
/usr/local/lib/pthread.a
/usr/local/lib/libX11.so
/usr/local/lib/libX11-xcb.a
/usr/local/lib/libX11-xcb.so
I cannot seem to find these libraries anywhere on my system. I read somewhere that now you have to build them yourself.

My questions are:

1. Where do I find these libraries or is it correct that I would have to build them myself.
2. If I do have to compile them myself, how do I go about doing that - I have never had to compile system files like this before?

Thanks in advance.
 
Old 05-27-2014, 02:30 PM   #2
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
No Linux distro that I am aware of uses /usr/local/lib to store libs. /usr/local/ is typically used for extra software outside of the native package management system. You the user might put stuff there but the distro will not.

Use apt-file to find out which packages provide libX11.a, pthread.a, libX11.so, libX11-xcb.a and libX11-xcb.so.
 
1 members found this post helpful.
Old 05-27-2014, 02:48 PM   #3
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ruario View Post
No Linux distro that I am aware of uses /usr/local/lib to store libs. /usr/local/ is typically used for extra software outside of the native package management system. You the user might put stuff there but the distro will not.

Use apt-file to find out which packages provide libX11.a, pthread.a, libX11.so, libX11-xcb.a and libX11-xcb.so.
Ok thanks - Could you say what the correct path to these files would be then?
I could be confusing Linux with FreeBSD.

Last edited by neilcpp; 05-27-2014 at 02:51 PM.
 
Old 05-27-2014, 03:08 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,101
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Proabably /usr/lib

Edit: Forgot to say. I use mlocate to find location of libraries in linux after a install.

Last edited by rokytnji; 05-27-2014 at 03:12 PM.
 
1 members found this post helpful.
Old 05-27-2014, 03:17 PM   #5
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Yep, you are thinking of FreeBSD. There only the core of the OS uses /lib and /usr/lib, everything else would go to /usr/local/lib.

Regarding the path, that is difficult for me to say without some research, since I don't really use Debian these days and do not have an install close to hand right now. It would have been /usr/lib but with more recent Debian it will likely have switched to /usr/lib/i386-linux-gnu/ or /usr/lib/x86_64-linux-gnu/ depending on architecture. However, unless you installed the various -dev packages (e.g. libx11-dev) these files will not be present. This is why I suggested using apt-file to locate the packages and install them first.

Last edited by ruario; 05-28-2014 at 01:21 AM. Reason: s/here/there/
 
1 members found this post helpful.
  


Reply



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
/usr/local/lib/libproj.a /usr/lib/libproj.so conflict. (QLandkarteGT) kaz2100 Linux - Software 1 01-17-2012 04:37 AM
/usr/local/lib or /usr/local/lib64 rigelan Slackware 9 07-24-2009 06:32 PM
Location of libraries in /usr/lib/ or /usr/lib64/ in Slackware64 niels.horn Slackware 2 06-24-2009 04:25 AM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
g++ can't find libraries that are in /usr/lib williamtbranch Linux - Software 2 01-17-2004 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:03 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