`
samgell
  • 浏览: 11088 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

no such file to load — openssl

 
阅读更多
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安装 Ruby2.7.0遇到的坑:cannot load such file — openssl (LoadError)

    在本文中,我们将探讨在Ubuntu 16.04系统上安装Ruby 2.7.0时遇到的一个常见问题:`cannot load such file — openssl (LoadError)`。这是一个与Ruby和OpenSSL库集成有关的问题,通常发生在试图安装或运行依赖于...

    openSUSE下的Ruby安装openssl出错解决方法

    `no such file to load — openssl (LoadError)` 原因很简单就是 ruby 的 openssl 支持模块没有安装,在 openSUSE 下面安装: 代码如下: sudo zypper in libopenssl-devel 然后编译 openssl 模块,

    Redis4基于CentOS6集群搭建1

    然而,运行`redis-trib.rb`时可能会遇到一个问题,即`no such file to load -- redis`的错误。这是由于缺少Redis的Ruby接口。为解决此问题,你需要通过`gem install redis`命令安装Ruby的Redis gem。确保Ruby环境...

    php.ini-development

    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....

    linux全志R16的linux系统编译的资料_20170502_1655.7z

    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-...

    ubuntu下安装ruby on rails

    **问题描述:** 访问自定义页面时出现 `no such file load – sqlite3` 错误。 **解决方案:** Rails 默认使用 SQLite3 作为开发数据库。确保安装了 SQLite3: ```bash sudo apt-get install sqlite3 sudo gem ...

    Centos7安装swoole扩展操作示例

    类似地,如果遇到“fatal error: openssl/ssl.h: No such file or directory”,表明缺少OpenSSL开发库,使用`yum install openssl-devel`进行安装。如果需要HTTP2支持但编译失败,确保安装nghttp2库,可以通过下载...

Global site tag (gtag.js) - Google Analytics