Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTomasz Jaśkiewicz
5,399 PointsHow to install Ruby on Rails on Ubuntu
I encountered many problems during installing Ruby on Rails on Ubuntu. I know that Ubuntu is based on Unix architecture but still instruction for mac is not enough so I had to solve some problems. If anyone would like to install RoR on ubuntu I created brief guide:
/************* Installing Ruby on Rails on Ubuntu *************/
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
// change .bash_profile to .bashrc
sudo apt-get install build-essential libssl-dev libcurl4-openssl-dev libreadline-dev -y
// ubuntu doesn't have these libs and we need them
rbenv install 2.1.2
rbenv global 2.1.2
gem update
gem install bundler
rbenv rehash
apt-get install libsqlite3-dev
// required to install gem sqlite3
gem install sqlite3
gem install rails --version=4.0.2
rbenv rehash
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
// ubuntu doesn't have node.js so we need to install it but we need also curl
localhost:3000
1 Answer
Miguel Hernández
Courses Plus Student 1,101 PointsGreat contribution.
I used this guide using RVM and everything runs perfectly: https://gorails.com/setup/ubuntu/14.04