2017-05-07 41 views
0

我正在學習用以下命令構建Debian軟件包:https://wiki.debian.org/Packaging/Intro?action=show&redirect=IntroDebianPackagingdebuild錯誤:override_dh_auto_install ::沒有找到命令

誠如上面的文章,當我運行debuild -us -uc,它失敗,以下錯誤:

# debuild -us -uc 
dpkg-buildpackage -rfakeroot -D -us -uc 
dpkg-buildpackage: warning: using a gain-root-command while being root 
dpkg-buildpackage: source package hithere 
dpkg-buildpackage: source version 1.0-1 
dpkg-buildpackage: source distribution unstable 
dpkg-buildpackage: source changed by XXXXXXX XXXXX <[email protected]> 
dpkg-source --before-build hithere-1.0 
dpkg-buildpackage: host architecture amd64 
fakeroot debian/rules clean 
debian/rules: line 1: fg: no job control 
    dh_testdir 
    dh_auto_clean 
    make -j1 clean 
rm -f hithere hithere.o 
    dh_clean 
debian/rules: line 4: override_dh_auto_install:: command not found 
debian/rules: line 5: syntax error near unexpected token `(' 
debian/rules: line 5: ` $(MAKE) DESTDIR=$$(pwd)/debian/hithere prefix=/usr install' 
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2 
debuild: fatal error at line 1376: 
dpkg-buildpackage -rfakeroot -D -us -uc failed 

它說的是override_dh_auto_install:: command not found。我在這裏失去了一點點,搜索谷歌解決以上錯誤,但尚未成功。任何指針都會有很大的幫助。

BTW,我運行在Ubuntu 16.04 64位

回答

0

這個過程我做了一個非常愚蠢的錯誤。我忘了在我的debian/rules文件的開頭添加#!/usr/bin/make -f。事情正在起作用。