Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-03-2010, 07:59 PM   #1
LQ Newbie
Registered: Feb 2010
Location: Portugal
Posts: 10

Rep: Reputation: 0
Cool Makefile to not default directories


I'm compiling some applications in a pc, using:
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,
Old 06-03-2010, 08:10 PM   #2
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,531

Rep: Reputation: 74
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, 05:48 AM   #3
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.


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

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration