복붙노트

[RUBY-ON-RAILS] 톱 부산 m 잉꼬 s たぁちおん 엣 r

RUBY-ON-RAILS

톱 부산 m 잉꼬 s たぁちおん 엣 r

나는이 보석에 대한 질문을 많이 알고 있지만 대답은 나를 위해 일하지 않았다.

내가 SSH 보석에서 실행할 때 나는이 오류가 노코 기리 설치 :

Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
Running patch with /home/user58952277/.gem/ruby/1.9.3/gems/nokogiri-1.6.2.1/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch...
Running 'patch' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0/patch.log' to see what happened.
*** 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.

내 호스트는 모든 libs와 설치되어 있는지 나에게 말했다. 여기를 실행 한 후 전체 로그 노코 기리 명령 설치를 수 있습니다 :

Building native extensions.  This could take a while...
Building nokogiri using packaged libraries.
Building libxml2-2.8.0 for nokogiri with the following patches applied:
    - 0001-Fix-parser-local-buffers-size-problems.patch
    - 0002-Fix-entities-local-buffers-size-problems.patch
    - 0003-Fix-an-error-in-previous-commit.patch
    - 0004-Fix-potential-out-of-bound-access.patch
    - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
    - 0006-Do-not-fetch-external-parsed-entities.patch
    - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
    - 0008-Improve-handling-of-xmlStopParser.patch
    - 0009-Fix-a-couple-of-return-without-value.patch
    - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
    - 0011-Do-not-fetch-external-parameter-entities.patch
************************************************************************
IMPORTANT!  Nokogiri builds and uses a packaged version of libxml2.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall nokogiri as
follows:

    gem install nokogiri -- --use-system-libraries

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

However, note that nokogiri does not necessarily support all versions
of libxml2.

For example, libxml2-2.9.0 and higher are currently known to be broken
and thus unsupported by nokogiri, due to compatibility problems and
XPath optimization bugs.
************************************************************************
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

        /opt/rubies/ruby-1.9.3/bin/ruby extconf.rb
Building nokogiri using packaged libraries.
checking for iconv.h... yes
checking for iconv_open() in iconv.h... yes
Building libxml2-2.8.0 for nokogiri with the following patches applied:
    - 0001-Fix-parser-local-buffers-size-problems.patch
    - 0002-Fix-entities-local-buffers-size-problems.patch
    - 0003-Fix-an-error-in-previous-commit.patch
    - 0004-Fix-potential-out-of-bound-access.patch
    - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
    - 0006-Do-not-fetch-external-parsed-entities.patch
    - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
    - 0008-Improve-handling-of-xmlStopParser.patch
    - 0009-Fix-a-couple-of-return-without-value.patch
    - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
    - 0011-Do-not-fetch-external-parameter-entities.patch
************************************************************************
IMPORTANT!  Nokogiri builds and uses a packaged version of libxml2.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall nokogiri as
follows:

    gem install nokogiri -- --use-system-libraries

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

However, note that nokogiri does not necessarily support all versions
of libxml2.

For example, libxml2-2.9.0 and higher are currently known to be broken
and thus unsupported by nokogiri, due to compatibility problems and
XPath optimization bugs.
************************************************************************
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
Running patch with /home/user58952277/.gem/ruby/1.9.3/gems/nokogiri-1.6.2.1/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch...
Running 'patch' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0/patch.log' to see what happened.
*** 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:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/opt/rubies/ruby-1.9.3/bin/ruby
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --enable-cross-build
    --disable-cross-build
/home/user58952277/.gem/ruby/1.9.3/gems/mini_portile-0.6.0/lib/mini_portile.rb:279:in `block in execute': Failed to complete patch task (RuntimeError)
    from /home/user58952277/.gem/ruby/1.9.3/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `chdir'
    from /home/user58952277/.gem/ruby/1.9.3/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `execute'
    from extconf.rb:282:in `block in patch'
    from extconf.rb:279:in `each'
    from extconf.rb:279:in `patch'
    from /home/user58952277/.gem/ruby/1.9.3/gems/mini_portile-0.6.0/lib/mini_portile.rb:108:in `cook'
    from extconf.rb:253:in `block in process_recipe'
    from extconf.rb:154:in `tap'
    from extconf.rb:154:in `process_recipe'
    from extconf.rb:419:in `<main>'

해결법

  1. ==============================

    1.높은 시에라 맥 OS 10.13

    높은 시에라 맥 OS 10.13

    gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2/
    

    맥 OS 시에라 10시 12분 :

    gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2/
    

    OS X 엘 캐피 10.11

    gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/
    

    당신은 권한이없는 경우는 sudo를 추가하는 것이 좋습니다.

    더 많은 정보를 원하시면,이 게시물을 체크 아웃.

  2. ==============================

    2.마지막으로, 문제는 일부 시스템과 호환되지 않는 자신의 libxml2를의 출시로 노코 기리 자체에 의해 발생했다. 나는 그것이 시스템 라이브러리를 사용한다고 그에게했다 노코 기리 그래서 설치합니다.

    마지막으로, 문제는 일부 시스템과 호환되지 않는 자신의 libxml2를의 출시로 노코 기리 자체에 의해 발생했다. 나는 그것이 시스템 라이브러리를 사용한다고 그에게했다 노코 기리 그래서 설치합니다.

    나는하여 수동으로 설치 :

    gem install nokogiri -v 1.6.2.1 -- --use-system-libraries
    

    그리고 그것은 잘 작동. 다른 답변은 해결되지 않았다.

  3. ==============================

    3.나는 때문에 목록에없는 빌드 종속성이 같은 문제 다 퉜다. 언제 문제의 tmp 디렉토리를 발견 :

    나는 때문에 목록에없는 빌드 종속성이 같은 문제 다 퉜다. 언제 문제의 tmp 디렉토리를 발견 :

    find ~/.rbenv/ -name patch.log
    

    그것은 말했다 :

    간단한와 그 해결 :

    sudo yum install -y patch
    
  4. ==============================

    4.OSX 요세미티, 나는 터미널에서 --install 엑스 코드는-선택했다. 그 후, 번들은 그 보석과 벌금을했다.

    OSX 요세미티, 나는 터미널에서 --install 엑스 코드는-선택했다. 그 후, 번들은 그 보석과 벌금을했다.

  5. ==============================

    5.윈도우 7 홈 베이직 64 비트에서 나를 위해이 작품 :

    윈도우 7 홈 베이직 64 비트에서 나를 위해이 작품 :

    gem install nokogiri -v 1.6.2.1 -- --use-system-libraries
    
  6. ==============================

    6.이것은 OS X 요세미티와 나를 위해 일했다.

    이것은 OS X 요세미티와 나를 위해 일했다.

    gem install nokogiri -v 1.6.5 -- --use-system-libraries
    
  7. ==============================

    7.나를 위해 일 현재 답변의 어떠한 (우분투 16.04,하지 맥을 사용하지).

    나를 위해 일 현재 답변의 어떠한 (우분투 16.04,하지 맥을 사용하지).

    그러나 노코 기리 사이트의 지침과이 부분에 따라 속임수를 썼는지 :

    # See http://www.nokogiri.org/tutorials/installing_nokogiri.html#ubuntu___debian
    sudo apt-get install build-essential patch
    sudo apt-get install ruby-dev zlib1g-dev liblzma-dev
    

    나는 2009 노코 기리를 사용하고 난 항상 그것을 설치하는 데 문제 했어 있습니다. 더 이상의 코멘트는 아마 SO T 이용 약관을 준수하지 않을 :

  8. ==============================

    8.양조 libxml2를 설치 번들 설정 build.nokogiri "--use-시스템 라이브러리 --with-xml2-포함 = / usr / 지방 / 옵션 / libxml2를 포함 / / libxml2를"

    양조 libxml2를 설치 번들 설정 build.nokogiri "--use-시스템 라이브러리 --with-xml2-포함 = / usr / 지방 / 옵션 / libxml2를 포함 / / libxml2를"

    번들 설치

    그것은 나를 위해 일하는 :)

  9. ==============================

    9.이것은 OS X 10.10.3 요세미티에 나를 위해 일한 것입니다 :

    이것은 OS X 10.10.3 요세미티에 나를 위해 일한 것입니다 :

    sudo gem install nokogiri -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 --with-xml2-lib=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib
    
  10. ==============================

    10.맥 OS 시에라와 그 플래그를 설치 명령이 작동을 말한다 wongzigii 그냥 같이

    맥 OS 시에라와 그 플래그를 설치 명령이 작동을 말한다 wongzigii 그냥 같이

    보석 노코 기리 설치 - --use-시스템 라이브러리를 = TRUE = / 응용 프로그램 / Xcode.app / 내용 / 개발자 / 플랫폼 / MacOSX.platform / 개발자 / SDK를 / MacOSX10.12.sdk는 / usr를 --with-xml2는-포함 / 포함 / libxml2를 /

  11. ==============================

    11.내가 달릴 때까지 노코 기리 내 OSX 시에라 컴퓨터에서 엑스 코드 libs와를 찾을 수 없습니다 :

    내가 달릴 때까지 노코 기리 내 OSX 시에라 컴퓨터에서 엑스 코드 libs와를 찾을 수 없습니다 :

    sudo는 xcodebuild -license 동의

  12. ==============================

    12.이것은 나를 위해 일한 :

    이것은 나를 위해 일한 :

    sudo gem install nokogiri -v 'versionNumber'  -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xml2-include=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --with-xml2-lib=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib
    
  13. ==============================

    13.나는 어려운 방법에서이 문제를 파악하고 이동 경로를 따라 사람들이 시도했는지에 읽을 수있는 몇 시간이 걸렸다. 아무것도 도움이되었다. 나는이 문제를 해결하는 방법을 너무 여기에 도움이되지 않았다이 오버 플로우 페이지에있는 모든입니다 :

    나는 어려운 방법에서이 문제를 파악하고 이동 경로를 따라 사람들이 시도했는지에 읽을 수있는 몇 시간이 걸렸다. 아무것도 도움이되었다. 나는이 문제를 해결하는 방법을 너무 여기에 도움이되지 않았다이 오버 플로우 페이지에있는 모든입니다 :

    당신은 루비에없는 다른 개발 프로젝트를 위해 컴퓨터를 사용하는 경우. 당신은 다른 언어에 대한 패키지 관리자 설치를 확인 할 수 있습니다. 더 중요한 것은 - 당신은 다른 C 컴파일러 설치를 확인 할 수 있습니다 - 즉 연타

    내 경우에는 - 나는 아나콘다 / CONDA (파이썬)를 설치했고이 엑스 코드 명령 행 도구와 rebenv로 이전 브루을 통해 설치된 모든 사용 gcc가 있었다 주요 C 컴파일러로 사용하는 그 소리에 내 .bash_profile에에서 경로의 무리를 교체했다.

    나는 아나콘다 (사용 아나콘다 청소)와 연타 설치를 제거하고 번들로했습니다. 내가 누락 된 libxml2를 문제를 가지고의 그. 나는 그 사제를 통해 다시하게 될 것 심볼릭 링크를 확인하기 위해 사제를 통해 libxml2를 다시 설치하고 내 ~ / bash_profile 파일에 적절한 수출 플래그를 추가하는 다음의 지침을 따랐다.

    성공적으로 지금 번들. 그 이유는, 보석은 지금은이 프로젝트를 위해 사용하고있는 루비 버전과 동일한 컴파일러와 함께 번들로 제공되고있다.

    도커이 나는 가정 우리 중 많은 사람들이 같은 수개 국어 dev에 기계가 아닌 문제를 만들었을 것입니다.

    머리 위로 그래서.

  14. ==============================

    14.마지막으로 많은 투쟁 후에는 (OS X 10.8.5, MacPorts를) 나를 위해 일한 다음. (I는 GitHub의 페이지 즉 지킬를 설치하고)

    마지막으로 많은 투쟁 후에는 (OS X 10.8.5, MacPorts를) 나를 위해 일한 다음. (I는 GitHub의 페이지 즉 지킬를 설치하고)

    /opt/local/bin/gem install nokogiri -v 1.6.6.2 -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/libxml2 --with-xml2-lib=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib 
    
  15. ==============================

    15.내 경우, 나는 맥 OSX 모하비를 사용하여 패키지가 여기에 설명 된 설치했다 오전 : https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes#3035624

    내 경우, 나는 맥 OSX 모하비를 사용하여 패키지가 여기에 설명 된 설치했다 오전 : https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes#3035624

    여기에 패키지의 경로는 다음과 같습니다 /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

    를 설치 한 후, 설치가 문제없이 완료.

  16. ==============================

    16.1 단계:

    1 단계:

    brew install libxml2
    

    2 단계:

    bundle config build.nokogiri --use-system-libraries
    

    3 단계 :    다음 시도

  17. ==============================

    17.맥 OS 시에라을 사용하고 있습니다.

    맥 OS 시에라을 사용하고 있습니다.

    노코 기리 문서에 가서이 다음 :

    ON MAC OSX

    설치 노코 기리의 vendored libxml2를하고 libxslt를을 사용하여 ™ 그냥 일을해야한다.

    첫째, 당신은 젬와 엑스 코드 명령 줄 도구의 최신 버전이 있는지 확인하십시오 :

    1 개 보석 업데이트 --system

    이 --install 엑스 코드 - 선택

    그런 다음 노코 기리를 설치 :

    1 부산 m 잉꼬 s 단 l 톱

  18. from https://stackoverflow.com/questions/24251494/nokogiri-gem-installation-error by cc-by-sa and MIT license