无法创建 deb 包
Cannot create deb package
我正在学习创建 deb 包,我发现了这个:http://packaging.ubuntu.com/html/packaging-new-software.html
并关注它
1 sudo apt-get install build-essential
2 wget -O hello-2.7.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz"
3 tar xf hello-2.7.tar.gz
cd hello-2.7
4 ./configure
make
make install
5开始一个包
bzr dh-make hello 2.7 hello-2.7.tar.gz
6 cd hello/debian
rm *ex *EX
7 vi debian/changelog
root@vhost100:~/hello/debian# cat changelog
hello (2.7-0ubuntu1) precise; urgency=low
Initial release (Closes: #nnnn)
-- root Tue, 19 Jul 2016 18:28:11 +0800
8 bzr add debian/source/format
bzr commit -m "Initial commit of Debian packaging."
9 bzr builddeb -- -us -uc
我收到错误
are supported and installed on your system. perl: warning: Falling
back to the standard locale ("C"). dpkg-checkbuilddeps: Unmet build
dependencies: autotools-dev dpkg-buildpackage: warning: Build
dependencies/conflicts unsatisfied; aborting. dpkg-buildpackage:
warning: (Use -d flag to override.) debuild: fatal error at line 1350:
dpkg-buildpackage -rfakeroot -D -us -uc failed bzr: ERROR: The build
failed.
怎么了?
根据评论,您的这部分错误似乎是相关的:
Unmet build dependencies: autotools-dev dpkg-buildpackage
我建议这两个都需要使用 apt-get
安装,您发现实际上只需要第一个。
很高兴它有效!
我正在学习创建 deb 包,我发现了这个:http://packaging.ubuntu.com/html/packaging-new-software.html 并关注它
1 sudo apt-get install build-essential
2 wget -O hello-2.7.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz"
3 tar xf hello-2.7.tar.gz
cd hello-2.7
4 ./configure
make
make install
5开始一个包
bzr dh-make hello 2.7 hello-2.7.tar.gz
6 cd hello/debian
rm *ex *EX
7 vi debian/changelog
root@vhost100:~/hello/debian# cat changelog
hello (2.7-0ubuntu1) precise; urgency=low
Initial release (Closes: #nnnn)
-- root Tue, 19 Jul 2016 18:28:11 +0800
8 bzr add debian/source/format
bzr commit -m "Initial commit of Debian packaging."
9 bzr builddeb -- -us -uc
我收到错误
are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). dpkg-checkbuilddeps: Unmet build dependencies: autotools-dev dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting. dpkg-buildpackage: warning: (Use -d flag to override.) debuild: fatal error at line 1350: dpkg-buildpackage -rfakeroot -D -us -uc failed bzr: ERROR: The build failed.
怎么了?
根据评论,您的这部分错误似乎是相关的:
Unmet build dependencies: autotools-dev dpkg-buildpackage
我建议这两个都需要使用 apt-get
安装,您发现实际上只需要第一个。
很高兴它有效!