没有这样的文件要加载

没有这样的文件要加载

本文介绍了没有这样的文件要加载-openssl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的rails应用程序加载到新的linux机器上,并且我已经完成了所有必需的安装,并且捆绑安装正在运行.现在我的问题是当我启动服务器(rails s)然后尝试打开W​​eb时应用程序告诉我没有要加载的文件-openssl"

Am trying to load my rails app onto a new linux machine and i have done all the installations required and the bundle install is working .Now my problem is when i start the server (rails s) and then try to open the web app its tells me " no such file to load -- openssl "

MembersController#index中的LoadError

LoadError in MembersController#index

没有要加载的文件-openssl

no such file to load -- openssl

加载以下文件时发生此错误: 的openssl我尝试卸载openssl(apt-get remove openssl),但问题仍然存在.请问有什么机构可以帮助我.谢谢

This error occurred while loading the following files: openssli tried uninstalling openssl (apt-get remove openssl) but still the problem persist.Can some body please help me with it.thanks

Am使用ruby 1.8.7和rails 3.0.0

Am using ruby 1.8.7 and rails 3.0.0

推荐答案

您是否正在使用RVM?

Are you using RVM?

如果是这样,您可能希望重新安装ruby,并以选项形式传递openssl安装的位置:

If so you may want to reinstall ruby with the location of your openssl installation passed as an option:

$ rvm remove 1.8.7
$ rvm install 1.8.7 --with-openssl-dir=/usr/local/openssl  # or wherever openssl is installed

在基于Debian的系统上,您可以通过运行以下命令找到openssl的安装位置:

On a Debian-based system, you can find where openssl is installed by running the following command:

$ dpkg -L openssl

或者,您也可以为RVM安装openssl:

Alternatively you can have RVM install openssl for you:

$ rvm package install openssl
$ rvm remove 1.8.7
$ rvm install 1.8.7 --with-openssl-dir=$HOME/.rvm/usr

请注意,之后您需要重新安装滑轨:

Note that afterwards you'll need to re-install rails:

$ gem install rails

这篇关于没有这样的文件要加载-openssl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 06:13