LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-13-2013, 10:42 PM   #1
peterlowrie
Member
 
Registered: May 2009
Location: New Zealand
Distribution: mdv-x86/aurora-sparc64/solaris10-x86/solaris10-sparc
Posts: 42

Rep: Reputation: 15
compiling code gotcha


Gidday Boardsters

I've been installing various bits of software that don't have installers like apt-get or qrpm etc. These are the ones where you have to ./configure, make, make install, ldconfig etc.

What's going rong for me is I think the configure scripts are not looking for libraries et al in all the right places. For example /usr/lib64. It's looking in /usr/lib alright but seemingly not the lib64 dir.

I understand that most configure scripts are actually written by tools such as autoconf etc. This means there's a bit of standardisation among them as to search paths ( a guess).

Is there an environment variable or two that I can put in that helps these scripts widen the search paths when looking for libraries? And or a good HOWTO on the subject?

Thanks for your support
:-) Peter
 
Old 11-14-2013, 02:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
HOWTO :
I guess there will be an individual solution for each "package of software".


Please tell which software it is about.


-
 
Old 11-14-2013, 03:12 AM   #3
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 32
You could try changing the environment variable LD_LIBRARY_PATH
 
Old 11-14-2013, 03:29 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,436
Blog Entries: 11

Rep: Reputation: 181Reputation: 181
Like knudfl said: Depends on software. Some configure options for library pathes even dont work somtimes as well. So you have to edit the configure scipt or the makefile itself to get the right path.
 
1 members found this post helpful.
Old 11-14-2013, 08:59 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,337

Rep: Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573
Usually you can run "./configure --help" and get a list of possible options and their meanings.
 
Old 11-17-2013, 01:54 PM   #6
peterlowrie
Member
 
Registered: May 2009
Location: New Zealand
Distribution: mdv-x86/aurora-sparc64/solaris10-x86/solaris10-sparc
Posts: 42

Original Poster
Rep: Reputation: 15
export LD_LIBRARY_PATH=/lib/usr/lib64:/usr/lib etc

Quote:
Originally Posted by pgpython View Post
You could try changing the environment variable LD_LIBRARY_PATH
Thank you for that pearl of wisdom, I'm going to give it a go now. I'll keep you posted.

In point of interest the title I'm trying to compile is transcode-1.1.0

Thank you :-)
Peter
 
Old 11-17-2013, 02:18 PM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,602

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
every bit of software is DIFFERENT !!!!!!!!-- yes bold and cap

most will auto install to /usr/local when using the "configure" script
( the debian default -- NOT the rhel/fedora/suse rpm based distro default )
so the " --prefix=/usr " is needed

some have the macros to run "autoreconfig -fiv "
some do not
some use a "bootstrap" script to remake a configure script


some do not even use configure , but use Scons

some use qmake (qt4-make)

some use cmake


and some software DO NOT use any kind of configure script , they are 100% "makefile" projects
and are a pain in the "bleep" to RECONFIGURE for your OS and hardware


so the software you are building IS A NEEDED bit of information


the build process for say , my favorite software, " Celestia"
is different for the OLD gtk version and for the NEW QT version

and it you are building the HP line of calculators - it uses scons


---------- a note for the normal basic autotools build -----
exporting things at boot time ( or build time ) like
LD_LIBRARY_PATH
PKG_CONFIG_PATH
on a 64 bit OS that is MULTI LIB !!!
the order is VERY important sometimes for some programs
64 bit first !!!
Code:
LD_LIBRARY_PATH=/usr/lib64:/usr/lib
PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig
can make a difference -- but NOT always

Last edited by John VV; 11-17-2013 at 02:20 PM.
 
Old 11-17-2013, 03:10 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
# 6 .
Quote:
In point of interest the title I'm trying to compile is transcode-1.1.0
Year 2008 : transcode-1.1.0
2009 : transcode-1.1.5 http://freecode.com/projects/transcode
2011.. 2013 : transcode-1.1.7 https://bitbucket.org/france/transcode-tcforge
https://bitbucket.org/france/transco...-1.1.7.tar.bz2
http://ftp.de.debian.org/debian/pool...7.orig.tar.bz2

Suggest : Use the current version = 1.1.7

-

Last edited by knudfl; 11-17-2013 at 03:11 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
Compiling Issues:Compiling FFMPEG souce code on Visual Studio 2010 JAYANTHI Linux - Newbie 1 11-07-2013 10:41 PM
LXer: Avoiding the iCloud storage gotcha LXer Syndicated Linux News 0 10-27-2011 04:30 AM
LXer: A Little VCS NFS Gotcha On Solaris 10 LXer Syndicated Linux News 0 02-05-2009 02:10 PM
a gotcha with the at command? stabu Linux - Software 4 12-25-2008 07:09 AM
SOLVED -- Hard-to-find gotcha in OpenVPN jlinkels Linux - Networking 0 07-30-2007 11:34 AM


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