Last active
December 13, 2022 09:07
-
-
Save kolosek/d4922affc7c39a1107963db9806c6b86 to your computer and use it in GitHub Desktop.
Install aadf on fresh ubuntu installation, tested on ubuntu 22.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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