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

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

问题描述

我想运行'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


b $ b

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

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天全站免登陆