|
|
发表于 2005-5-23 10:54:43
|
显示全部楼层
请问有没有什么办法编译安装软件,可以在重装系统后还可以用? It depends on how do you 重装系统.
据说可以给/usr/local单独分一个区,把所有自己编译的软件都装到那里。下次重装的时候不格式化这个分区,直接挂载到/usr/local下就可以了。
这个方法我没试过。
这样的话其他装到/usr/share等目录下的文件就没有了,所以虽然程序仍然可用但不完整。
我推荐的方法是,make完之后就把整个目录打包,以后只要make install即可,不用重新编译了。 First of all, please understand how did your package being compiled.
Before you run "make" and "make install", usually you need to run "configure" (with some options). The configure script will determine package dependencies and then when you run "make", your package binaries are usually dynamic link to your current system libraries.
Therefore, if you re-install your system, this method is only applicable when:
1. The re-installed system is identical to the previous installation. In other words, if you are upgrading system, say from RH8 to RH9, this method may not work.
2. You compile your package with static links. |
|