进行安装,但不是默认目录? [英] Make install, but not to default directories?

查看:184
本文介绍了进行安装,但不是默认目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运行'make install',这样我就拥有了我需要的所有东西,但是我希望它将这些东西安装到自己的文件夹中,而不是系统的/ usr / bin等。即使它引用/ usr / bin等工具?

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.?

推荐答案

它取决于包。如果Makefile是由GNU autotools( ./configure )生成的,您通常可以像这样设置目标位置:

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

如果Makefile不是由autotools生成的,而是随软件一起分发的,只需在编辑器中打开并更改即可。安装目标目录可能在某个变量中定义。

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.

这篇关于进行安装,但不是默认目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆