Last Updated: October 27, 2020
·
967
· pluckee

Installing Rails on OSX

Im not sure if i'm the only one that has trouble installing rails and rails dependencies on osx but it sucks, because theres no 'real' way to determine the source of the problem, so i went to my favourite little debugger/making-life-easier-for-lazy-ass-programmers-like-myself tool the terminal

and i wrote a script that downloads and installs rails from the source by running bundle install on the gemfile from within the directory, and then i went above and beyond and got carried away with coding and decided it needed to be fancier so i made the script a one line installation the script is on github Here also you can try out the script by running this little one-liner in the terminal

curl -sS http://cdn.joshburns.cu.cc/get-ror-osx.sh | bash

6 Responses
Add your response

Well I'm not a ruby dev but I'm using rbenv and ruby-build installed with brew.
After that it's just rbenv install 1.9.3-p327.

over 1 year ago ·

yeah i see what you've done, problem is installing Rails, not ruby its self, it fails ALOT!

over 1 year ago ·

What's wrong with using RVM? It's got the added benefit of enabling you to work with multiple environments. It installs everything into ~/.rvm so you don't need to run sudo whenever you need to install a gem either. Bottom line is, it's great :)

www.rvm.io

over 1 year ago ·

This seems like a lot of work to just install Rails. Why not just type "gem install rails"? This way you don't have to do any funky downloading of scripts and it places it in a "site" Gem directory. I use RVM and can have multiple different versions of Rails installed simultaneously and I can choose which one I want on the fly.

over 1 year ago ·

These kind of scripts are good for a fresh install into a server.
In development, you have both rvm and rbenv as a solution (after installing some OS dependencies first)

over 1 year ago ·

It is alot of work but sometimes i find an error and this is the solution

over 1 year ago ·