如何在 Mac OS X Leopard 上为 Rails 3.X 编译 sqlite3、mysql 和 postgres 驱动程序?

发布于 2024-09-29 06:15:01 字数 242 浏览 0 评论 0原文

为什么所有sqlite3、mysql、postgres驱动程序在Rails 2.3.8时可以在Mac OS X Leopard上编译,但在Rails 3.x时无法编译?

从理论上讲,不就是一些编译标志让它们工作吗?

(它们都可以在带有最新 Xcode 的 Snow Leopard 上编译,但无法在带有稍旧的 Xcode 的 Leopard 上编译...它确实没有那么旧,不像 1998 年的编译器,只是来自 2007/2008 年。)

Is there a reason why all sqlite3, mysql, postgres driver compiles on Mac OS X Leopard when it is Rails 2.3.8, but can't compile when it is Rails 3.x?

Theoretically, isn't it just some compile flags to make them work?

(They all compile on Snow Leopard with the latest Xcode, but can't compile with Leopard with a slightly older Xcode... it really isn't that old, not like a compiler from 1998, just from 2007/2008.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

哆啦不做梦 2024-10-06 06:15:01

我正在使用 Xcode 3.1.2 和 ruby​​ 1.8.7 和 1.9.2 运行 Leopard,并且 pg 适配器没有任何问题。您只需在系统路径中包含 pg_config 应用程序即可。我已从 EnterpriseDB 站点 处的二进制包进行安装,并添加了目录 /Library/PostgreSQL/9.0/bin 到路径。

我也从未遇到过 sqlite3 驱动程序的问题。对于 MySQL 我的经验很少。

I'm running Leopard with Xcode 3.1.2 and ruby 1.8.7 and 1.9.2 and had no problems with the pg adapter. You jut have to have the pg_config application in your system PATH. I've installed from the binary package at the EnterpriseDB Site and added the directory /Library/PostgreSQL/9.0/bin to the path.

I've also never had problems with the sqlite3 driver. With MySQL I have to little experience.

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