no such file to load -- openssl
This error occurred while loading the following files: openssl
Are you using RVM?
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
On a Debian-based system, you can find where openssl is installed by running the following command:
$ dpkg -L 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
分享到:
相关推荐
在本文中,我们将探讨在Ubuntu 16.04系统上安装Ruby 2.7.0时遇到的一个常见问题:`cannot load such file — openssl (LoadError)`。这是一个与Ruby和OpenSSL库集成有关的问题,通常发生在试图安装或运行依赖于...
`no such file to load — openssl (LoadError)` 原因很简单就是 ruby 的 openssl 支持模块没有安装,在 openSUSE 下面安装: 代码如下: sudo zypper in libopenssl-devel 然后编译 openssl 模块,
然而,运行`redis-trib.rb`时可能会遇到一个问题,即`no such file to load -- redis`的错误。这是由于缺少Redis的Ruby接口。为解决此问题,你需要通过`gem install redis`命令安装Ruby的Redis gem。确保Ruby环境...
PHP attempts to find and load this configuration from a number of locations. ; The following is a summary of its search order: ; 1. SAPI module specific location. ; 2. The PHPRC environment variable....
Preparing to unpack .../libfile-listing-perl_6.04-1_all.deb ... Unpacking libfile-listing-perl (6.04-1) ... Selecting previously unselected package libfont-afm-perl. Preparing to unpack .../libfont-...
**问题描述:** 访问自定义页面时出现 `no such file load – sqlite3` 错误。 **解决方案:** Rails 默认使用 SQLite3 作为开发数据库。确保安装了 SQLite3: ```bash sudo apt-get install sqlite3 sudo gem ...
类似地,如果遇到“fatal error: openssl/ssl.h: No such file or directory”,表明缺少OpenSSL开发库,使用`yum install openssl-devel`进行安装。如果需要HTTP2支持但编译失败,确保安装nghttp2库,可以通过下载...