Closed coffeebe4code closed 3 years ago
I reinstalled with the studio. After having an error with libtinfo.so.5 not existing and linking a version i had like this.
sudo ln -s /lib/x86_64-linux-gnu/libtinfo.so.6 /lib/x86_64-linux-gnu/libtinfo.so.5
I ran gnatstudio. and was able to get a simple hello project compiling with ease.
with Ada.Text_IO; use Ada.Text_IO;
procedure main is
begin
Put_Line ("hello");
end main;
here is the run command.
gprbuild -d -P/home/christopher/default.gpr /home/christopher/main.adb
and output.
/home/christopher/main
hello
So I thought that whatever magic the studio did, my next terminal session would work, this was not the case. I still get the same error.
I don't think gnatstudio comes with any particular magic that would affect command line tools, so this must be a problem in your environment (which apparently changes into a correct one if you run from gnatstudio). What you can try to do to troubleshoot it is open a terminal under gnatstudio control (View->OS Shell) and run your command from there. If it works, you can try checking what's different with your regular console, by running e.g. "set" etc. Let us know what it gives.
ahh, wow. I'm an idiot. On my path.
~/opt/GNAT/2021/bin:$PATH
it's obviously,
$HOME/opt/GNAT/2021/bin:$PATH
Ok, happy to hear you figured out the problem.
they are clearly accessible and on my path.
I installed this version from the Ada Core Website.
https://community.download.adacore.com/v1/f3a99d283f7b3d07293b2e1d07de00e31e332325?filename=gnat-2021-20210519-x86_64-linux-bin&rand=1389
However, I did not select to install the visual GNAT studio, as i planned to use vim only.
Here is the
build.gpr
fileI pulled that directly from your websites first example source code. https://learn.adacore.com/courses/intro-to-ada/chapters/imperative_language.html
Here is the command I ran, and finally the output