[SOLVED] Choose target directory upon "make install"
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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"
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.