Here are the details to my environment...
- Laptop/Desktop with enough ram to run virtual machines on Oracle VirtualBox.
- I normally give each machine 2GB of RAM and about 30GB of hard drive space.
- Fresh install of XUbuntu or plain Jane Ubuntu 14.04
These notes are if you will be installing Ruby 2.2.4. I'm only going up to the part on the gorails.com site where it installs Ruby before you get to the Git section. The last step on this post should get you past the errors I encountered while installing Rails.
Setup/prepwork...
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
Before performing this next step, click on the Edit menu option of your Terminal window. Click on Profile Preferences --> Title and Command tab --> Put a check mark in Run command as a login shell. In XUbuntu it's Edit --> Preferences --> Put a check mark in Run command as login shell within the General tab.
Not on the gorails.com guide...
command curl -ssl https://rvm.io/mpapis.asc | gpg --import
Setup for RVM...
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
I ran across a forum post to run this command or you could close your terminal window and re-open it...
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
Update RVM...
rvm requirements
RVM install...
rvm install 2.3.1
rvm use 2.3.1 --default
ruby -v
This tells Rubygems not to install documentation locally and then installs the bundler...
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
gem install bundler
At this point, you can navigate over to the gorails.com webpage to finish your install if you plan on installing Rails. Good luck!
No comments:
Post a Comment