創建以下bash腳本從git的URL &修訂標籤創建一個.deb軟件包:的混帳URL創建.deb文件從修訂標籤封裝
慶典:https://github.com/GlassGhost/GitDeb
我測試了它/path/to/GitDeb.sh混帳://repo.or.cz/tinycc.git TCC 0.9.26 release_0_9_26
但調用的https://github.com/GlassGhost/GitDeb/blob/d0c24db46244cc34c0cffded57903fddb290d790/GitDeb.sh
線fakeroot checkinstall --install=no --pkgname="$PkgName" --pkgversion="$PkgVersion" -y -D make install
它失敗,出現以下:
Installing with make install...
========================= Installation results ===========================
make -C lib native
make[1]: Entering directory `/home/owner/Documents/GitDeb/tcc/lib'
make[1]: Nothing to be done for `native'.
make[1]: Leaving directory `/home/owner/Documents/GitDeb/tcc/lib'
mkdir -p "/usr/local/bin"
install -m755 tcc "/usr/local/bin"
install: cannot create regular file ‘/usr/local/bin/tcc’: Permission denied
make: *** [install] Error 1
**** Installation failed. Aborting package creation.
你的腳本適用於我,我不明白爲什麼你會有這樣的錯誤。請在http://pastebin.com/上粘貼腳本的完整輸出,並在此處分享鏈接。 – janos
@janos我在下面的答案中加入了fstrans,但仍然在該評論中出現錯誤鏈接 – GlassGhost
該錯誤很容易解決,創建目錄'/ usr/local/share/doc'並重新運行腳本。如果您收到其他錯誤,請重新發布。 – janos