Skip to content

Instantly share code, notes, and snippets.

@kaosf
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaosf/11493504 to your computer and use it in GitHub Desktop.
Save kaosf/11493504 to your computer and use it in GitHub Desktop.
# How to setup Ruby 2.1.1 on Lubuntu 14.04
sudo aptitude install curl zlib1g-dev libssl-dev libreadline6-dev
git clone https://github.com/sstephenson/rbenv.git $HOME/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.zshenv
echo 'eval "$(rbenv init -)"' >> $HOME/.zshenv
exec $SHELL -l
mkdir -p $HOME/.rbenv/plugins
git clone https://github.com/sstephenson/ruby-build.git $HOME/.rbenv/plugins/ruby-build
git clone https://github.com/ianheggie/rbenv-binstubs.git $HOME/.rbenv/plugins/rbenv-binstubs
curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1
rbenv global 2.1.1
rbenv rehash
# ref. https://github.com/sstephenson/ruby-build/issues/526#issuecomment-37933242
# How to install earthquake.gem
gem install bundler --no-ri --no-rdoc
rbenv rehash
echo "source 'https://rubygems.org'" > Gemfile
echo "" >> Gemfile
echo "gem 'earthquake'" >> Gemfile
bundle install
rbenv rehash
bundle exec earthquake
# _ _ _
# ___ __ _ _ __| |_| |__ __ _ _ _ __ _| | _____
# / _ \/ _` | '__| __| '_ \ / _` | | | |/ _` | |/ / _ \
#| __/ (_| | | | |_| | | | (_| | |_| | (_| | < __/
# \___|\__,_|_| \__|_| |_|\__, |\__,_|\__,_|_|\_\___|
# |_| v1.0.1
#
#/home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/number_helper.rb:3:in `<module:NumberHelper>': uninitialized constant ActiveSupport::Autoload (NameError)
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/number_helper.rb:2:in `<module:ActiveSupport>'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/number_helper.rb:1:in `<top (required)>'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:2:in `require'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:2:in `<top (required)>'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric.rb:3:in `require'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric.rb:3:in `<top (required)>'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/core_ext.rb:2:in `require'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/core_ext.rb:2:in `block in <top (required)>'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/core_ext.rb:1:in `each'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.1.0/lib/active_support/core_ext.rb:1:in `<top (required)>'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/earthquake-1.0.1/lib/earthquake.rb:16:in `require'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/earthquake-1.0.1/lib/earthquake.rb:16:in `block in <top (required)>'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/earthquake-1.0.1/lib/earthquake.rb:16:in `each'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/earthquake-1.0.1/lib/earthquake.rb:16:in `<top (required)>'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/earthquake-1.0.1/bin/earthquake:34:in `require'
# from /home/username/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/earthquake-1.0.1/bin/earthquake:34:in `<top (required)>'
# from /home/username/.rbenv/versions/2.1.1/bin/earthquake:23:in `load'
# from /home/username/.rbenv/versions/2.1.1/bin/earthquake:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment