Selenium-RC and Snow Leopard
Selenium-RC was having issues on Snow Leopard:
dyld: Library not loaded: /usr/lib/libsqlite3.dylib Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0
Web searches produced a lot of information including some workarounds that didn’t. Finally I read that Selenium-RC 1.x has some hardcoded paths in it that mean it won’t work with Snow Leopard, and you need to get the Selenium-RC 2.x jar (alpha at this time). The easiest way to do this is to install the selenium-rc gem that Pivotal packaged.
[Update]
More recently, have been having issues running Cucumber/Webrat/Selenium on new MacOS systems. It turns out that Webrat contains an out-of-date version of the selenium server jar file. If you are using Webrat, you need to copy the good selenium-server.jar from the selenium-rc package over the version contained in the Webrat gem. Something like:
sudo cp /Library/Ruby/Gems/1.8/gems/selenium-rc-2.2.1/vendor/selenium-server.jar /Library/Ruby/Gems/1.8/gems/webrat-0.7.0/vendor/selenium-server.jar

Same problem here but your fix didn’t work for me. The error message suggests that the libsqlite3 from my Mac OS does not work for Firefox.
Do you mind to share the MD5 of your lib (the version that worked). Mine is:
- OS version: MD5 (/usr/lib/libsqlite3.dylib) = f155b06c4405c5f48abff938de5fe7e0
- Firefox original: MD5 (/Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib) = ee4f03098203abf42aa07f7794bdc2e9
Also it would be useful to know your Selenium 2 alpha version (1 or 2), Firefox version and what exactly you discovered that was hardcoded.
Thanks!
gc
Just to inform somebody that may get here through Google like I did, I solved the problem following these instructions: http://jira.openqa.org/browse/SRC-743?focusedCommentId=18980&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_18980
Basically you have to patch Selenium Server (precisely the “server-coreless/src/main/java/org/openqa/selenium/server/browserlaunchers/SystemUtils.java” file) to don’t set DYLD_LIBRARY_PATH for Mac OS.
The patch is attached in the bug tracker: http://jira.openqa.org/browse/SRC-743
gc