Skip to content

Instantly share code, notes, and snippets.

@Nosfheratu
Forked from vysakh0/rbenv_ruby
Created April 8, 2013 01:46
Show Gist options
  • Save Nosfheratu/5333580 to your computer and use it in GitHub Desktop.
Save Nosfheratu/5333580 to your computer and use it in GitHub Desktop.
/* Requirements install git and curl */
/* installing rbenv */
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
/* add this instead of generated stuff "PREPEND" the echo wordings to ~/.profile */
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile
/* make sure it works after another login you should see something like
/home/vysakh/.rbenv/bin:/home/vysakh/.rbenv/shims:/home/vysakh/.rbenv/bin:
*/
env $PATH
/*to install sqlite and other dependencies*/
sudo apt-get install libreadline-dev libssl-dev zlib1g-dev build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
/* for readline to make rails c */
CONFIGURE_OPTS="--with-readline-dir=/usr/include/readline" rbenv install 1.9.3-p327
/* installing ruby */
rbenv global 2.0.0-p0
gem install bundler --no-ri --no-rdoc
/* you need to run "rbenv rehash" after every gem installation" */
rbenv rehash
/* installing rails */
gem install rails
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment