Live data from Hacker News

Get Ruby and Rails running on Ubuntu with one command

thechangelog.com

11–20 of 54 posts

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

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

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

#13
post #9
post #5

That is many commands, but it's only one line. And there's something in the inner-sysadmin in me that sees "curl http://example.com/foo.sh && ./foo.sh" and shudders. That sounds like a receipe for disaster.

It's a bitch rubygems are so fucked up on Debian/Ubuntu and that Ruby 1.9.2 is still not in Ubuntu's repo. Otherwise that line would be: sudo aptitude install ruby1.9.2-full && sudo gem install rails

That's what rvm is for. Leave the system Ruby alone and install your own, even multiple versions. I have ruby 1.8.7 with rails 2.3.5 and 1.9.2 with 3.0.3, easily switch between them for testing.

http://rvm.beginrescueend.com/

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

#14
post #9
post #5

That is many commands, but it's only one line. And there's something in the inner-sysadmin in me that sees "curl http://example.com/foo.sh && ./foo.sh" and shudders. That sounds like a receipe for disaster.

It's a bitch rubygems are so fucked up on Debian/Ubuntu and that Ruby 1.9.2 is still not in Ubuntu's repo. Otherwise that line would be: sudo aptitude install ruby1.9.2-full && sudo gem install rails

You're an idiot if you're not using rvm by now.

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

#15
post #6
post #5

That is many commands, but it's only one line. And there's something in the inner-sysadmin in me that sees "curl http://example.com/foo.sh && ./foo.sh" and shudders. That sounds like a receipe for disaster.

Nothing wrong with reading the script before running it. :)

Oh I know. However we both know the majority of people who use this one-liner won't read it.

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

#18
post #14
post #9

Earlier quoted context omitted.

It's a bitch rubygems are so fucked up on Debian/Ubuntu and that Ruby 1.9.2 is still not in Ubuntu's repo. Otherwise that line would be: sudo aptitude install ruby1.9.2-full && sudo gem install rails

You're an idiot if you're not using rvm by now.

RVM is not beginner friendly because it has dependencies, it compiles stuff on your machine and there are dozens of problems waiting to happen because of that.

If wanting an easier way to install Rails for beginners makes me an idiot, then I'm proud of it ;)

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

#19
post #15
post #6

Earlier quoted context omitted.

Nothing wrong with reading the script before running it. :)

Oh I know. However we both know the majority of people who use this one-liner won't read it.

It's no different that installing RVM bash http://rvm.beginrescueend.com/releases/rvm-install-head ) or NPM curl http://npmjs.org/install.sh | sh. If you run something without knowing what it does first and brick your system there's no one to blame but yourself :)

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

#20
post #14

Earlier quoted context omitted.

You're an idiot if you're not using rvm by now.

RVM is not beginner friendly because it has dependencies, it compiles stuff on your machine and there are dozens of problems waiting to happen because of that. If wanting an easier way to install Rails for beginners makes me an idiot, then I'm proud of it ;)

I wouldn't say that rvm is not beginner friendly, but I grant that it has other requirements and compilation can break down due to specific library issues on different systems. To my mind, a better solution, however, would be a compromise: (1) write a script to automate the installation of all the prerequisites (packages and specific library versions) in one step using APT, but then (2) recommend using rvm after that.

Note that this solution also compiles stuff on your machine, and in this case it uses system-wide installation locations. One advantage of rvm is that everything is done as a regular user and sandboxed in $HOME/.rvm. Easy to find and remove, if anything goes wrong or you change your mind later.

(Edited because I misread the command line.)

Post reply on HN