LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-03-2010, 06:59 PM   #1
TheSergon13
LQ Newbie
 
Registered: Feb 2010
Location: Portugal
Posts: 10

Rep: Reputation: 0
Cool Makefile to not default directories


Hi

I'm compiling some applications in a pc, using:
Code:
./configure
make
make install
but I want to run the applications in another pc, so I have used the option --prefix=/some/directory/ when executing ./configure, so I could just copy this folder to the other pc. However, my programs now need to have libraries and shared files in the same location that I used with --prefix, instead of /lib, /usr, etc.

Is there any solution to avoid this? probably in make install command?

Thanks in advance,
SÚrgio
 
Old 06-03-2010, 07:10 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,485

Rep: Reputation: 66
if the configure command has the ability to make a static binary then you will not have to worry about library dependancies
 
Old 06-04-2010, 04:48 AM   #3
TheSergon13
LQ Newbie
 
Registered: Feb 2010
Location: Portugal
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you exvor,
but this only will solve my problem about libraries, not with auxiliary files that my application needs

I want to make it think it will be installed on its default directories, but not on my pc.
 
  


Reply

Tags
configure, install, make, prefix


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
how to write Makefile for descending down in directories satish Chander Linux - Kernel 0 03-08-2007 03:47 AM
can you set a default umask for only certain directories? BrianK Linux - General 3 06-14-2004 09:02 PM
kde and qt default directories in RH9 jza Red Hat 1 01-03-2004 02:25 AM
No rule to make target `/mkspecs/default/qmake.conf', needed by `Makefile'. Stop Julianus Linux - General 0 12-21-2003 07:17 AM
default program directories heathpitts Linux - Newbie 2 03-06-2003 05:30 PM


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