无法加载此类文件 -- openssl (LoadError) [英] cannot load such file -- openssl (LoadError)

查看:116
本文介绍了无法加载此类文件 -- openssl (LoadError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 rvm 中的 OS X 中,如何检查 openssl 是否配置正确?我得到 cannot load such file -- openssl (LoadError)我已经尝试了 Rails 3 中的所有内容 - 没有要加载的文件 -openssl 没有成功.

In OS X in rvm how do I check if openssl is configured properly? I get the cannot load such file -- openssl (LoadError) And I have tried everything in Rails 3 - no such file to load -- openssl with no success.

推荐答案

检查安装了哪些 rubies:

Check what rubies are installed:

rvm list

然后确保使用已安装的红宝石之一:

Then make sure to use one of the installed rubies:

rvm use 1.9.3-p327

并测试 openssl 是否可用:

ruby -ropenssl -e "puts :OK"

如果启用了openssl,它会打印OK,否则你会得到异常

It will print OK if openssl is enabled, otherwise you will get exception

新版 rvm 改进了自动化支持:

new version of rvm has improved automation support:

rvm get stable
rvm autolibs enable
rvm reinstall all --force

旧:

运行:

rvm requirements run force
rvm pkg remove

关注:

rvm reinstall all --force

此说明不是特定于 OSX 的,它适用于所有平台,尽管在 OSX 上它最适合与 HomeBrew 一起使用,当它没有安装时,只会显示所需软件的列表,您需要手动安装.

This instruction is not OSX specific, it will work on all platforms, although on OSX it will work best with HomeBrew, when it's not installed only list of required software will be shown and you need to install it manually.

这篇关于无法加载此类文件 -- openssl (LoadError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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