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


/ Published in: Bash
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. # in case mysql was installed through fink, one should
  2.  
  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
  8.  
  9. # if installed from source with make install :
  10.  
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.