在ubuntu 16.04 - lazarus 1.6 - fpc 3.0.0上安裝問題indy 10.2.xx

在ubuntu 16.04 - lazarus 1.6 - fpc 3.0.0上安裝問題indy 10.2.xx

我使用 Lazarus 進行編程,我將 Ubuntu 和 lazarus 從 15.10 -> 16.04 和 2.6.x -> 3.0.0 升級,但現在我無法再次安裝 indy 10.2.xx。

幫助告訴我們:http://wiki.freepascal.org/Indy_with_Lazarus

如何在 debian/ubuntu 上安裝

  1. cd indy-10.2.0.1/fpc
  2. chmod +x debian/規則
  3. 觸摸自述文件
  4. sudo apt-get 安裝 fakeroot
  5. dpkg-buildpackage-rfakeroot-uc
  6. 光碟 ..
  7. sudo dpkg -i *.deb
  8. 在 lazarus 中安裝 indylaz.lpk 套件

但當我嘗試執行步驟 5 時,dpkg-buildpackage -rfakeroot -uc出現此錯誤:

make[1]: Entering directory '/home/myuser/Appz/indy-10.2.0.3/fpc'
/usr/bin/fpcmake -p -Ti386-linux Makefile.fpc
Processing Makefile.fpc
Error: Target "linux", package "fcl-base" not found
Makefile:2470: recipe for target 'fpc_install' failed
make[1]: *** [fpc_install] Error 1
make[1]: Leaving directory '/home/myuser/Appz/indy-10.2.0.3/fpc'
debian/rules:99: recipe for target 'install-arch' failed
make: *** [install-arch] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

我必須使用 indy,為什麼不能創建 debian 包?解決方案是什麼?

答案1

  1. 首先從 repo 下載 indy
  2. 從 $(LazarusDir)\components 目錄中的文件 tar.gz(必須是這個文件,「zip 檔案」不起作用)解壓縮元件;
  3. 前往目錄 $(LazarusDir)\components\indy-10.2.0.1\ 並在其中建立一個名為「saved」的目錄
  4. 將目錄 $(LazarusDir)\components\indy-10.2.0.1\lazarus\ 的內容複製到上面所建立的目錄「saved」;
  5. 將目錄$(LazarusDir)\components\indy-10.2.0.1\fpc\的內容複製到目錄$(LazarusDir)\components\indy-10.2.0.1\lazarus,並重寫所有文件,ok;
  6. 取得「saved」目錄的內容並將其複製到 $(LazarusDir)\components\indy-10.2.0.1\lazarus 中,現在可以刪除「saved」目錄; 7.透過以下方式安裝 laz.lpk 套件(位於 $(LazarusDir)\components\indy-10.2.0.1\lazarus\indy 中):

    • 打開包裝
    • 編譯它
    • 再次編譯/無需清理/無需建置全部/只需簡單編譯
    • 建造 Lazarus(但不要選擇任何“乾淨”選項)

相關內容