Skip to content

Setting up a new development environment on OSX

I recently set up a new MacBook Pro for development. Here’s what I did, mostly as notes to myself for next time:

Basic rails environment

I mostly followed Robby Russell’s guide, here.

That got xcode, macports, ruby and rails, mongrel and postgres installed.

MySql

Most of my projects use MySql instead of postgres. I installed Mysql from the binary on the mysql site, not through macports. The download link is here. For a new MacBook, I used the x86-64 package. Also install the startup item, which is included in the package.

Installing the mysql gem requires some path trickery, since I didn’t install the macports version. I followed these instructions, which worked well:

 sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

To get the databases copied over with minimal effort, I just copied the /usr/local/mysql/data dir from my old machine to the new one.

Git

Most of my projects are now on git. Following the githubs, I installed it via macports. I included subversion, for those that still use it:

  sudo port install git-core +svn

Also gitx, which I’ve come to like; installs with a dmg.

Gems

At this point, it’s time to get the gem dependencies for projects installed. You should be able to clone a project and do

sudo rake gems:install
sudo rake gems:install RAILS_ENV=test

to get them installed.

Nokogiri

Having installed gems using the above, the groovy nokogiri started complaining that it was built against 1.7.3 but was loaded with 1.7.6, or something. This post, which is the best-titled post ever, fixed it.

Computer name

Not strictly related to development, but a question that came up for me setting up the new machine: How do I give it a good name?

Other tools

After all of the above, you should have a working environment for coding and running rails apps. There are several other tools I’ve come to rely on; here’s a few:

  • Textmate
  • The adobe suite, especially photoshop
  • xScope, a fantastic layout toolbox
  • SequelPro, a mysql client. This is handy for accessing databases via ssh tunnels.
  • growl
  • Firefox, with pixel perfect, web developer toolbar, and firebug, found here
  • OmniWeb, OmniFocus, and OmniOutliner Pro, from the omni group
  • For irc, colloquy or lime chat
  • I use DevonThink Pro Office for a kind of brian trust, but not as deeply as I might;
  • For time tracking and invoices, Billings
  • Some kind of virtualization, for testing in windows and IE. I’ve been using parallels, but am trying VMWare Fusion. I’ve also heard good things about Sun’s VirtualBox.
  • Pathfinder for finder goodness
  • I’m using Jolly’s Fast VNC for accessing my old machine remotely, via ssh
  • And, stepping out of my dev hat, Movie Magic Screenwriter, iWork, and the fantastic Scrivener

2 Comments

  1. It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I desire to suggest you some interesting things or advice. Perhaps you can write next articles referring to this article. I wish to read more things about it!

    michael kors purses outlet

    Tuesday, April 1, 2014 at 1:32 am | Permalink
  2. Heya are using WordPress for your blog platform? I’m new to the blog world but I’m trying to get started and create my own. Do you need any html coding knowledge to make yoyr own blog? Any help would be greatly appreciated!

    Tuesday, August 19, 2014 at 2:11 am | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*