Skip to content

Instantly share code, notes, and snippets.

@farishkash
Created April 27, 2017 23:59
Show Gist options
  • Save farishkash/528b525e147ebf739e28243f777b4b8f to your computer and use it in GitHub Desktop.
Save farishkash/528b525e147ebf739e28243f777b4b8f to your computer and use it in GitHub Desktop.
Linux commands to install Ruby on Rails on Windows 10
Initial linux update
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
rbenv setup
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
Ruby
rbenv install 2.4.0
rbenv global 2.4.0
ruby -v
Bundler Install
gem install bundler
rbenv rehash
Node JS setup for asset pipeline version 6.X.X
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Rails
gem install rails -v 5.0.1
rbenv rehash
@lovemercybiz
Copy link

Thank you!!

@paxtomas
Copy link

I really appreciated

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