-
Notifications
You must be signed in to change notification settings - Fork 14
Notes from a Mac OS X installation #19
Description
I have Mesabe running under OS X 10.6.4 (Snow Leopard) and had to make some changes to the procedure in the Mesabe DIY wiki. Other Mac OS installers may possibly benefit from my experiences.
As I was not familiar with UNIX I got a lot of general help from the tutorials at OSXFAQ http://osxfaq.com/Tutorials/LearningCenter/
The following comments relate to the different sections within Mesabe DIY
Get the Source
OS X users should type
$ brew install git
MySQL
For my second attempt to install this software I downloaded the 64 bit DMG Archive from http://www.mysql.com/downloads/mysql/
The procedure was so straightforward that I wished I had chosen this route from the start.
I added /usr/local/mysql-5.1.52-osx10.6-x86_64/bin to the PATH environment variable
$ export PATH=$PATH:/usr/local/mysql-5.1.52-osx10.6-x86_64/bin
To check that this has worked type
echo $PATH
(It is possible to add the export command to a .profile file which Terminal will execute each time it starts up.)
BRCM
Java, Maven and Rake were already installed.
After following the BRCM installation instructions I typed
$ ~/wesabe/brcm-accounts-api
$ rake test
I did see a bunch of passing tests, with 1 failure.
Running com.wesabe.api.accounts.resources.tests.AccountResourceTest
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.07 sec <<< FAILURE!
Hopefully this does not matter.
PFC
As instructed type
$ brew install oniguruma
I already had Ruby 1.8.7 but the RubyGems version was 1.3.5. To check version numbers type
$ gem env
To upgrade RubyGems type
$ sudo gem update --system
We are back on track and can type
$ gem install bundler --pre
A blog explaining how to install the mysql gem is now essential reading http://www.tatvartha.com/2010/10/installing-mysql-gem-with-bundler-on-snow-leopard/
The location used for MySQL in my installation meant that I had to change the command to
$ bundle config build.mysql --with-mysql-config=/usr/local/mysql-5.1.52-osx10.6-x86_64/bin/mysql_config
To check the path to mysql_config the following should work
$ find /usr -iname "*mysql_config"
For the rest of this section follow the standard instructions.
Upload Support
No problems. Python already installed.
Currency Support
My accounts are all in pounds sterling but I guessed I could ignore this section.
Get This Thing Online Already
I found it easier to follow the instructions in the Pre-built Virtual Machine section (Option 2).
To open a second terminal window just ctrl-click on the Terminal icon which you will surely have installed in the dock by now.
As a simple way to upload my snapshot I copied the file I had downloaded from Wesabe into the ~/wesabe/pfc directory and then ~/path/to/snapshot.zip was just the filename.
While carrying out filer operations I created a tmp directory inside ~/wesabe/pfc/private/wesabe/uploads to avoid the bug described in issue 11 in PFC issues.