如何在 Mac OS X Leopard 上为 Rails 3.X 编译 sqlite3、mysql 和 postgres 驱动程序?
为什么所有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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在使用 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.