Linux 软件包安装方法
2013-08-01 00:51
232 查看
The installation needs to be faked, so that the package thinks that it is installed in /usr though in reality it is installed in the /usr/pkg hierarchy. Installing in this manner is not usually a trivial task. For example, consider that you are installing a package libfoo-1.1. The following instructions may not install the package properly:
./configure --prefix=/usr/pkg/libfoo/1.1
make
make install
The installation will work, but the dependent packages may not link to libfoo as you would expect. If you compile a package that links against libfoo, you may notice that it is linked to /usr/pkg/libfoo/1.1/lib/libfoo.so.1 instead of /usr/lib/libfoo.so.1 as you would expect. The correct approach is to use the DESTDIR strategy to fake installation of the package. This approach works as follows:
./configure --prefix=/usr
make
make DESTDIR=/usr/pkg/libfoo/1.1 install
./configure --prefix=/usr/pkg/libfoo/1.1
make
make install
The installation will work, but the dependent packages may not link to libfoo as you would expect. If you compile a package that links against libfoo, you may notice that it is linked to /usr/pkg/libfoo/1.1/lib/libfoo.so.1 instead of /usr/lib/libfoo.so.1 as you would expect. The correct approach is to use the DESTDIR strategy to fake installation of the package. This approach works as follows:
./configure --prefix=/usr
make
make DESTDIR=/usr/pkg/libfoo/1.1 install
相关文章推荐
- Linux 批量安装 软件包的简单方法
- 在Debian系的Linux中检查软件包是否被安装的方法
- Linux软件包安装方法
- linux 软件包安装常见错误及解决方法
- linux软件包安装方法
- linux下apt-get安装软件包方法
- linux软件包安装自己创建yum源的方法
- linux系统下安装dovecot方法
- VMware Workstation/Fusion 中安装 Fedora 23/24 及其他 Linux 系统时使用 Open VM Tools 代替 VMware Tools 增强工具的方法
- windows与Linux下composer的安装方法
- Linux上安装和卸载rpm软件包的方法
- linux 删除安装软件的方法
- Linux最小化安装,忘记安装开发工具的解决方法
- Linux安装软件包
- 最全的mysql 5.7.13 安装配置方法图文教程(linux) 强烈推荐!
- 如何在LINUX下用用apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin
- Linux操作系统的软件安装方法
- Linux下软件安装方法总结
- 总结Ubuntu10.04安装Nvidia驱动(Nvidia-Linux-x86-270.41.06.run)的方法
- linux中安装samba的方法以及注意事项