This also installs git, I updated the readme. It's a very simple script so if you guys see any ways to improve it let me know.
Get Ruby and Rails running on Ubuntu with one command
11–20 of 54 posts
Re: Get Ruby and Rails running on Ubuntu with one command
#12Why 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
#13That 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
Re: Get Ruby and Rails running on Ubuntu with one command
#14That 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
Re: Get Ruby and Rails running on Ubuntu with one command
#15That 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. :)
Re: Get Ruby and Rails running on Ubuntu with one command
#16Re: Get Ruby and Rails running on Ubuntu with one command
#17Wish this was around a week ago when I did this all manually.
Re: Get Ruby and Rails running on Ubuntu with one command
#18Earlier 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.
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
#19Earlier 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.
Re: Get Ruby and Rails running on Ubuntu with one command
#20Earlier 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 ;)
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.)