ERROR: While executing gem ... (Gem::Exception) Unable to require openssl...........................
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR: While executing gem ... (Gem::Exception) Unable to require openssl...........................相关的知识,希望对你有一定的参考价值。
今天在centOS7上安装ruby3.2.0时,gem install redis 出现ERROR: While executing gem ... (Gem::Exception) Unable to require openssl....................
试了网上很多的方法还是出现了这个问题。
最后索性删除了本来的ruby,重新安装后就可以了。
正确的安装步骤是先安装开发工具和依赖包
先安装开发工具
1、命令:yum groupinstall "Development tools"
清理已安装过的
2、命令:yum erase ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs
安装依赖(要先安装这些依赖包,不然gem不能执行)
3、命令:yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel
安装ruby
4、把安装包上传到指定目录,并解压
命令:tar zxvf ruby-2.3.0.tar.gz;解压后,进入ruby-2.3.0目录下,依次执行下面命令
命令:./configure
命令:make
命令:make install
5、ruby要支持redis的通信,需要下载redis相关包(3步骤执行后这里应该就没问题了)
命令:gem install redis
以上是关于ERROR: While executing gem ... (Gem::Exception) Unable to require openssl...........................的主要内容,如果未能解决你的问题,请参考以下文章
xception: An error occurred while executing doInBackground()
安装owncloud出现:Error while trying to create admin user: An exception occurred while executing
命令行运行mvn test后报错[ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the
maven配置时出现:[ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effec
maven配置时出现:[ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effec
ERROR: While executing gem ... (Gem::Exception) Unable to require openssl...........................