簡體   English   中英

如何在 Linux Centos 7 上安裝 Gnatcoll Postgres

[英]How to install Gnatcoll Postgres on Linux Centos 7

我已經安裝了 gprbuild、xmlada 和 gnatcoll。 我現在正在嘗試安裝 gnatcoll_postgres。 我從這里下載的: https://github.com/AdaCore/gnatcoll-db/

在 Postgres 文件夾中有一個 Makefile,我是這樣執行的……

[parallels@localhost postgres]$ ls
gnatcoll_postgres.gpr              gnatcoll-sql-postgres-gnade.ads
gnatcoll-sql-postgres.adb          gnatcoll-sql-ranges.adb
gnatcoll-sql-postgres.ads          gnatcoll-sql-ranges.ads
gnatcoll-sql-postgres-builder.adb  Makefile
gnatcoll-sql-postgres-builder.ads  postgres_support.c
gnatcoll-sql-postgres-gnade.adb    README.md
[parallels@localhost postgres]$ make Makefile
which: no gnatls in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/var/lib/snapd/snap/bin:/home/parallels/.local/bin:/home/parallels/bin)
make: Nothing to be done for `Makefile'.
[parallels@localhost postgres]$ 

誰能告訴我這是什么意思...

which: no gnatls in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/var/lib/snapd/snap/bin:/home/parallels/.local/bin:/home/parallels/bin)
make: Nothing to be done for `Makefile'.

任何幫助將不勝感激。


請查看下面我項目中的 xmlada 和 gnatcoll,這看起來安裝正確了嗎? 我假設這是不正確的...

GNAT GPS 社區

謝謝,勞埃德

這意味着您的 GNAT 安裝二進制文件不在您的 PATH 上。

來自 adacore.com 網站的 README.txt 部分說,

要開始在命令行模式下使用這些工具,您需要添加

{install_prefix}/bin

到您的 PATH 環境變量。 或者,您可以簡單地啟動

{install_prefix}/bin/gps

和 GPS 會自動將自己添加到 PATH - 如果您已將所有內容安裝在默認位置,它還會找到交叉編譯器。 請注意,GPS 會將其添加到 PATH 的末尾,這意味着它將首先找到您在 PATH 中擁有的任何其他 GNAT 安裝。


我強烈懷疑你一直在做后者,所以 GPS 將自己(實際上,當然是它自己的位置)添加到 PATH 中,這樣當它啟動編譯器時它會找到正確的編譯器。

當您從終端運行make時,編譯器不在 PATH 上,因此gnatlsgprconfiggprbuild和 GNAT 工具的 rest 也不在。

您需要做的是從 README 中選擇第一個選項,並將/home/parallel/opt/GNAT/2019/bin添加到您的默認路徑(的前面)。 你如何做到這一點取決於你的 shell。

您會發現xmladagnatcoll已經安裝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM