The Ubuntu Packaging Guide
https://help.ubuntu.com/6.10/ubuntu/pac ... index.html
按照这里说的 用pbuilder打包
https://help.ubuntu.com/6.10/ubuntu/pac ... elper.html
里面提到的包我都已经安装:build-essential, devscripts debhelper, diff, gnupg fakeroot lintian pbuilder
我的系统是ubuntu8.0.4.2
步骤是先建个工作目录,如work
把源码包(如hello.2.1.1.tar.gz)拷贝到目录下,解压
然后在控制台进入work目录
运行dh_make -e [email protected] -f ../hello.2.1.1.tar.gz
选s 再enter
生成debian文件夹和hello.2.1.1.org.tar.gz
然后运行debuild -us- uc -S
sudo pbuilder build ../*dsc
这么一趟下来,唯一成功的就是生成了例子里面给的hello.2.1.1.tar.gz的deb包
如果我用其他的源文件,就从来没有成功过。这是为什么阿?
比如用xchat-2.8.6.tar.bz2(xchat官网下的) 运行sudo pbuilder build ../*dsc 后,会提示错误
configure: error: "Cannot find glib"
make: *** [config.status] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
pbuilder: Failed autobuilding of package
打包其他软件也都会出错,但是错误都不一样
那位大虾知道是为什么阿?我有什么错误么?
或者谁能把打包xchat-2.8.6.tar.bz2的过程贴出来我看看就更好了
