LinuxQuestions.org
Visit Jeremy's Blog.
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 06-01-2012, 03:22 PM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
howto tell "make install" look in /usr/lib64 instead of in /usr/lib?


Hello,
I am compiling a package and have some trouble at the "make install" phase.
"make install" searches for libexpat.so in /usr/lib, instead of /usr/lib64. This is troublesome as I am compiling on a multilib system. Making symbolic links to the respective file in /usr/lib64 eliminates the error. Have you got an idea how I can tell "make install" to look for libexpat.so in /usr/lib64 instead of in /usr/lib?
Maybe this is some environmental variable but I do no know which. Any suggestions will be appreciated.
 
Old 06-01-2012, 03:43 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
Usually, make install doesn't look for anything, anywhere; it just copies files (executables, libraries, config files and documentation) into the relevant directories. Plain make does the actual compiling and may need to locate various libraries.

The location of libraries is specified in the Makefile, which in turn is usually generated by ./configure. The latter can take a number of arguments and parameters. Run ./configure --help, and you'll probably find that the --libdir argument lets you specify the library directory. There may also be an argument specific to libexpat.
 
Old 06-01-2012, 03:51 PM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
If I have understod what you mean, you are having problems with the linker: to have it look into /usr/lib64 you have to pass an LDFLAGS variable to the configure.

have a look at faq 18 on slackbuilds.org.

Last edited by ponce; 06-01-2012 at 03:58 PM.
 
Old 06-01-2012, 09:08 PM   #4
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Don't Run With 32 Bit Preferences

I'm new to mulitilib but my understanding is that if you want the 64bit libraries then you do NOT run in the environment set up by /etc/profile.d/32dev.sh. That is, do NOT run this script in the shell where you make your program. Just let it use the 64bit libraries.

Perhaps you're running in the 32bit preferred environment set by this script ???

This has worked for me the few times I tried it. In my cases I didn't have to explicitly set any environmental path variables.

... but remember I'm new to the multilib setup ...

Last edited by TracyTiger; 06-01-2012 at 09:10 PM.
 
  


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
"/usr/lib64/libgobject-2.0.so: could not read symbols" when trying to install ORBit2 ollebanan Slackware 17 03-07-2010 09:33 AM
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
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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