我在我的 Mac OS X 10.6.8(运行 Snow Leopard)上安装了 rvm 并尝试启动我的第一个示例应用程序。在摆弄了几个小时后,我决定在这里发布这个问题,因为我真的不知道如何解决这个问题:
每当我尝试在我的应用程序文件夹中运行开发服务器时,都会收到以下错误:
/Users/santeri/RubymineProjects/sample_app/script/rails server -b 0.0.0.0 -p 3000 -e development
/Users/santeri/.rvm/gems/ruby-2.0.0-p0/gems/sqlite3-1.3.7/lib/sqlite3.rb:6:in `require': dlopen(/Users/santeri/.rvm/gems/ruby-2.0.0-p0/gems/sqlite3-1.3.7/lib/sqlite3/sqlite3_native.bundle, 9): Library not loaded: /usr/local/lib/libsqlite3.0.8.6.dylib (LoadError)
Referenced from: /Users/santeri/.rvm/gems/ruby-2.0.0-p0/gems/sqlite3-1.3.7/lib/sqlite3/sqlite3_native.bundle
Reason: no suitable image found. Did find:
/usr/local/lib/libsqlite3.0.8.6.dylib: mach-o, but wrong architecture
/usr/local/lib/libsqlite3.0.8.6.dylib: mach-o, but wrong architecture - /Users/santeri/.rvm/gems/ruby-2.0.0-p0/gems/sqlite3-1.3.7/lib/sqlite3/sqlite3_native.bundle
我的 rvm 中只安装了 1 个 ruby 版本:
/Users/santeri/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
运行'lipo -info /usr/lib/libsqlite3.dylib'返回:
fat 文件中的架构:/usr/lib/libsqlite3.dylib 是:x86_64 i386 ppc7400
感谢您的帮助或提示!