Displaying articles with tag

Installing mysql and the mysql gem on Mac OS X Leopard

Posted by joakimk, Fri May 15 10:52:00 UTC 2009

I had some trouble getting the mysql gem to work in Leopard on my new macbook and it turned out that I had installed the 64bit version of mysql and even though the mysql gem compiles against that, it does not work.

To begin with I got alerted to this by the warning message:

DEPRECATION WARNING: You’re using the Ruby-based MySQL library that ships with Rails…

The kinds of errors you might see when using the 64 bit version of mysql is:

LoadError: Failed to lookup Init function /usr/lib/ruby-ee/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle

How to install a version that works:

1) Get the 32 bit x86 version from http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg and install.

3) Make sure you got it installed propertly (open a terminal and type mysql -v).

4)

env ARCHFLAGS="-arch i386" sudo gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config

5) Done :)

0 comments | Filed Under: | Tags:

Installing GitNub

Posted by joakimk, Fri Aug 01 10:06:00 UTC 2008

A script to install the GitNub utility (MacOSX Leopard).

Update: Had some problems when I reinstalled this version but it seems that they have fixed it in the latest version.

wget http://s3.amazonaws.com/caged/releases/GitNub_0.9.0.zip
unzip -o GitNub_0.9.0.zip
cd GitNub
sudo cp -r GitNub.app /Applications
sudo cp nub /usr/local/bin
cd ..
rm -rf GitNub GitNub_0.9.0.zip
sudo /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem install open4

Added the special install line for open4 because of issues others had with it (10810 errors)...

To open a repo, just type ‘nub’ in a git repo.

0 comments | Filed Under: | Tags: