Topic: Complete Rails and developer tool installation for a new Mac user....
I've just made the move over to Mac, a new MacBook Pro, to be more precise. And I now love Macs.
However, there's still a few things that need configuring on the web development front before I'm infatuated with OS X, i.e. a Parallels installation of XP with access to the OS X localhost, a proper Rails installation (after InstantRails on my old XP machine, Locomotive just isn't doing it for me), and a proper local Apache + MySQL configuration, instead of standalone MAMP. It's a bit messy at the moment.
These divided, standalone, tools just don't feel right - OS X might feel nicer, but it just isn't as easier to configure, on the web development front, at least, as XP was. Excuse the newbie, but that's how it is for me. Unless Leopard can fix things, I think I prefer my machines to be a clean slate, rather than shipping with broken web tools that need extensive, step-by-step, tutorials before they're anywhere near up & running.
So, I'm trying to get my head around the confusion I'm now in. Here's a list of things as they fly off my head, so if you can order them and help me out, you're a legend, and maybe we can use this as a reference point for Mac webdev newbies until Leopard arrives;
- I came to the Rails forum to get some opinions on Locomotive. I tried going through a Facebook app on Rails tutorial, and ran into all kinds on problems when connecting to MySQL from Locomotive (I have Web sharing disabled and, as far as I'm aware, I use MAMP for my MySQL host), i.e. I don't know how to connect Locomotive to a MAMP MySQL, and I'm sure it's not the recommended setup anyway, so I'm not going to try. Do I dump Locomotive and go for the proper, Hivelogic, install of Rails? What about my MAMP installation taking charge of MySQL - will this mess things up for the proper installation of Rails?
- I've completely failed to connect to 'mysqladmin' or make any configuration of mysql via the terminal - I just don't know what directory I need to get myself into to make this work - and I think I've tried them all. I'm sure using MAMP is making this infinitely more confusing, because I'm not 100% sure that I'm using MAMP for MySQL duties. When I create a new MySQL db in phpMyAdmin in the MAMP start page, it seems to add this to the mysql folder in the MAMP application folder, so that would suggest so. MAMP is configured to use port 80 for Apache and port 3306 for MySQL, i.e. the default ports, so I don't know if this cuts out the MySQL that currently sits on OS X.
- This leads me onto a problem with configuring access a Apache+MySQL server that can host across OS X and a Parallels installation of XP. Now, I've gotten quite far with this; I can create a virtual host called 'local' for the MAMP Apache 'localhost'. I can connect to http://local/ in XP too. But, as soon as I hit a link in a CMS installed on http://local/ on OS X, the real server name is generated by the CMS (because it all runs from 'localhost' MySQL), i.e. http://localhost/wordpress, and everything breaks in XP, because 'localhost' is the reserved name on the loopback IP (127.0.0.1) on XP. This means that I need to setup another MySQL server on OS X. This tutorial explains how to do so;
But, because I'm using MAMP, and because I can't connect to mysql whatsoever from the terminal, I can't do this walkthrough, and I can't get a second MySQL server up and running.
- Whilst browsing this great forum, I came across some details of the Apple developer tools kit, and I'm not sure if I have this installed (does this come on a brand new, Santa Rosa, MacBook Pro?), and if I should attempt to install it anyyway. The same goes for the MacTools kit - apparently this can make it easier to install Rails...
- All this leads to one thing; is there a fantastic, up-to-date, easy to follow installation guide for getting Apache, MySQL, phpMyAdmin, and Rails running on a Mac piloted by a new Mac user? And, is there a guide that covers getting a Parallels XP connected to a nice clean local server, from which all sites installed on OS X are accessible on XP, with no need to faff with the URLs?
If you can help me with one of these, you're great. If you can answer all, I'll probably try to kiss you, because I've spent weeks trying to get this working.
Any help is much appreciated!