Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8690163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:50:43+00:00 2026-06-12T23:50:43+00:00

I’m running Mac OS X v10.8 (Mountain Lion) with Xcode 4.5.1 with command line

  • 0

I’m running Mac OS X v10.8 (Mountain Lion) with Xcode 4.5.1 with command line tools.

I have just installed GNAT 2012 from here.

I installed it using this tutorial:

Navigate to the directory that contains a file called: doinstall
Enter: sudo mkdir /usr/loca/gnat You will have to enter your password
Enter: sudo ./doinstall Press return and y as prompted Update your
path: sudo export PATH=/usr/local/gnat/bin:$PATH You should now be
able to compile using the command gnatmake

Everything went fine and I restarted. On my desktop I have file hello.adb:

with Ada.Text_IO;use Ada.Text_IO;
procedure Hello is
begin
    Put_Line ("Hello, World!");
end Hello;

And in terminal I navigate to my desktop and execute the gnatmake hello.adb. But I get this

-bash: gnatmake: command not found

But in the terminal, if I execute info gnat, I get a very large documentation file.

  1. Why can’t I compile hello.adb? Is there a way to fix it?
  2. Can I create Ada projects and compile/debug within Xcode? I would like to edit the source files using Xcode as the IDE. If so, what type of project shall I use? "external build system" perhaps?
    What could a tutorial be on how to run a Hello, World! application using Xcode? Video would be great. It is such a pity that Ada has few little resources on the Internet.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:50:43+00:00Added an answer on June 12, 2026 at 11:50 pm

    You need to put the path to Ada in a more permanent place. The command you entered in your Terminal only lasts for as long as the terminal is open.

    Open the $HOME/.bash_profile file and add

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

    You can open the file from Terminal with either

    nano ~/.bashrc
    

    or

    vim ~/.bashrc
    

    If you’re using Z shell (executable zsh), place the export line in the $HOME/.zshrc file.

    For #2, I can’t find an updated Xcode plugin, but if you want an IDE, check out this top answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running Mac OS 10.8.2 and Xcode 4.5.1. I installed the command line tools
I'm on a Mac running OS X v10.6 (Snow Leopard). I have Mercurial 1.1 installed. After I
I am running Mac OS X 10.5.8. I have installed Python 2.6 from the
So I'm running Mac OSX Lion and I recently installed Eclipse IDE for Java
I have installed git and svn with homebrew on my mac running 10.7.4. There
I'm running Mac OS X 10.7.4, and I just installed java 1.7. If I
I am running the following in Perl v5.12.3 on Mac OS X v10.7.2 (Lion):
Running: Mac OS X Lion 10.7.4 xCode Version 4.4.1 Ruby 1.8.x Brew Rvm I'm
I am running MAC with parallels installed. I have windows 7 Pro installed on
I am running Mac OSX lion and have a Java project in netbeans where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.