雪豹,sqlite3-ruby [英] Snow Leopard, sqlite3-ruby
问题描述
所以我遵循了这个主题
没有成功.我正在运行 os x 10.6、rails 2.3.3、ruby 1.9.1,但当我尝试访问我的 rails 应用程序的首页时仍然收到此错误:
without success. I'm running os x 10.6, rails 2.3.3, ruby 1.9.1 and still getting this error when I try accessing the front page of my rails app:
未初始化的常量 SQLite3::Driver::Native::Driver::API
uninitialized constant SQLite3::Driver::Native::Driver::API
我在谷歌上搜索了雪豹、rails、sqlite3 的所有可能组合,但没有任何运气.希望有人能帮忙.谢谢!
I've googled every possible combination of snow leopard, rails, sqlite3 without any luck. Hoping someone can help. Thanks!
推荐答案
我最终通过使用链接的适当 sqlite3 库重新编译 ruby 1.9.1 解决了这个问题.所以就我而言,我需要创建此链接:
I finally solved this by recompiling ruby 1.9.1 with the appropriate sqlite3 libraries linked. So in my case I needed to create this link:
sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libsqlite3.0.dylib /usr/local/lib/libsqlite3.dylib
这篇关于雪豹,sqlite3-ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!