如何在Linux Centos 7上安装Gnatcoll Postgres [英] How to install Gnatcoll Postgres on Linux Centos 7
问题描述
我已经安装了gprbuild,xmlada和gnatcoll。我现在正在尝试安装gnatcoll_postgres。我从这里贬低了它:
谢谢,
Lloyd
这意味着您的GNAT安装二进制文件不在PATH中。 / p>
adacore.com网站上的README.txt部分表示
要开始以命令行模式使用该工具,您将需要添加
{install_prefix} / bin
到PATH环境变量。或者,您可以简单地启动
{install_prefix} / bin / gps
和GPS会自动将其自身添加到PATH中-如果您已将所有内容安装在默认位置,它将找到
交叉编译器。
请注意,GPS会将其添加到PATH的 end 中,这意味着它将首先查找PATH中具有的任何其他GNAT安装。
我强烈怀疑您一直在做后者,因此GPS会自动添加(实际上是它自己的)路径),以便在启动编译器时找到正确的路径。
运行 make
在终端上,编译器不在PATH上,因此 gnatls
, gprconfig
, gprbuild
和其余的GNAT工具。
您需要做的是从README中获得第一选择,并且将 / home / parallel / opt / GNAT / 2019 / bin
添加到默认路径(的最前面)。
您会发现 xmlada
, gnatcoll
已安装。
I have installed gprbuild, xmlada, and gnatcoll. I am now attempting to install gnatcoll_postgres. Which I have downladed from here: https://github.com/AdaCore/gnatcoll-db/
Within the Postgres folder is a Makefile, which I execute like so...
[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]$
Would anybody please be able to tell me what this means...
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'.
Any help would be greatly appreciated.
Please see the xmlada and gnatcoll in my project below, does this look like it's installed correctly? I'm presuming this isn't correct...
Thanks, Lloyd
It means that your GNAT installation binaries aren’t on your PATH.
The README.txt from the adacore.com site says, in part,
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.
I strongly suspect that you’ve been doing the latter, so that GPS adds itself (actually, of course, its own location) to the PATH, so that when it launches the compiler it finds the correct one.
When you run make
from the terminal, the compiler isn’t on the PATH, so neither are gnatls
, gprconfig
, gprbuild
and the rest of the GNAT tools.
What you need to do is to take the first choice from the README, and add /home/parallel/opt/GNAT/2019/bin
to (the front of) your default PATH. How you do that depends on your shell.
You will find xmlada
, gnatcoll
already installed.
这篇关于如何在Linux Centos 7上安装Gnatcoll Postgres的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!