Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-23-2009, 10:43 PM   #1
Senior Member
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Question Location of libraries in /usr/lib/ or /usr/lib64/ in Slackware64

Today I was adapting several SlackBuild scripts to test some applications in Slackware64.

I understood from several threads and articles that in 64-bit Linux distributions that the libraries should go in /lib64 or /usr/lib64

Now I noticed that some Slackware64 packages still put files in /usr/lib/ like:
- cdrtools-2.01.01a57-x86_64-3: /usr/lib/siconv/*
- crda-1.0.1-x86_64-2:          /usr/lib/crda/regulatory.bin
- rpm-4.7.0-x86_64-2:           /usr/lib/rpm/*
- syslinux-3.52-x86_64-1:       /usr/lib/syslinux/* 
- trn-3.6-x86_64-2:             /usr/lib/trn/*
Are these files in /usr/lib/ for some compatibility reason or has this simply passed unnoticed while recompiling packages for Slackware64?

Is there any *problem* in leaving files in /usr/lib/ instead of /usr/lib64/ ?
Apparently it works - in these packages and in several I compiled without changing the lib folder to lib64 ...
Old 06-24-2009, 03:01 AM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,238

Rep: Reputation: Disabled
The files you find in lib/ directories are either scripts or firmwares, that can be used by 64bit as well as 32bit programs. The files in lib64/ directories are meant to be used exclusively by 64bit binaries.

When you compile a 64bit program but install the libraries into a lib/ directory, your program will run just fine. You will only run into problems when you want other programs to link against your application's shared libraries. They will not be found (because your program's pkg-config files will go into /usr/lib/pkgconfig for instance).

Old 06-24-2009, 04:25 AM   #3
Senior Member
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 89
Ah ok... Things are clearing up for me now!

The dark side is not clouding things for me anymore


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
slackware64 /usr/lib /usr/lib64 question disturbed1 Slackware 29 02-14-2010 08:05 AM
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Removing .a libraries in /usr/lib/ kunkie Linux - General 1 08-27-2005 11:44 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
g++ can't find libraries that are in /usr/lib williamtbranch Linux - Software 2 01-17-2004 01:28 PM

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration