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

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.

posted @ 2018-02-07 10:44  bingo彬哥  阅读(4809)  评论(0编辑  收藏  举报
本站总访问量