Live data from Hacker News

Get Ruby and Rails running on Ubuntu with one command

thechangelog.com

41–50 of 54 posts

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

#41
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 ;)

And if you could elaborate on those "dozens of problems" then we would be most accepting. Broad, overarching statements aren't beginner friendly.

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

#43

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 L…

A few questions:

-Why Ruby 1.8.7 and not 1.9.2?

-I've installed 1.8.7, 1.9.2 & 1.9.2-head via RVM without having libyaml-dev or libffi-dev installed (I see they're listed in `rvm notes`). Any idea what's up here?

Thanks!

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

#45
post #25

Nice! It'd be nicer if it used RVM, though. Might try rolling my own. If anyone else wants to try, or is otherwise interested, I wrote a step-by-step guide to getting Rails on Ubuntu with RVM: http://news.ycombinator.com/item?id=2113525

It offers the choice now of build from source or RVM

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

#46
post #13
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

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/

I have updated the script to ask you if you want to build Ruby from source or install RVM (Wayne from RVM pointed me in the right direction)

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

#47

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 have updated the script to ask you if you want to build Ruby from source or install RVM (Wayne from RVM pointed me in the right direction)

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

#48

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!

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

I have updated the script to ask you if you want to build Ruby from source or install RVM (Wayne from RVM pointed me in the right direction)

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

#49
post #43

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 L…

A few questions: -Why Ruby 1.8.7 and not 1.9.2? -I've installed 1.8.7, 1.9.2 & 1.9.2-head via RVM without having libyaml-dev or libffi-dev installed (I see they're listed in `rvm notes`). Any idea what's up here? Thanks!

Read the script, it's adjustable. Download, change your version and run. They are listed as they help 'cover all bases' as they are used by some gems that people might need.

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

#50
post #3

Couldn't you just do: wget https://github.com/joshfng/railsready/raw/master/railsready.... && bash ./railsready.sh Besides the "1" command is really 4. If you are setting up enough VM's that you need this you should have something like puppet installed and don't need this. If you are setting up one machine then do it by hand. Know the tools you have installed and keep track of them it will make deployment easier.

Or:

  wget -qO- https://github.com/joshfng/railsready/raw/master/railsready.sh | /bin/bash
Post reply on HN