LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-23-2009, 04:24 PM   #1
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Rep: Reputation: 19
/usr/local/lib or /usr/local/lib64


I have downloaded, compiled and installed many programs in slackware-64. Most of them install their libraries in /usr/local/lib by default.

I downloaded kmymoney just a few days ago, and it installed its libraries in /usr/local/lib64.

I found this odd because no other program so far has installed them in that location. The program did not work because the program couldn't find the libraries. So I updated the /etc/ld.so.conf to include /usr/local/lib64.

These are all 64-bit libraries; does anyone know why it might choose one directory by default over the other? Is it simply the preference of the programmers of kmymoney? Should one or the other directories be used? I would expect if I were to install 32-bit libraries on my system too, I might want those to go into /usr/local/lib and the 64-bit ones to stay in /usr/local/lib64. But as of now, I don't have 32-bit on my system.

Either way, it caused an issue until I added the directory to my ldconfig.
 
Old 07-23-2009, 05:47 PM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,373

Rep: Reputation: 164Reputation: 164
Yep - this is usually the preference of the programmer. I always check the default install, and then change it if necessary. Not every piece of software has a slackbuild, and I never (usually) accept the default.

I got into that kind of mess a couple of years ago. I have tried to keep it sane ever since.
 
Old 07-23-2009, 06:25 PM   #3
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
How would you check for the default lib install directory?

I usually do the
Code:
1. 'make install DESTDIR=/tmp/a' to another location,
2. browse through it with a 'find', (this would be where I check the directories)
3. chmod it to root, 
4. and makepkg foo.txz.
 
Old 07-23-2009, 06:26 PM   #4
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
And by the way, my solution to kmymoney (which now has a KDE4 working copy - through SVN) was to symlink /usr/local/lib64 to /usr/local/lib so they are really the same directory. (This isn't reasonable on a system-wide basis, but it does seem reasonable for the 10 non-slackware local packages that I usually install)

Last edited by rigelan; 07-23-2009 at 06:27 PM.
 
Old 07-23-2009, 07:36 PM   #5
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
You can also usually use a --prefix=/your/dir/to/go/to during the configure. There are also --libdir options too.
 
Old 07-23-2009, 07:37 PM   #6
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,373

Rep: Reputation: 164Reputation: 164
Run the configure script with:

Code:
./configure --help
That will list all the options for configuring your build. Then an actual example:

Code:
./configure --prefix=/usr --libdir=/usr/lib64 --enable-some-feature --disable-some-feature
 
Old 07-23-2009, 07:46 PM   #7
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
I have been in this mess as well...

The steps suggested by mlangdn should help you out in 95% of all cases.
For all other packages you need to study the configure script and Makefile...
 
Old 07-24-2009, 09:19 AM   #8
Michielvw
Member
 
Registered: May 2005
Location: Leicester,UK
Distribution: Slackware
Posts: 108

Rep: Reputation: 19
To be honest, kmymoney2 is a bit of a bugger with regards to slackware64.

See also this thread as with regards to actually using the SlackBuild for 12.2

As things stand now, Kmymoney2 will *not* make the cut for 13.0 for mainly the two following reasons:
1) You'll need to install KDE3compat from extra, plus all the extra tricks as mentioned in above thread
2) While it will compile on slackware64-current, it will not build on slackware-current [1], so that's a no go.
3) They only just started porting to KDE4, so nothing usuable as far as I know.

If the kmymoney team starts putting out decent KDE4 builds, I will have a look at inclusion at SBo. [2]

[1] - I am willing to see proof to the other point.
[2] - Or someone can feel free to take over maintenance.

-M.
 
Old 07-24-2009, 05:24 PM   #9
ROXR
Member
 
Registered: Jan 2009
Location: Spain
Posts: 105
Blog Entries: 1

Rep: Reputation: 18
I Can't download, the link is broken, all links.
 
Old 07-24-2009, 06:32 PM   #10
Michielvw
Member
 
Registered: May 2005
Location: Leicester,UK
Distribution: Slackware
Posts: 108

Rep: Reputation: 19
Quote:
Originally Posted by ROXR View Post
I Can't download, the link is broken, all links.
Perhaps a bit more specific would be useful here. What link(s), are we talking about.

As far the kmymoney2 slackbuild, the link works for me. You might be running into the silly-dead-mirror-bad-link bug that can plague sourceforge at times.
 
  


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
slackware64 /usr/lib /usr/lib64 question disturbed1 Slackware 29 02-14-2010 08:05 AM
Location of libraries in /usr/lib/ or /usr/lib64/ in Slackware64 niels.horn Slackware 2 06-24-2009 04:25 AM
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
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 11: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