linux - Debian 使用dpkg打包源代码生成deb包出错
大家讲道理
大家讲道理 2017-04-17 15:49:01
0
1
864

最后使用dpkg-buildpackage -rfakeroot打包的时候,生成了orig.tar.gz .debian.tar.gz .dsc 文件,dpkg-buildpackage没有生成deb包。

提示错误信息:

configure: error: no such option: --build
dh_auto_configure: ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/node --disable-maintainer-mode --disable-dependency-tracking returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

debian/rules文件

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
    dh $@  --with autotools-dev

debian/control文件

Source: node
Section: unknown
Priority: extra
Maintainer: eoo <632107671@qq.com>
Build-Depends: debhelper (>= 8.0.0), autotools-dev
Standards-Version: 3.9.3
Homepage: <insert the upstream URL, if relevant>
#Vcs-Git: git://git.debian.org/collab-maint/node.git
#Vcs-Browser: http://git.debian.org/?p=collab-maint/node.git;a=summary

Package: node
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: <insert up to 60 chars description>
 <insert long description, indented with spaces>

    
    
    
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

全員に返信(1)
Peter_Zhu

エラーログを見ると、--buildオプションが間違って使用されているようです。x86のようなパラメータを指定したい場合は、architectureと同様のオプションだと思います。 debian シリーズのディストリビューションはあまり使用されていないため、dpkg のマニュアルをご自身で確認することをお勧めします。

参考:
https://wiki.debian.org/Multi...
http://manpages.ubuntu.com/ma...

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!