LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-01-2009, 10:50 AM   #1
wisdev
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Source Compilation Path Inclusion


Hi,

I'm trying to install Filezilla. One of the dependencies is wxwidgets, which I have installed.

But... when I try to compile the source:

Quote:
/usr/local/bin/wxrc: error while loading shared libraries: libwx_base_xml-2.8.so.0: cannot open shared object file: No such file or directory
But, I have that file in /usr/local/lib

Meaning the compiler just isn't checking all of the right folders to compile the source.

So how do I tell the compiler to include that in its search paths?

I'm doing

./configure
make

So I'm not sure at which of those steps I can add that customization.

Apparently you can't "man configure" either, and I can't find a manual for ./configure online, so...
 
Old 09-01-2009, 11:20 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
The system will look for shared libs in the paths specified in /etc/ld.so.conf

You can as well add /usr/local/lib (or whatever path it is) to LD_LIBRARY_PATH in command line if you haven't the permissions to modify /etc/ld.so.conf

Code:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
Then run whatever command it is that required the libs at /usr/local/lib in that same shell. This is not permanent and its effects are only valid on the same shell you ran it. To make it "permanent" you can add this line to ~/.bashrc and ~/.bash_profile, assuming that you use the bash shell.

There's nothing like a man page for ./configure. That is a scripts that's shipped along with the sources (some sources anyway), and it's different on each case. It's called "configure" by convention, but it could very well be named "Armageddon" or whatever else. It's not a linux command nor anything like that.

However, most configure scripts do include a help system, you can try "./configure --help" to see the available options for that concrete case. As said, each configure script is different.

Last edited by i92guboj; 09-01-2009 at 11:22 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Source compilation - different from pkgadd? agummad Solaris / OpenSolaris 3 08-14-2009 07:06 AM
LXer: Yrch! "path" Parameter Handling Remote PHP File Inclusion ... LXer Syndicated Linux News 0 12-29-2006 11:33 PM
help neede with java source file compilation max_rsr Programming 2 05-16-2005 09:35 PM
Java compilation path Azzath Programming 4 02-02-2005 06:35 PM
Python compilation error, "module search path"etc.. mindfestival Linux - Newbie 0 05-31-2004 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration