无法安装octocatalog-diff

时间:2019-08-29 13:31:01

标签: ruby rubygems

我正在尝试运行:

gem install octocatalog-diff -v 1.5.2

(因为更高版本需要ruby 2.2.0)。 这是我得到的错误:

Building native extensions.  This could take a while...
ERROR:  Error installing octocatalog-diff:
    ERROR: Failed to build gem native extension.
.
.
.
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
CMake Error at src/CMakeLists.txt:167 (MESSAGE):
  Unable to autodetect a usable HTTPS backend.Please pass the backend name
  explicitly (-DUSE_HTTPS=backend)

尽管我已经在用户的路径中安装了openssl。 尝试安装ruby-devel,cmake,gcc

我想念什么?

1 个答案:

答案 0 :(得分:0)

万一有人偶然发现,这里的解决方案是安装openssl-devel软件包:

yum install openssl-devel

那为我解决了。