Posted By

iblis on 07/09/08


mysql ruby osx Gem fink

Versions (?)

Install mySQL gem on a fink (vs self made) mySQL installation

 / Published in: Bash

When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified at compilation time) is in your path.

  1. # in case mysql was installed through fink, one should
  3. sudo gem install mysql -- \
  4. --with-mysql-dir=/sw/bin/mysql \
  5. --with-mysql-include=/sw/include/mysql \
  6. --with-mysql-lib=/sw/lib/mysql \
  7. --with-mysql-config=/sw/bin/mysql_config
  9. # if installed from source with make install :
  11. sudo gem install mysql --
  12. --with-mysql-dir=/usr/local/mysql
  13. --with-mysql-include=/usr/local/mysql/include/
  14. --with-mysql-lib=/usr/local/mysql/lib/
  15. --with-mysql-config=/usr/local/mysql/bin/mysql_config

Report this snippet  

You need to login to post a comment.