Crystal is a free and open source high level object-oriented programming language. It is released under Apache License 2.0. You can call C code writing bindings to it in Crystal and its syntax is very similar to Ruby. It is a statically type-checked and compile-time evaluation code, native code compile, non-nilable types programming language.
How to Install Crystal Programming Language on Ubuntu Linux
You can easily install Crystal programming language via snap package file from the snap store. open the terminal application using the ctrl+alt+t keys and run below Crystal language snap install command. it will install the latest version of Crystal on your system.
sudo snap install crystal --classic
sudo apt-get install gcc pkg-config git tzdata \ libpcre2-dev libevent-dev libyaml-dev \ libgmp-dev libssl-dev libxml2-dev
After the installation. You can save your Crystal code
puts "Hello World!"
in hello_world.cr file.
And run that file as below.
crystal hello_world.cr
For help run below command.
crystal
Crystal Online Playground [Compile & run code in Crystal]
That’s it.