Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup Ubuntu 14.04 Trusty Tahr Discussion

Chris Oliver asked in General
AndroidWolf59 AndroidWolf59

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 !

Reply
enriquemorenotent enriquemorenotent

The guide recommends 2.1.3, but the instructions install 2.1.2 ;)

Reply

Fixing. :)

Reply

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.

Reply
Kushagra Sharma Kushagra Sharma

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...

Reply
Subramanyam Molleti Subramanyam Molleti

Thanks for the Guide Chris :)

Reply

Should we use the NodeSource distributions repo for nodejs instead of Chris Lea's repo? https://github.com/nodesour...

Reply

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.

Reply

Thanks dude.

Reply

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?

Reply
Alexandru Ghita Alexandru Ghita

sudo apt-get install libffi-dev is also needed on ubuntu 14 for ruby 2.2.1
https://github.com/sstephen...

Reply

Thanks! I've added that to the instructions. :)

Reply
Dan Dascalescu Dan Dascalescu

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?

Reply

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.

Reply

when I goto local host I receive

ActiveRecord::NoDatabaseError

any ideas...

Reply
Vincent De Guzman Vincent De Guzman

Hello, I got dependency error with libcurl4-openssl-dev

Reply
Ahmed Sliman Ahmed Sliman

Thanks so much

Reply
Paulo Souza Paulo Souza

Nice tutorial, thanks!

Reply

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...

Reply

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.

Reply

Excellent guide!This is what i want

Reply
Josemar Furegatti de Abreu Sil Josemar Furegatti de Abreu Sil

Excellent work! Helped me a lot. Thanks

Reply

I completed all installation successfully but am unable to access my localhost using port 3000 through my web browser. Would appreciate your help. Thanks.

Reply

No need to install ruby-dev environment or what? Isn't that necessary?

Reply

Nope, This should be all you need.

Reply

Love it! love it! love it! Thanks man....Inspired.

Reply

Finally, a straight and simple installation guide, Thanks a ton.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.