GnatMacOSX Installation HOWTO
I encountered a few obstacles in installing Gnat for Mac OS X. Thanks to Jim Hopper for his guide to installing. Lacking installation-HOWTO on the website, I decided to write a short and simple installation-HOWTO.
- Download Mac OS X 10.2.3 update. This is optional.
- You will need Apple Developer Tools which is not pre-installed. If you already have Apple Developer Tools installed. Skip this and goto Step 3. If not, follow the steps below to install Apple Developer Tools:
- Double click the Macintosh HD icon on your Desktop.
- Double click Installers folder.
- Double click Developer Tools folder.
- Double click Developer.mpkg and follow the installation steps.
- After you have installed the Apple Developer Tools, download Wavefront 10.2 (gnat-gcc-3.1-1173-jaguar.dmg). Click on its icon on your desktop after download is completed. Follow the installtion steps. After the installation, you should be able to compile your Ada codes using UNIX-like command line. Goto Terminal (/Application/Utilities/Terminal).
- To use Apple IDE, Project Builder, download Wavefront of gdb for 10.2 (gnatgdb-225.20020911.sit). After Stuff-It-Expander has expanded the file, you will see gnatgdb-225.20020911 icon on your Desktop. Goto Terminal and do the following:
- Download the Wavefront Carbon Bindings for Mac OS X 10.2 (Carbon_Bindings_10.2_Dec.sit). After the download, you should be able to see Carbon_Bindings_10_2#1434BC.pkg icon on your Desktop. Double click it and follow the installation steps.
- Double click Macintosh HD then Developer folder then Applications folder. Double cick Project Builder. Viola!
% cd /usr/bin
% sudo mv gdb gdb.orig
% sudo mv ~/Desktop/gnatgdb-225.20020911 gdb
Build and run the classic Hello World. Here is some tips for using Project Builder. To build and run the classic Hello World, there is some simple steps to follow:
- Choose File/New Project and you will see a window with many options to choose from. Choose Ada Standard Tool. Enter main for your Project Name.
- Expand Source and double click main.adb. Here’s your classic Hello World Ada code by default.
- Click Build and Run. Here it is.
Each time you create a new project, the file main.adb will be created by default. Double click main.adb and Save As the same name as your project name.
Comments
Leave a Reply
佛学 佛教 地藏经 太极 般若 诗 Ada algorithm Apple AWS behavior bread bread maker Buddhism cataract cataract surgery chinese input Christmas DAP Debian diagnosis earthquake emergency encryption Family Flywheel Food fracture free sparring Gifts gnat GPS Health heart holiday Honda HOWTO information Injuries input method iPhone iPod Touch iTunes jiyu kumite Karate karate-do kata KazeServer kumite Lamport laser retinopexy Leopard Linux Mac MacBook Mac OS X Malacca Malaysia Martial Arts Medical melaka MMU mysql Okinawa Olympic 2008 Penang Philosophy Photography pneumatic retinopexy Politics posterior vitreous detachment Princess psychology PVD recycle Research retina retina detachment retina repair retina tear Sanchin scholarship science scim Security Sichuan sparring Sports SSH stroke Subversion tongue training Ubuntu vitrectomy Wenchuan wholemeal wordpress Xcode Zakimi
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.


Listen to my podcast