전체 웹에서이 오류를 극복 할 수있는 방법을 모색했습니다. 그러나 그것은 움직이지 않을 것입니다. 내 지식에 따라 모든 라이브러리와 의존성을 설치했는데 심지어 루비와 노코 기리를 제거하고 다시 설치했다. 그러나이 오류는 여기 남아 있습니다. Ruby에 OpenGraph gem을 설치하려고합니다.
Gem files will remain installed in /home/$User/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/nokogiri-1.4.7 for inspection.
Results logged to /home/$User/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/nokogiri-1.4.7/gem_make.out
이이 위치에서 gem_make.out 로그 파일입니다 -> /.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/extensions/x86_64-linux/ 2.4.0 정적/노코 기리-1.4.7/gem_make.out
ERROR: Error installing opengraph:
\t ERROR: Failed to build gem native extension.
current directory: /home/$User/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/nokogiri-1.4.7/ext/nokogiri
/home/$User/.rbenv/versions/2.4.2/bin/ruby -r ./siteconf20171125-15877-nibcps.rb extconf.rb --with-nokogiri-dir=/home/$User/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
\t --with-opt-dir
\t --without-opt-dir
\t --with-opt-include
\t --without-opt-include=${opt-dir}/include
\t --with-opt-lib
\t --without-opt-lib=${opt-dir}/lib
\t --with-make-prog
\t --without-make-prog
\t --srcdir=.
\t --curdir
\t --ruby=/home/$User/.rbenv/versions/2.4.2/bin/$(RUBY_BASE_NAME)
extconf.rb:10:in `<main>': uninitialized constant Config (NameError)
Did you mean? RbConfig
CONFIG
extconf failed, exit code 1
P.S : 대체 방법이 있으므로 opengraph_parser를 사용하지 않습니다. 예외를 잡아야하기 때문에 나는 opengraph gem이 필요합니다.
Hi..thanks를 설치합니다. 하지만 Fedora 26을 사용하고 있습니다. Fedora 또는 Redhat과 유사한 종속성을 말할 수 있습니까? – Meimo
@Meimo ruby-devel zlib-devel. 내 대답이 업데이트되었습니다. – jemonsanto
답장을 보내 주셔서 감사합니다.하지만이 종속성을 설치하려고 할 때 ... 터미널에 "이미 설치되었습니다. 내 지식에 따라 모든것이 설치되었다고 말 했잖아. 그러나 그것은 설치되지 않을 것입니다. 나는 그것이 버그라고 생각한다. – Meimo