Gnat Programming for Mac Ada

I am learning Ada 95 in my programming class and I would like to install the gnat compiler on my MacBook. I don’t know where to get a good mosquito to compile my code and how to install it.

I currently have gedit as a text editor, because this is what we use in our lab environment. I am new to the Mac world, so any help would be greatly appreciated.

+5
source share
2 answers

In AdaCore has an excellent free Ada compiler for the X OS the Mac .

GNAT GPL. "" - " " , .

x86_64-darwin, 2012. GNAT 2012, gnat-gpl-2012-x86_64-apple-darwin10.8.0-bin.tar.gz ( , ).

Xcode ( Mac OS X). Pre-Lion, ( ) DVD. Lion ML App Store ( ML > a > Xcode). ML : Xcode, Xcode > > > , .

, Xcode, GNAT ( , , which make: , ). , GNAT,

$ cd
$ tar zxvf ~/Downloads/gnat-gpl-2012-x86_64-apple-darwin10.8.0-bin.tar.gz
$ cd gnat-gpl-2012-x86_64-apple-darwin10.8.0-bin
$ sudo ./doinstall

, .

GNAT /usr/local/gnat, , /usr/local/gnat/bin ( , /usr/bin). ~/.bash_profile_common,

PATH=/usr/local/gnat/bin:$PATH

, ~/.bash* !

+10

OS X Yosemite 10.10.3, .

  • GNAT http://libre.adacore.com/download/configurations. Mac OS X .

  • :

    • (tar , , , :

      tar zxvf gnat-gpl-2012-x86_64-apple-darwin10.8.0-bin.tar.gz   
      

      . , , , 1.

    • cd gnat-gpl-2012-x86_64-apple-darwin10.8.0-bin

    • sudo ./doinstall

  • .bash_profile /Users/{YOUR_USER_NAME}/.bash_profile,

    export PATH=$PATH:/opt/local/bin:/usr/local/gnat/bin
    
  • .bash_profile.

  • . gnatmake.

+4

All Articles