LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2010, 03:01 PM   #1
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Rep: Reputation: 0
what is the difference between /usr/lib and /usr/lin64


Hi all

I have to different folders
/usr/lib and /usr/lib64

Iam not sure what is the difference between them. My linux installation is 64 bit. So is it going to use the libraries in /usr/lib or /usr/lib64

Thank you all for your help
Mina
 
Old 09-20-2010, 04:53 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
/usr/lib64 is for 64-bit libraries. /usr/lib is for 32-bit compatibility libraries.
 
0 members found this post helpful.
Old 09-20-2010, 07:48 PM   #3
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Rep: Reputation: 167Reputation: 167
Dear Sir/senior

I understand how your patience may run out but there is a whole world of users out there that run to Windows for ease of use, also convenience, and so telling them to go 'read up' may drive them straight back to Windows; a few tips might make all the difference.
When using 'uname' how do you tell if your system/ architecture is 64 bit or 32?

Fred.
 
0 members found this post helpful.
Old 09-20-2010, 07:56 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
Originally Posted by Fred Caro View Post
I understand how your patience may run out but there is a whole world of users out there that run to Windows for ease of use, also convenience, and so telling them to go 'read up' may drive them straight back to Windows; a few tips might make all the difference.
Huh? What are you talking about? Did you read my signature and skip right over the answer to the OP's question ?

Quote:
When using 'uname' how do you tell if your system/ architecture is 64 bit or 32?
It will say x86_64 or i386/i586/i686.


Also, it's polite to make your own threads for new questions, which yours is.
 
0 members found this post helpful.
Old 09-20-2010, 08:31 PM   #5
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you for your reply.

So if I have a linux installed as 64 bit.

will it use the libraries in /usr/lib or /usr/lib64?

or if I have 32 bit linux, and I installed a library in /usr/lib64/ is it going to recognize it or should I install 32-bit library?

The reason I am asking this is becuase I found /usr/lib/pkgconfig and /usr/lib64/pkgconfig which is used to recognize the libraries for the autoconf tool.
So which folder is going to be used by the autotools, the one in the /usr/lib64 or just the /usr/lib ?

Thank you
mina
 
Old 09-20-2010, 08:36 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
/usr/lib64 is not used on 32-bit.

on 64-bit, both could be used.

You probably want to stick with 64-bit libraries on a 64-bit system.
 
0 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
Location of libraries in /usr/lib/ or /usr/lib64/ in Slackware64 niels.horn Slackware 2 06-24-2009 04:25 AM
/usr/bin/ld: skipping incompatible /usr/lib/libXpm.so when searching for -lXpm sqn Linux - Server 2 05-12-2009 03:53 AM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 09:27 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:50 PM.

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