Live data from Hacker News

Installing Rails on a Mac Shouldn't Be As Hard As It Is

cabforward.com

21–30 of 100 posts

Re: Installing Rails on a Mac Shouldn't Be As Hard As It Is

#21
post #2

Your first mistake is installing Rails. You're second mistake is attempting to do so on your development machine and not in a jail or vm.

Not sure why you'd recommend installing Rails in a VM? It's a framework, not an environment.

You want development to match production as closely as possible, otherwise you're setting yourself up for nasty surprises down the line.

Re: Installing Rails on a Mac Shouldn't Be As Hard As It Is

#23

$ /usr/bin/ruby -e "$(/usr/bin/curl -fksSL http://bit.ly/HyK0NG) That looks terrifying.

Too often you see advice like that. And this is supposed to be from technical users who know about security. And we wonder why mundanes click on spyware scams…

Re: Installing Rails on a Mac Shouldn't Be As Hard As It Is

#24
post #19

I think this is partly why so many of my Mac-using colleagues have a Linux VM for doing development; every programming-type task I tried to do on my Mac was an exercise in frustration. At least there's finally a set of command-line compilers you can get without having to download XCode (it's free, once you pay $99 to become a developer! I thought I already was a developer, which is why I want compilers...) Personally…

XCode is free without paying $99 for anything, and I don't remember a time when gcc and friends were not available for OS X.

Re: Installing Rails on a Mac Shouldn't Be As Hard As It Is

#25
post #2

Your first mistake is installing Rails. You're second mistake is attempting to do so on your development machine and not in a jail or vm.

DHH, the creator of Rails, and the team at 37 Signals (the company behind it), install Rails on their development machines, (with Pow: http://pow.cx/ ).

Re: Installing Rails on a Mac Shouldn't Be As Hard As It Is

#26
Doing ruby dev in a VM is pretty nice for some things, and terrible for others. In general, I think VM's are great if you have a team and need to get environments setup that work on any machine (windows/mac/linux). Where it falls flat is in some weird places like if you want to use Guard for automatic file change actions. Otherwise, it's pretty awesome.

If I'm working on my own projects tho, running ruby local on OS X is the way to go. Much less overhead.

Re: Installing Rails on a Mac Shouldn't Be As Hard As It Is

#27
post #9

Earlier quoted context omitted.

If you want it to replace php (or anything), it has to be as accessible as php for the same developer. Until then, all the conversation about standards, best practices, and tutorials are far less accessible.

The purpose of Rails isn't to replace PHP.

It might not be, but our Rails heads sure do like talking about PHP a lot.

If a technology is truly supposed to be accessible it needs to actually, be accessible instead of carrying an air of superiority, otherwise software continues to suffer.

Re: Installing Rails on a Mac Shouldn't Be As Hard As It Is

#29
post #22

user@brand-new-mac $ which rails /usr/bin/rails What? OSX has shipped with (some version of) Rails since Leopard. You don't need to install a compiler or compile anything to use Rails on a Mac. It comes with sqlite3, too.

    $ /usr/bin/rails
    Rails is not currently installed on this system. To get the latest version, simply type:
    
        $ sudo gem install rails
    
    You can then rerun your "rails" command.
> The basic database program that Rails uses is SQLLite3, and you will need to install this to work with it.

yet Tiger had sqlite3 already.

What's more, Ruby is installed already. One can 'gem install rails' and have the latest version landing in /Library/Ruby/Gems

Re: Installing Rails on a Mac Shouldn't Be As Hard As It Is

#30
I'm coming from a Windows world, where installing Rails and all the tools is as easy as hitting up RailsInstaller.org, downloading an .exe file, and having my environment set up in a few minutes.

Uh, what? http://railsinstaller.org/ has a Mac version too!

It's right on their home page (if you're browsing from a Mac; it shows you the Windows version if you're browsing from Windows...)

https://github.com/downloads/railsinstaller/railsinstaller-n...

Post reply on HN