LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-21-2011, 07:55 AM   #1
Ornithological Ornod
LQ Newbie
 
Registered: Jan 2010
Location: Ireland
Distribution: Ubuntu 11.10
Posts: 12

Rep: Reputation: 0
Choose target directory upon "make install"


Is it possible to choose the target directory upon make install after running

./configure
make -s


I cannot install into /usr/local since I only have an account on a server. I am trying to compile and install the Poco C++ libraries.

Thx in advance.
 
Old 10-21-2011, 08:12 AM   #2
mjax09
LQ Newbie
 
Registered: Sep 2008
Location: South Africa
Distribution: Vector Linux 7.0 SOHO
Posts: 13

Rep: Reputation: 0
Sorry! buddy but I do not think there is.However it is not that much of a big deal you can do a:

:$make distclean

this removes all your makefiles generated by your first ./configure and assigned to the initial --prefix=/path/to/prefix in your case, this being /usr/local.Now after you have done this you must do a new configure and set a directory you have permissions to, like:

:$./configure --prefix=/home/homedir/progname
:$make
:$make install

This means that when you run make install, all your libs and bins will be placed in the progname directory in your home folder, beware though you must never delete the progname folder or else your programme is gone.My personal advice, use prefix like this :
$:./configure --prefix=/home/homedir/.progname
Not 100% sure it will work but with the full-stop at the beginning of the folder name it effectively becomes a hidden folder, you therefore never need to worry about deleting it, you won't even see it.

Hope this helps.


Old saying : "The best things in life a free"
Old saying updated :"The best things in life are open source"
 
Old 10-21-2011, 08:16 AM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

normally you choose the install directory during the configuration step:
Code:
./configure --prefix=/path/to/install/dir
 
Old 10-21-2011, 09:08 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The usual autotools-generated configure script supports the --help option:
Code:
./configure --help
This generally results in a section of helpful options with the headings "Installation directories" and "Fine tuning of the installation directories". In that list of options you will probably be able to find one or more that meets your requirements.

--- rod.
 
Old 10-21-2011, 12:07 PM   #5
Ornithological Ornod
LQ Newbie
 
Registered: Jan 2010
Location: Ireland
Distribution: Ubuntu 11.10
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, using

Code:
./configure --prefix=/some/directory
turned out to be very helpful indeed. Thanks everyone.
 
  


Reply

Tags
installation, make



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
get this error when runnign make ***** "no rule to make target 'config'. stop" procfs Linux - General 4 05-12-2013 10:25 AM
Error: "make: *** No rule to make target `folder'. Stop." shri19 Linux - Kernel 2 05-27-2009 08:08 AM
Error "make: *** No rule to make target `install'. Stop." help Ohmn Mandriva 8 07-02-2004 07:02 PM
i just finished typing "./configure" and "make" in mplayer directory... kublador Linux - General 4 02-22-2003 03:12 PM

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

All times are GMT -5. The time now is 12:37 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
Open Source Consulting | Domain Registration