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

时间: 2024-10-07 00:18:57

ERROR: While executing gem ... (Gem::Exception) Unable to require openssl...............................的相关文章

解决方法:配置群集时# gem install redis 报错:Unable to require openssl, install OpenSSL and rebuild ruby

问题:前面已经在/usr/local/src安装了ruby-2.3.0.tar.gz.rubygems-2.4.2.tar.gz.在配置 redis-3.1.1 群集中,使用gem install 安装 ruby redis 接口时报: [plain] view plain copy # [[email protected] src]# gem install redis --version 3.0.0 # # 由于源的原因,可能下载失败,就手动下载下来安装 [[email protected]

ERROR: While executing gem ... (Encoding::UndefinedConversionError) U+7CFB to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437,当你执行gem 命令时,提示如上信息解决方案如下。

when you  use  gem install package ,the result:ERROR: While executing gem ... (Encoding::UndefinedConversionError) U+7CFB to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437 解决方法: 去本地路径下修改编码,这么提示是因为编码不一致导致的. 修改registry 文件中的编码: 修改后就没有问题了.

cocoapods 安装报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

cocoapods 安装报错 ERROR:  While executing gem ... (Errno::EPERM)     Operation not permitted - /usr/bin/xcodeproj 执行下面语句安装即可: sudo gem install -n /usr/local/bin cocoapods

Hive报错:Failed with exception Unable to rename

之前也安装过hive,操作过无数,也没发现什么错误,今天因为之前安装的hadoop不能用了,不知道为什么,老是提示node 0,所以重新安装了hadoop和hive.安装完测试hive创建表也没发现什么错误,但是一旦执行create table tab_name as select * from (原表)的时候报如下的错: Failed with exception Unable to rename: hdfs://hadoop:9000/tmp/hive-root/hi ve_2014-10-

IntelliJ运行下载的Servlet时报错 Error running Tomcat 8.5.8: Unable to open debugger port (127.0.0.1:49551): java.net.SocketException

学习Java Servlet时,从Wrox上下载了示例代码,准备run/debug时发现以下错误: Error running Tomcat 8.5.8: Unable to open debugger port (127.0.0.1:49551): java.net.SocketException "Socket closed" /Users/GuQiang/Tomcat/apache-tomcat-8.5.8/bin/catalina.sh stopUsing CATALINA_B

Aandroid Error之 新导入工程报Unable to resolve target 'android-18'和R cannot be resolved

有段时间没有写安卓了,今天导入以前的项目,结果看到控制台打印出了这样一句:Unable to resolve target 'android-18', 解决方法: 项目->属性->Android->Project Build Target 选择android 4.4Target,保存.结果原来报的一大堆错误消失了,只剩一个错误,R cannot be resolved然后点project->clean,如图.结果错误就消失了. Aandroid Error之 新导入工程报Unabl

SAP R3 安装出错 FJS-00012 Error when executing script.

安装环境:Windows server 2003 中文企业版32位. 数据库:Oracle 9i. Running the command "C:\oracle\ora92/bin/lsnrctl 'start' 'LISTENER'" finished with returncode 3. Output: ERROR 2030-01-16 19:06:56 CJS-00095  Return code 3 of executable C:\oracle\ora92/bin/lsnrc

fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/apple/Library/Developer

在同时安装使用Xcode5, Xcode6之后, 经常遇到这个问题. fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/apple/Library/Developer/Xcode/DerivedData/ModuleCache/1380X6D9Q9RXZ/Darwin.pcm": module file not found' 解决办法: clean 一下就好了.. fatal err

fatal error: malformed or corrupted AST file: 'Unable to load module Darwin.pcm 问题解决

xcode5 编译工程,偶然碰到了下面的问题: fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/gapple/Library/Developer/Xcode/DerivedData/ModuleCache/PNBJ8YUNV3UC/Darwin.pcm": module file not found' note: after modifying system headers, pl