Rails - Rake 错误:库未加载 [英] Rails - Rake error: Library not loaded

查看:53
本文介绍了Rails - Rake 错误:库未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了几乎所有关于 rails 错误的帖子,以寻找我的问题的解决方案,虽然我已经解决了一些问题,但我想出了更多.我升级到 Snow Leopard 并根据 Agile Development with Rails 一书安装了 RVM 和 Rails.但是,一旦我创建了我的应用程序文件夹并执行了 RAKE,我就会收到此错误,而且我无法弄清楚如何修复它.我试过多次重新安装所有东西都无济于事.这是架构问题吗?还是我需要找到一个库并加载它?我该怎么做?

I have read just about every post regarding rails errors looking for the solution to my issues and while I have resolved some, I come up with more. I upgraded to Snow Leopard and installed RVM and Rails according to the Agile Development with Rails book. However once I create my app folders and do RAKE, I get this error and I just can not figure out how to fix it. I've tried re-installing everything several times to no avail. Is this an architecture problem? or do I need to find a library and load it? how do I do that?

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​​ 需要的文件或文件夹.

There was probably a change in your system. You might have moved or deleted some files or folders, which were needed by ruby.

rvm reinstall ree

或者spyle的回答基本上是正确的,但是ewww macports.去家酿吧!

Or spyle's answer is basically correct, but ewww macports. go go Homebrew!

这篇关于Rails - Rake 错误:库未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆