Skip to content

Instantly share code, notes, and snippets.

@Alfreddd
Created October 5, 2012 22:48
Show Gist options
  • Save Alfreddd/3842907 to your computer and use it in GitHub Desktop.
Save Alfreddd/3842907 to your computer and use it in GitHub Desktop.
mysql2 ruby193 osx 32bit
1. first check the kernel architecture using
uname-m
2. download and install the proper mysql server
3. if u got this error when running server
dyld: lazy symbol binding failed: Symbol not found:
_mysql_get_client_info
then u have to update mysql2 gem using
sudo gem install mysql2 --
--with-mysql-config=/usr/local/mysql-5.5.10-osx10.6-x86_64/bin/mysql_config
4. if u got this error when running the server
Library not loaded: libmysqlclient.18.dylib (LoadError)
then use this command
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment