在fink(vs self-made)mySQL安装上安装mySQL gem

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在fink(vs self-made)mySQL安装上安装mySQL gem相关的知识,希望对你有一定的参考价值。

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
  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

以上是关于在fink(vs self-made)mySQL安装上安装mySQL gem的主要内容,如果未能解决你的问题,请参考以下文章

使用 fink 从网站安装

Fink 和 Homebrew - 他们可以在 mac osx 上一起生活吗?

如何使用 Fink 在 Mac 上安装 GNU Octave?

如何解决 Homebrew 和 MacPorts 或 Fink 之间的冲突?

忽略 Fink 的 texlive 支持现代发行版

如何在 macOS 10.14.4 Mojave 上使用 fink