|
发表于 2004-8-4 11:46:57
|
显示全部楼层
about Slackware Linux技术内幕之--包管理机制
First of all, thanks for windrose's effort
I just want to point out a potential issue in this article:
under the section "makepkg --制作"
[PHP]# cd cce-0.51
# ./confiugre --prefix=/works[/PHP]
(confiugre typo?)
but afterwards:
最好不在./configure的时候加 --prefix=/YOUR_DIR (想安装到此目录除外)。因为在 ./confiure 后加了--prefix=/work 后,编译出的二进制文件可能会保留指向/work的链接,打包成tgz让别人安装后,二进制文件可能还会搜索/work的路径。我自己做过这样的实验。(由hupeng923提供)
I do think many apps/libs will utilize where they are installed in their source codes, so personally I oppose any attempts to specify --prefix to the configure to specify where you want to put it when you makepkg.
make install DESTDIR=/YOUR_DIR is a recommanded work around.
Thanks |
|