Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Created February 7, 2019 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipsj/d99826601bf1a8691e3a386f68aacc76 to your computer and use it in GitHub Desktop.
Save phillipsj/d99826601bf1a8691e3a386f68aacc76 to your computer and use it in GitHub Desktop.
Bash script for adding Crystal Lang repos to bash and installing it and dependencies.
#! /bin/bash
curl -sL "https://keybase.io/crystal/pgp_keys.asc" | sudo apt-key add -
echo "deb [arch=amd64] https://dist.crystal-lang.org/apt crystal main" | sudo tee /etc/apt/sources.list.d/crystal.list
sudo apt-get update
sudo apt install libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev -y
sudo apt install crystal -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment