deb 包构建

deb 包构建

在尝试构建包时,我在终端中输入了以下命令:

cd Downloads/src/
cd unity-5.10.0/
dpkg-buildpackage -rfakeroot -uc -b

然后它给出输出:

dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package unity
dpkg-buildpackage: source version 5.10.0-0ubuntu6
dpkg-buildpackage: source changed by Didier Roche <[email protected]>
dpkg-buildpackage: host architecture i386
dpkg-source --before-build unity-5.10.0
dpkg-checkbuilddeps: Unmet build dependencies: libutouch-grail-dev (>= 1.0.20) libutouch-geis-dev (>= 2.0.10)
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)

然后我尝试使用以下命令安装该包:

cd..
sudo dpkg -i *deb

它给出:

[sudo] password for harshnarang8: 
dpkg: error processing *deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
*deb

究竟是什么原因导致了这个问题以及如何解决它?

答案1

dpkg-checkbuilddeps: Unmet build dependencies: libutouch-grail-dev (>= 1.0.20) libutouch-geis-dev (>= 2.0.10)
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.

libutouch-grail-dev 是构建依赖项之一,但您尚未安装它。请执行以下操作:

apt-get build-dep unity

第二个错误是因为软件包构建失败,所以你没有构建的软件包。你无法安装你没有的软件包。

相关内容