Skip to content

Instantly share code, notes, and snippets.

@kolosek
Last active December 13, 2022 09:07
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 kolosek/d4922affc7c39a1107963db9806c6b86 to your computer and use it in GitHub Desktop.
Save kolosek/d4922affc7c39a1107963db9806c6b86 to your computer and use it in GitHub Desktop.
Install aadf on fresh ubuntu installation, tested on ubuntu 22.04
sudo apt install make gcc dirmngr gpg curl gawk zlib1g-dev libssl-dev unzip
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar zxvf openssl-1.1.1g.tar.gz
cd openssl-1.1.1g/
./config --prefix=$HOME/.openssl/openssl-1.1.1g --openssldir=$HOME/.openssl/openssl-1.1.1g
make install
rm -rf ~/.openssl/openssl-1.1.1g/certs
ln -s /etc/ssl/certs ~/.openssl/openssl-1.1.1g/certs
#ASDF ruby manager
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc
source ~/.bashrc
#Ruby plugin
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
#Elixir plugin
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
#Erlang plugin
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
#NodeJS plugin
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
#Ruby install prior to version 3.1.0
RUBY_CONFIGURE_OPTS=--with-openssl-dir=$HOME/.openssl/openssl-1.1.1g asdf install ruby 3.0.4
#Ruby install after version 3.1.0
asdf install ruby 3.1.0
# Necessary! On servers use 3 lines below command instead of this
sudo gem install --user-install executable-hooks
#On Servers set global version for gem executables
asdf global ruby 3.0.0
gem install --user-install executable-hooks
gem install foreman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment