Below is a quick‑start guide to get the Ada compiler (GNAT) up and running on Arch Linux.

USA
Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites
Brooks Computing Systems

Below is a quick‑start guide to get the Ada compiler (GNAT) up and running on Arch Linux. All commands assume you are logged in as a user with `sudo` privileges.

---

The GNAT Community Edition is available directly from the official Arch repositories.

sudo pacman -Syu          # Update the system first
sudo pacman -S gnat       # Installs the compiler, runtime, and standard library

After the install you should have:

| Tool | Path | Purpose | |------|------|---------| | `gnatmake` | `/usr/bin/gnatmake` | Build Ada programs | | `gnat` | `/usr/bin/gnat` | Compiler driver | | `gnatbind` | `/usr/bin/gnatbind` | Binder | | `gnatlink` | `/usr/bin/gnatlink` | Linker | | `gnatgcc` | `/usr/bin/gnatgcc` | GCC wrapper for Ada |

---

Create a simple “Hello, Ada!” program:

cat <<'EOF' > hello.adb
with Ada.Text_IO; use Ada.Text_IO;

procedure Hello is
begin
   Put_Line ("Hello, Ada!");
end Hello;
EOF

Compile and run:

gnatmake hello.adb
./hello

You should see:

Hello, Ada!

---

If you want the latest bleeding‑edge version or a specific build, you can use an AUR helper:

# Using yay (replace with your preferred AUR helper)
yay -S gnat-community

The AUR package usually builds the same binaries as the official repo but may include newer patches.

---

GNAT Pro is a commercial product from AdaCore. To install it:

Example: `gnatpro-2024.1-linux-x86_64.tar.xz`

   tar xf gnatpro-2024.1-linux-x86_64.tar.xz
   cd gnatpro-2024.1-linux-x86_64
   sudo ./install
Quality, Reliability & Service        Consultancy for Mainframes, Desktops & Web Sites
Visit https://bcs.archman.us Contact Us https://bcs.archman.us/contact Languages
Thank You For Visiting
Brooks Computing Systems
USA
Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites
Quality, Reliability & Service
Visit Visit Our Site