LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: Freebird

Slackware Linux技术内幕之--包管理机制v1.0.1

[复制链接]
发表于 2004-7-5 19:44:30 | 显示全部楼层
如果我想做一个tgz包,只是简单地把文件复制/替换到某些文件夹里,并不是安装程序,用checkinstall该如何做????
 楼主| 发表于 2004-7-5 20:08:37 | 显示全部楼层
最初由 dreamawake 发表
如果我想做一个tgz包,只是简单地把文件复制/替换到某些文件夹里,并不是安装程序,用checkinstall该如何做????

I think you can use only tar to do that.
please man tar to get the detail information.
发表于 2004-7-5 22:48:23 | 显示全部楼层
不行吧,差远了,tgz包是自动安装到指定的路径的,而tar....
发表于 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
 楼主| 发表于 2004-8-4 12:04:32 | 显示全部楼层
Thanks very much !I will modify my article as soon as possible!
"(confiugre typo?)"--I don't understand.:p
发表于 2004-8-4 12:05:14 | 显示全部楼层
文章是freebird的大作,typo我负责去改
发表于 2004-8-5 01:56:15 | 显示全部楼层
好多人看,我也看,就是好多没看懂,呵呵我继续学,你这个贴大大的有用!
发表于 2004-8-5 02:58:26 | 显示全部楼层
slack最,最,最好的一片文章
发表于 2004-8-5 06:30:15 | 显示全部楼层
最初由 Freebird 发表
Thanks very much !I will modify my article as soon as possible!
"(confiugre typo?)"--I don't understand.:p

confiugre should be configure ;)
发表于 2004-8-5 14:51:31 | 显示全部楼层
用checkinstall做出来的tgz包,在不同的环境下使用会不会有问题?
比如说我在slack9.1下做的一个包,现在安装在slack10中,这样会不会有影响?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表