jekyll
를 설치하려고합니다
오류가 발생했습니다. Mac OS X 10.11.4 (El Capitan)를 실행하고 있습니다.
$gem install jekyll
ERROR : While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
$gem source -l
https://ruby.taobao.org
$which openssl
/usr/local/bin/openssl
이 오류를 해결하는 방법에 대한 제안을 환영합니다.
- 답변 # 1
- 답변 # 2
방법 1 (OpenSSL 설치)
모든 작업을 확실히하기 위해 터미널 (OSX)에이 모든 명령을 입력하십시오 :
rvm get stable brew update brew doctor brew install openssl rvm install ruby-2.4 (or whatever version) rvm use ruby-2.4 (or whatever version) rvm gemset create jekyll gem install jekyll
마지막으로, Jekyll (또는 다른 gem)을 설치하기 전에 Ruby를 컴파일하기 전에 OpenSSL이 설치되어 있어야합니다!
방법 2 (루비 재설치)OSX의 최신 버전은 openSSL을 사용하지 않습니다.
와이즈 비즈 OpenSSL이있는 RVM
최신 RVM 버전You need to reinstall Ruby!
홈 브루 및 OpenSSLrvm reinstall 2.3.0 --with-openssl-dir=/usr/local/opt/openssl
rvm get stable rvm reinstall ruby-2.3.0
- 답변 # 3
컴파일러가 openssl 라이브러리의 올바른 경로를 갖도록이 env 변수를 설정하면됩니다 (macOS에서 Homebrew를 사용하는 경우
brew install openssl rvm reinstall 2.3.0 --with-openssl-dir=`brew --prefix openssl`
사용) 이 정보를 보려면) :brew info openssl
그런 다음 루비를 다시 설치하십시오 (
$ export LDFLAGS=-L/usr/local/opt/openssl/lib $ export CPPFLAGS=-I/usr/local/opt/openssl/include # For pkg-config to find this software you may need to set: $ export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
) - 답변 # 4
openssl과 관련된 다른 답변을 고려할 때 다음과 같이 경우에 따라 수퍼 유저로 실행하려고 할 때도 동일한 오류가 표시됩니다.
rvm reinstall ruby-version
슈퍼 유저 권한이 없으면 다음과 같이 다른 동작, 성공한 동작을 볼 수 있습니다.
[email protected]:~$ sudo gem install bundler ERROR: While executing gem ... (Gem::Exception) Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
- 답변 # 5
[email protected]:~$ gem install bundler Fetching: bundler-1.14.6.gem (100%) Successfully installed bundler-1.14.6 Parsing documentation for bundler-1.14.6 Installing ri documentation for bundler-1.14.6 Done installing documentation for bundler after 4 seconds 1 gem installed
brew install openssl brew info openssl # do the suggested options $ export LDFLAGS=-L/usr/local/opt/openssl/lib $ export CPPFLAGS=-I/usr/local/opt/openssl/include # For pkg-config to find this software you may need to set: $ export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig rvm reinstall <version> --with-openssl-dir=`brew --prefix openssl`
관련 자료
- windows - 관리자 권한이있는 계정을 사용하는 동안 네트워크 연결 용 Canon 프린터 드라이버를 설치할 수 없음
- python - Python365 용 라이브러리를 설치할 수 없습니다
- android - 기기에 APK를 설치할 수 없습니다
- Google Colab에 PySpark를 설치할 수 없습니다
- node.js - 작성기 나머지 서버를 설치할 수 없습니다
- zsh에는 Python 패키지를 설치할 수 없지만 bash에서는 성공합니다
- javascript - iOS 기기에 반응 네이티브 애플리케이션을 설치할 수 없습니다
- reactjs - Express 서버를 사용할 때 반응 구성 요소에서 CSS, Less, SAS 파일을 가져 오기 (필수) 할 수 없음
- python 3.x - tensorflow 모델 서버를 설치할 수 없습니다
- python - python3에 pip3을 올바르게 설치할 수 없습니다
- Docker에 Chrome을 설치할 수 없습니다
- macos - 자가 양조를 통해 패키지를 설치할 수 없습니다
- python - SLUGIFY_USES_TEXT_UNIDECODE 및 AIRFLOW_GPL_UNIDECODE를 설정 한 후에도 공기 흐름을 설치할 수 없습니다
- 실패한 gem 설치 - gem에는 ruby-261이 필요하지만 현재 ruby-261이 필요합니다
- python - Windows 10에서 PyAudio를 설치할 수 없습니다
- react native - 특정 버전의 npm 패키지를 설치할 수 없습니다
- unix - 이전 버전의 R을 설치할 수 없습니다
- "screen"패키지 파이썬을 설치할 수 없습니다
- macos - Mac 10143에서 Python 37 패키지 Fiona, lxml, pandas, Pillow를 설치할 수 없습니다
- python - Linux mint 191에서 python374 용 Django 224를 설치할 수 없음
OSX의 최신 버전은 openSSL을 더 이상 사용하지 않아 많은 종속성이 손상되었습니다. 루비를 다시 설치해야하지만 openSSL 라이브러리의 위치를 정확하게 지정하십시오.
rvm
를 사용하는 경우 그러면 다음과 같이 보입니다 :홈브류를 사용하는 경우 라이브러리 위치에 대한 바로 가기는 다음과 같습니다.