LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-31-2006, 02:30 PM   #1
sepehre
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
How to install all software files to a specific directory?


Hi,

I feel my question is a very beginner one, but I have never found the answer to it.

When install (e.g. ImageMagick) using configure, make, and make install, the files are by default put in system /usr/local (or similar) directories.

How can I prevent this and have all the files be compiled, and installed in for example /home/user/ImageMagick/ ?

Thanks,
Sepehre
 
Old 07-31-2006, 02:40 PM   #2
PMorph
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 213

Rep: Reputation: 31
If only the resulting executable file is needed, you can simply skip the "make install" part and copy the resulting binary in the folder you want to have it.
Ofcourse, you then have to give the absolute path to the file in order to run it (unless the folder is in search path).
 
Old 07-31-2006, 03:25 PM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
./configure --prefix=$HOME/program
can do magic..
 
Old 08-01-2006, 04:56 PM   #4
sepehre
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thanks a bunch,

/configure --prefix=$HOME/program is exactly what I needed.
 
Old 08-01-2006, 09:38 PM   #5
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Just keep in mind that installed library files that are dependencies for other programs have to be found when you install the program that depends on the previous, and if you install everything in its own separate folder you're likely to run into problems. Also the executable won't be in the path unless you add the containing directory, and if you do this a lot your PATH variable will get pretty long...
 
  


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
copy specific files with directory stucture rincewind Linux - Software 1 06-22-2006 07:58 AM
Remove ALL files from specific Directory bianchi Programming 9 11-23-2005 11:27 PM
telling `make install` to install in a specific directory?!? black hole sun Linux - Software 3 02-08-2005 09:18 PM
How to install an RPM to a specific Directory GUIPenguin Linux - Newbie 4 08-30-2004 06:36 PM
How to do recursive file copy of directory for specific files? Arodef Linux - Newbie 4 06-29-2004 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:35 AM.

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