Don't build in /media/disk1/ada\ programs
, a directory where you (apparently) don't have adequate permission. Instead, build somewhere in your home directory, ~
, where you do have permission. GNAT executables are typically installed in /usr/bin
, which is probably already in your PATH
.
$ which gnatmake /usr/bin/gnatmake $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ cd ~ $ gnatmake hello gcc-4.6 -c hello.adb gnatbind -x hello.ali gnatlink hello.ali $ ./hello Hello, world!