1
votes

I managed to install the gnat compiler from libre.adacore.com on a OSx 10.6.8. I would like to install also the Gnat Programming Studio (GPS) environment. I tried different things but none of them worked and I found no exhaustive explanation.

Could someone explain (possibly step by step) how to perform the installation of GPS on a OSX operating system? Thanks

2

2 Answers

2
votes

GPS needs XQuartz (X11 support for Mac OS X). Earlier versions of GPS actually run under X11; GNAT GPL 2014’s GPS doesn’t need it to run but still requires a libpng from XQuartz.

GPS is already present in the installation, in the same bin/ directory as the other programs (gnatmake etc), which should be on your PATH. So, in a terminal window,

$ gps &

should do the trick.

One of the members of the GNAT-OSX mailing list posted a simple GPS.app to run GPS like any other application from the Finder.

1
votes

I propose my solution for Mac OSX 10.6.8. Since I had problems with the adagpl-2014 version, I downloaded the adagpl-2012 version.

To install it open the terminal in Utilities and navigate to the folder

/x86_64-darwin/adagpl-2012/gnatgpl

and lunch the file doinstall with the command sudo ./doinstall.

Be sure to wait the installation ends. After that navigate to the subfolder bin and lanch the gps file with ./gps.