Skip to content

Instantly share code, notes, and snippets.

@thepoho
Last active January 25, 2016 06:25
Show Gist options
  • Save thepoho/26e8d8d1ead67bd6ca51 to your computer and use it in GitHub Desktop.
Save thepoho/26e8d8d1ead67bd6ca51 to your computer and use it in GitHub Desktop.
#run this as a regular user#
sudo apt-get update
sudo apt-get -y install git gcc make autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev apache2 mysql-client apache2-utils libmysqlclient-dev default-jre libcurl4-openssl-dev libapr1-dev libaprutil1-dev imagemagick openssl
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
### RESTART SHELL ###
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install -l #lists available rubies
rbenv install 2.2.3
### If this fails due to an OpenSSL v3 error, try doing the below taken from https://github.com/rbenv/ruby-build/issues/834#issuecomment-159491873 ###
## curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | rbenv install --patch 2.2.3
rbenv global 2.2.3
@thepoho
Copy link
Author

thepoho commented Nov 25, 2015

Issues on ubuntu 14.04 trying to install 2.2.3 - something to do with openssl being removed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment