MAMP mysql 安装目录
我在 MAMP 下找不到 mysql 的安装目录。我以前用过WAMP,很容易就找到了安装mysql的文件夹。 MAMP 就不那么重要了。我在互联网上也找不到这个。
我正在做的是安装 mysql2 gem 以便与 ruby on Rails 一起使用。为此,我显然需要运行此脚本:
env ARCHFLAGS="-arch x86_64" gem install mysql2 --version=0.2.6 -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config
因此我需要上述脚本中的不同文件夹位置。有人知道在哪里可以找到这些文件夹吗?
我使用 OSX Lion、Ruby 0.8.7、rails 3.0.0、Aptana Studio 3。
I can not find the install directories for mysql under MAMP. I have used WAMP before, and I easily found the folders where mysql were installed. Not so much with MAMP. I can't find this anywhere on the inter webs either.
What I am doing is installing the mysql2 gem for use with ruby on rails. To do this I apparently need to run this script:
env ARCHFLAGS="-arch x86_64" gem install mysql2 --version=0.2.6 -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config
Thus I need the different folder locations in the above script. Anyone know where to find these folders?
I use OSX Lion, Ruby 0.8.7, rails 3.0.0, Aptana Studio 3.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,并使用 Homebrew 安装 MySQL 来修复它。不过,我仍然在 WordPress 和 PHP 网站上使用 MAMP。
启动/停止有点麻烦,但无论如何我都是用 MAMP 来做的...让这个 gem 与 MAMP 正常工作太头痛了...
I had this same problem and fixed it installing MySQL using Homebrew, period. I still use MAMP for WordPress and PHP websites, though.
It's a bit of a hassle the start/stop the thing but I do that with MAMP anyway... It's too much headache to make this gem work normally with MAMP...