Tags
webcam vindaloo version vegan unix unicef trojan todo thinkpad textmate testing tagging syntax svn sugar subversion stubbing sphinx spam spaces solaris sitemap site sinatra shoulda sheet set security search schema_info SchemaInfo ruby rinari restaurant relationships refresh rdiff-backup ramaze railsconf08 railsconf07 rails protools production power placeboeffect pink floyd PIC perl overheat outbreak osx os x NYHS NYC nginx netbeans nested nanophotonics mysql music MPEG-4 mongrel model migration microvolunteer macbook mac logrotate logic log linux less leopard keynote JAX javascript java jacksonville imunizator highlighting hanna Handbrake haml hacks google geocoding genghistron gem gaming gabrielle's funny functional fun friends food fixes fixed firefox FF3 ferretThe Decider said over 2 years ago permalink Comment? (0)
Tagged: os x gem mysql leopard
mysql gem and Leopard not playing nicely
Just installed the latest mysql for os x Leopard. Re-installed the mysql gem using:
sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
All seemed to go well but when trying to rake test I got:
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle
Reason: image not found
Trace/BPT trap
Crap!
The gem is looking in the wrong place for the dylib!
Fix
sudo mkdir /usr/local/mysql/lib/mysql
sudo ln -s /usr/local/mysql/lib/libmysqlclient.15.dylib /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
The Breaker said over 2 years ago permalink Comment? (0)
Tagged: spaces netbeans leopard osx java fixes hacks protools
Get Spaces and Netbeans working together
So Netbeans released 6.0.1 and Apple released Leopard 10.5.2 update yesterday. Good news yes? Unfortunately Apple’s Spaces still is not going to recognize Netbeans or apparently a number of Java5 apps. After a bit of googling, it seems the fix is involved with a missing key in Netbeans’ Info.plist file that Spaces looks for in order to identify available applications. Time to change it. First thing is getting permissions changed so you can edit.
sudo chmod 774 ~/../../Applications/NetBeans/NetBeans\ 6.0.1.app/Contents/
sudo chmod 774 ~/../../Applications/NetBeans/NetBeans\ 6.0.1.app/Contents/Info.plist
Now vim (or whatever editor-name-as-action-verb you want to use) Info.plist and add these lines.
<key>CFBundleIdentifier</key> <string>org.netbeans</string>
Mac also has a Property List Editor that handles tags for you. Show package contents from the Netbeans icon and open Contents > Info.plist, select Root and click “add child.” Once you have done that, just type in the key and string in the fields provided.
Alright, now you can go to spaces and add Netbeans. Instead of the Netbeans icon you will see “Unknown Application” in the Spaces window. Fun. You can Check Info.plist again if you want; the CFBundleIconFile key is there and calling netbeans.icns for you. even better, Netbeans still only works properly part of the time. wtfdwts?
I noticed when i ran the Leopard 10.5.2 update and before i installed Netbeans 6.0.1, I saw the Netbeans icon in Spaces and things worked properly. 6.0.1 got installed… broken again. so I did the Info.plist fix again and we’re back to the “Unknown application.” I moved the whole netbeans folder out of applications and deleted its association in Spaces, then moved it back and it all worked.

Too much buck for too little bang? Maybe. For me, it was enough of an annoyance to fix. Oh and if you want to be able to reliably ⌘-tab to a java app that is in another space, it can be done as well. Open up a second window in the app and it will work for some reason that I don’t claim to understand.
My ⌘-tab solution in Netbeans is to keep the find/replace dialoog box open. Because i have that up most of the time anyway and it counts as a second window, it is a fix( read: hack ) I can live with.
Ok well hopefully Apple can get this thing solved by the time I need to upgrade my Macbook Pro to Leopard. I suppose that could be a little while since I cant upgrade that one to Leopard until ProTools LE can run on it. The HD version only supports 10.5.1 and that was just announced yesterday. This begs the question – Why am I running Digidesign products on a Mac anyway? Time to get Logic Studio I think.