Live data from Hacker News

Get Ruby and Rails running on Ubuntu with one command

thechangelog.com

31–40 of 54 posts

Re: Get Ruby and Rails running on Ubuntu with one command

#31

This strikes me as no easier than rvm, but less clean (installations go to /usr/local, no easy way to switch between various ruby interpreters or gemsets, harder to uninstall, etc.). Why not just do this? 1) Update whatever requirements you need via APT tool of choice. 2) Install rvm 3) Install ruby-1.9 using rvm 4) gem install rails 5) Write great rails app.

I posted the following guide the other day:

http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you

Sadly it languished with no upvotes. :( I found it extremely useful, however!

Re: Get Ruby and Rails running on Ubuntu with one command

#32

This strikes me as no easier than rvm, but less clean (installations go to /usr/local, no easy way to switch between various ruby interpreters or gemsets, harder to uninstall, etc.). Why not just do this? 1) Update whatever requirements you need via APT tool of choice. 2) Install rvm 3) Install ruby-1.9 using rvm 4) gem install rails 5) Write great rails app.

Is rvm commonly used for production or just development environments? I can see where having a script to get your production (or testing) environment up and running with minimal user work would be useful, but if this is meant for just development I agree with your point.

Re: Get Ruby and Rails running on Ubuntu with one command

#33
post #29

Earlier quoted context omitted.

Hmm, maybe putting together a oneliner for that would help a lot of people. Added to my todo list.

I don't understand the point of using a one-liner vs just doing it in a process and getting an understanding of whats going on at each step.

I totally agree that you should become fully comfortable with setting up a box manually. But when you perform the same setup over and over and have the process memorized as I do then writing a little shell script to get the job done never hurts.

Re: Get Ruby and Rails running on Ubuntu with one command

#34

This strikes me as no easier than rvm, but less clean (installations go to /usr/local, no easy way to switch between various ruby interpreters or gemsets, harder to uninstall, etc.). Why not just do this? 1) Update whatever requirements you need via APT tool of choice. 2) Install rvm 3) Install ruby-1.9 using rvm 4) gem install rails 5) Write great rails app.

I posted the following guide the other day: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you Sadly it languished with no upvotes. :( I found it extremely useful, however!

http://news.ycombinator.com/item?id=2039029

Re: Get Ruby and Rails running on Ubuntu with one command

#35
post #32

This strikes me as no easier than rvm, but less clean (installations go to /usr/local, no easy way to switch between various ruby interpreters or gemsets, harder to uninstall, etc.). Why not just do this? 1) Update whatever requirements you need via APT tool of choice. 2) Install rvm 3) Install ruby-1.9 using rvm 4) gem install rails 5) Write great rails app.

Is rvm commonly used for production or just development environments? I can see where having a script to get your production (or testing) environment up and running with minimal user work would be useful, but if this is meant for just development I agree with your point.

I use RVM for both development and production, and I've written scripts that use it to set up both my development and production machines. It's nice to be able to reformat my workstation (for new Ubuntu releases, or new hardware) and get back to business quickly. As far as production, I'm not really sure RVM is that much of a win, assuming you're compiling the latest Ruby anyway and have only one app on the server. I use it since I've yet to learn proper packaging and therefore the only (easy) way to uninstall a Ruby is via RVM (I know about checkinstall, but IME it's buggy as hell).

Re: Get Ruby and Rails running on Ubuntu with one command

#36
post #34

Earlier quoted context omitted.

I posted the following guide the other day: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you Sadly it languished with no upvotes. :( I found it extremely useful, however!

http://news.ycombinator.com/item?id=2039029

Ahh.. Dupe, then. Thanks!

Re: Get Ruby and Rails running on Ubuntu with one command

#37
post #33

Earlier quoted context omitted.

I don't understand the point of using a one-liner vs just doing it in a process and getting an understanding of whats going on at each step.

I totally agree that you should become fully comfortable with setting up a box manually. But when you perform the same setup over and over and have the process memorized as I do then writing a little shell script to get the job done never hurts.

I agree, and perhaps I should have added that into my comment.

For a newbie, have them walk through it, but for the repeated process, then automate it.

Re: Get Ruby and Rails running on Ubuntu with one command

#38
Here is a script that I wrote and have been using, should work on most Linux's and OSX to bootstrap a Rails Development environment. Also ensures that git is installed. You can run it with one command (after reading it's contents of course) as follows:

curl -O https://github.com/wayneeseguin/rvm/blob/master/contrib/boot... && source bootstrap_rails_environment

This automates installing the prerequisites across many Linux package management types and then bootstraps a Rails development environment using RVM.

Re: Get Ruby and Rails running on Ubuntu with one command

#39

This strikes me as no easier than rvm, but less clean (installations go to /usr/local, no easy way to switch between various ruby interpreters or gemsets, harder to uninstall, etc.). Why not just do this? 1) Update whatever requirements you need via APT tool of choice. 2) Install rvm 3) Install ruby-1.9 using rvm 4) gem install rails 5) Write great rails app.

I posted the following guide the other day: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you Sadly it languished with no upvotes. :( I found it extremely useful, however!

I'm glad you found it useful, but yes it was already posted back in December.

Re: Get Ruby and Rails running on Ubuntu with one command

#40

This strikes me as no easier than rvm, but less clean (installations go to /usr/local, no easy way to switch between various ruby interpreters or gemsets, harder to uninstall, etc.). Why not just do this? 1) Update whatever requirements you need via APT tool of choice. 2) Install rvm 3) Install ruby-1.9 using rvm 4) gem install rails 5) Write great rails app.

It's not too often that you'll have a server that runs two applications. Sure, if that were the case then you would be using RVM in which case I would recommend following the guide already linked.

But if you've got one application running one version of Ruby, then this is definitely a perfect way to go.

Post reply on HN