MAMP mysql 安装目录

发布于 2024-12-23 09:12:15 字数 528 浏览 8 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑梦风尘 2024-12-30 09:12:15

我遇到了同样的问题,并使用 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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文