Categories
Mac OSX Programming

Installing DBD::mysql on Mavericks

3 years ago, I posted about getting DBD::mysql to build on OSX 10.6 – it seems the same thing works on Mavericks (10.9) as well!

#   Failed test 'use DBD::mysql;'
#   at t/00base.t line 18.
#     Tried to use 'DBD::mysql'.
#     Error:  Can't load '/Users/simon/.cpan/build/DBD-mysql-4.027-wbgMWL/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/simon/.cpan/build/DBD-mysql-4.027-wbgMWL/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Library not loaded: libmysqlclient.18.dylib
#   Referenced from: /Users/simon/.cpan/build/DBD-mysql-4.027-wbgMWL/blib/arch/auto/DBD/mysql/mysql.bundle
#   Reason: image not found at /System/Library/Perl/5.16/darwin-thread-multi-2level/DynaLoader.pm line 194.
#  at (eval 7) line 2.

The version of MySQL has changed slightly (and hence the path used) but everything else is the same.

$ sudo install_name_tool -id /usr/local/mysql-5.5.30-osx10.6-x86_64/lib/libmysqlclient.18.dylib /usr/local/mysql-5.5.30-osx10.6-x86_64/lib/libmysqlclient.18.dylib

$ otool -D `mdfind libmysqlclient.18.dylib`
Categories
Mac OSX

Leopard + Firewall + Skype = broken

It seems that when the firewall option is enabled (apparently it’s disabled by default) you can only run Skype once without reinstalling it. The second time you try, it bounces a couple of times and stops.
A Skype forum thread about it can be found at http://forum.skype.com/index.php?showtopic=100329

Categories
Apple Mac OSX

synergy2 on Leopard

Having upgraded to Leopard, I found that synergy2 wasn’t working. It’s an application that lets you control multiple machines from a single keyboard and mouse and I use it quite a lot at work.
More information about Synergy2 can be found at http://synergy2.sourceforge.net/
After the upgrade to Leopard (and even after a fresh reinstall) it would start up and then a crash would be logged in /var/log/system.log; searching in Google resulted in a hit that mentions using launchd to start it up and having set it up like that I found that it actually works fine!
The forum post is at http://sourceforge.net/forum/forum.php?thread_id=1848423&forum_id=199580

Categories
Mac OSX

Leopard (Mac OSX 10.5)

Like most Apple users we pre-ordered a copy of Leopard and took delivery of it on the 26th October. I upgraded Tiger to Leopard that evening and despite the initial horror of having some fairly big changes to the UI, I’ve decided it’s not so bad.
Something I didn’t like was the new style dock – it has a shiny effect on it (see image below) which makes it harder to see what’s running. I figured that it wasn’t too much of a problem since I have the dock set to auto-hide and if I need to see what’s running, I can always use Cmd-Tab.

Categories
Linux Mac OSX

Using vmware server console on Mac OSX

Just recently I’ve been experimenting with VMWare Server on a Linux host and although it’s easy enough to use the console to manage it from a Windows PC, I normally only have my aging PowerBook to hand.
Since there’s no proper OSX console application for VMWare (why not!?), I needed to figure out a different way to manage the virtual servers.
Two options immediately spring to mind – (1) Fire up Virtual PC, Start Windows, Use the Windows console, or (2) Find a way to use the Linux VMWare console.

Categories
Mac OSX

Safari and multiple tabs

I was reading Mac Format this morning and read about an application called Taboo that stops you from accidentally closing Safari windows with multiple tabs open, or even quitting Safari when there are multiple tabs open in a window.