Rails – Rake错误:库未加载

我已经阅读了关于rails错误的每一篇文章都在寻找我的问题的解决方案,而我已经解决了一些,我想出更多。 我根据Agile Development with Rails一书升级到Snow Leopard并安装了RVM和Rails。 然而,一旦我创建我的应用程序文件夹并执行RAKE,我得到此错误,我只是无法弄清楚如何解决它。 我已经尝试过几次重新安装所有东西都无济于事。 这是架构问题吗? 或者我是否需要找到一个库并加载它? 我怎么做?

rake aborted! dlopen(/opt/local/lib/ruby/1.8/i686-darwin9/digest/sha1.bundle, 9): Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib Referenced from: /opt/local/lib/ruby/1.8/i686-darwin9/digest/sha1.bundle Reason: no suitable image found. Did find: /opt/local/lib/libcrypto.1.0.0.dylib: mach-o, but wrong architecture - /opt/local/lib/ruby/1.8/i686-darwin9/digest/sha1.bundle (See full trace by running task with --trace) 

你的系统可能有变化。 您可能已经移动或删除了ruby所需的某些文件或文件夹。

 rvm reinstall ree 

或者斯皮尔的答案基本上是正确的,但是ewww macports。 回家吧!

我有ruby 1.8.7 / passenger / apache堆栈的这个问题。 重新安装ruby(通过macports)并针对openssl库重建它,为我修复了这个问题。

Interesting Posts