How to install Gnatcoll Postgres on Linux Centos 7
我已经安装了 gprbuild、xmlada 和 gnatcoll。我现在正在尝试安装 gnatcoll_postgres。我从这里下载的:https://github.com/AdaCore/gnatcoll-db/
在 Postgres 文件夹中有一个 Makefile,我是这样执行的…
1
2 3 4 5 6 7 8 9 10 11 |
[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]$ |
谁能告诉我这是什么意思…
1
2 |
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 安装二进制文件不在您的 PATH 上。
adacore.com 网站上的 README.txt 部分说明了,
To start using the tools in command-line mode, you will need to add
{install_prefix}/bin to your PATH environment variable. Alternatively, you can simply launch
{install_prefix}/bin/gps and GPS will automatically add itself to the PATH – it will also find the
cross compiler, if you have installed everything in the default locations.
Note that GPS will add this at the end of the PATH, meaning that it will find first any other GNAT installations that you have in your PATH.
我强烈怀疑你一直在做后者,所以 GPS 将自己(实际上,当然,它自己的位置)添加到 PATH 中,以便在启动编译器时找到正确的编译器。
当您从终端运行
您需要做的是从 README 中获取第一个选项,并将
你会发现
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/269911.html