TIDE
Languages

Crystal

Installing Crystal on Ubuntu in TIDE

Crystal

Crystal is a compiled, statically type-checked programming language with Ruby-inspired syntax and C-like performance.

Installation

Install Crystal on Ubuntu using the official installer script:

apt update
apt install -y curl gnupg libssl-dev libxml2-dev libyaml-dev libgmp-dev libz-dev
curl -fsSL https://crystal-lang.org/install.sh | bash

Verification

Check the installed Crystal version:

crystal --version

Writing and Compiling Code

Create a Crystal file named hello.cr:

puts "Hello, World!"

Execute the file directly:

crystal run hello.cr

Alternatively, compile it to a native binary:

crystal build hello.cr
./hello

Official Resources

On this page