Skip to content

Instantly share code, notes, and snippets.

@Neener54
Last active October 10, 2015 05:57
Show Gist options
  • Save Neener54/3644503 to your computer and use it in GitHub Desktop.
Save Neener54/3644503 to your computer and use it in GitHub Desktop.
Custom Version of Rails Girls with rvm and what not
set -e
echo "Updates packages. Asks for your password."
sudo apt-get update -y
echo "Installs packages. Give your password when asked."
sudo apt-get install build-essential bison openssl libmagic-dev libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 mysql-client mysql-server libmysql-ruby libmysqlclient-dev libxml2-dev libxslt-dev autoconf libc6-dev nodejs -y
echo "Installs ImageMagick for image processing"
sudo apt-get install imagemagick --fix-missing -y
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "Installs Ruby"
rvm install 1.9.3
rvm use 1.9.3 --default
gem install bundler --no-rdoc --no-ri
gem install rails --no-rdoc --no-ri
echo -e "\n- - - - - -\n"
echo -e "Now we are going to print some information to check that everything is done:\n"
echo -n "Should be sqlite 3.7.3 or higher: sqlite "
sqlite3 --version
echo -n "Should be rvm 1.6.32 or higher: "
rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-10
echo -n "Should be ruby 1.9.3-p194: "
ruby -v | -d " " -f 2
echo -n "Should be Rails 3.2.2 or higher: "
rails -v
echo -e "\n- - - - - -\n"
echo "If the versions match, everything is installed correctly.
Congrats!"
@Neener54
Copy link
Author

so to run this I think the command is something like :

bash < <(curl -s https://gist.github.com/raw/3644503/eb13f14e919a415b6c2744194152b47394d87e87/install_ruby.sh)

I think that should do it.

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