TIDE
Languages

Chapel

Installing Chapel on Ubuntu in TIDE

Chapel

Chapel is a modern programming language designed for productive parallel computing at scale, suitable for execution on multi-core CPUs and distributed supercomputers.

Installation

Prerequisites

First, ensure system build tools are installed:

sudo apt update
sudo apt install -y build-essential python3 cmake wget

Installing via Prebuilt Binary (.deb)

Download and install the official Chapel .deb package for Ubuntu:

wget https://github.com/chapel-lang/chapel/releases/download/2.4.0/chapel-2.4.0-1.ubuntu24.amd64.deb
sudo apt install -y ./chapel-2.4.0-1.ubuntu24.amd64.deb

Installing from Source Tarball

Alternatively, build from the source archive:

wget https://github.com/chapel-lang/chapel/releases/download/2.4.0/chapel-2.4.0.tar.gz
tar -xzf chapel-2.4.0.tar.gz
cd chapel-2.4.0
source util/setchplenv.bash
make

Verification

Check that the Chapel compiler (chpl) is available:

chpl --version

Writing and Compiling Code

Create a file named hello.chpl:

hello.chpl
writeln("Hello, World from Chapel!");

Compile the program using chpl:

chpl hello.chpl -o hello

Run the generated binary:

./hello

Official Resources

On this page