LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what is the difference between /usr/lib and /usr/lin64 (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-difference-between-usr-lib-and-usr-lin64-833401/)

zarzor_2010 09-20-2010 03:01 PM

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

AlucardZero 09-20-2010 04:53 PM

/usr/lib64 is for 64-bit libraries. /usr/lib is for 32-bit compatibility libraries.

Fred Caro 09-20-2010 07:48 PM

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.

AlucardZero 09-20-2010 07:56 PM

Quote:

Originally Posted by Fred Caro (Post 4103871)
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.

zarzor_2010 09-20-2010 08:31 PM

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

AlucardZero 09-20-2010 08:36 PM

/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.


All times are GMT -5. The time now is 04:21 PM.