Setup Ubuntu 14.04 Trusty Tahr Discussion
Very good article.
On my laptop with Ubuntu I've just used:
rvm install 2.1.3
rvm use 2.1.3 --default
ruby -v
And all it's OK . Thank you so much !
Latest release of RVM will throw an error stating signature verification failed. Execute this line: gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 before downloading RVM.
you can use this tutorial to come out from that error you may want to use ruby version control ....... see here how to install RVM http://buffercode.in/instal...
Should we use the NodeSource distributions repo for nodejs instead of Chris Lea's repo? https://github.com/nodesour...
Good question. I'm not sure about NodeSource, but I'd say as long as Chris Lea keeps updating his repo (and he seems to quite consistently), you're fine with that. Feel free to try out NodeSource and let me know how it goes.
I follow the instuction and using rvm
everything was fine, but when I install rails, I got this error.
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/qu...
any ideas why? and how to fix it?
sudo apt-get install libffi-dev is also needed on ubuntu 14 for ruby 2.2.1
https://github.com/sstephen...
When running rbenv install 2.2.1
, I get rbenv: no such command `install'
.
Anyway, why in the world is it so complicated to just install the latest Ruby?
Make sure you run the ruby-build lines before that.
You could skip all this and use apt-get to install Ruby, but the reason we do this is so that when a new version comes out later, you can easily upgrade without losing anything. apt-get will stick you with one version and you won't be able to upgrade it until the Ubuntu developers get around to adding the new version which takes quite some time.
Why is there no simpler way to set Ruby i[? Why are the packages in Ubuntu no longer maintained properly? It's kind of idiotic. To be honest, it makes it harder to automate deployment on multiple machines. You can't provision like this...
Well, the issue isn't that the packages aren't maintained properly. It's that the software doesn't get upgraded to be compatible with the latest Ruby releases always. Sometimes you have code that works on specific versions of Ruby and that means you will need to install that version specifically on your server. That's why everyone recommends using a Ruby version manager of some kind like rbenv to handle this. Once you get the hang of it, it goes smoothly, but at first it can be daunting and a bit of a pain to set up.
I completed all installation successfully but am unable to access my localhost using port 3000 through my web browser. Would appreciate your help. Thanks.