码迷,mamicode.com
首页 > 其他好文 > 详细

指定特殊的安装目录用configure进行配置

时间:2018-02-07 11:56:47      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:autot   direct   make   generate   end   sim   cto   otool   location   

linux - Make install, but not to default directories? - Stack Overflow

I want to run 'make install' so I have everything I need, but I'd like it to install the things in their own folder as opposed to the system's /usr/bin etc. is that possible? 
even if it references tools in the /usr/bin etc.?

It depends on the package. If the Makefile is generated by GNU autotools (./configure) you can usually set the target location like so:

./configure --prefix=/somewhere/else/than/usr/local

If the Makefile is not generated by autotools, but distributed along with the software, simply open it up in an editor and change it.
The install target directory is probably defined in a variable somewhere.

指定特殊的安装目录用configure进行配置

标签:autot   direct   make   generate   end   sim   cto   otool   location   

原文地址:https://www.cnblogs.com/everfight/p/configure.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!