5 linux file-location ubuntu-10.04 installation
什么时候我们,
./configure
make
make install
Run Code Online (Sandbox Code Playgroud)
程序安装在哪里?
Mic*_*yan 12
正如 Dirk 所说,默认前缀是“/usr/local”;但是,您可以更改它。例如:
./configure --prefix=/opt/local
make
sudo make install
Run Code Online (Sandbox Code Playgroud)
但请注意,您不应以这种方式安装软件。您应该使用 Ubuntu 的软件包管理系统apt-get
来安装软件。如果没有包含软件包的 apt-get 存储库,您应该只使用 configure+make+make install。您应该使用 apt-get 的原因是它会自动管理软件的依赖项和版本控制,并确保您的软件自动更新。手动安装东西是一种很好的方式,通过引入依赖冲突来表明您不在乎,或者是在您的系统上安装过时的、可能易受攻击的软件的好方法。所以,在你用那种方式安装东西之前,你应该使用apt-cache search
找出一个已经存在的包,然后你就可以使用sudo apt-get install
它来安装它。例子:
apt-cache search boost # This will show all sorts of packages related to Boost
sudo apt-get install libboost-dev # Ok, this is the one on the list I want
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
14942 次 |
最近记录: |