2017-09-16 3 views
1

twilio-ruby 설치 문제. homebrew를 사용하여 libxml2를 설치했고 거기에 있음을 확인했습니다. 내가보석 설치시 libxml2를 찾을 수 없습니다.

gem install twilio-ruby

을 실행하려고하지만 때 나는 libxml2를 찾을 수 없다는 오류를받을. libxml2에 대한 경로를 지정하려고 시도했지만 여전히 설치할 수 없습니다. 어떤 제안?

내가 함께이 세 가지 모두 그런 다음

gem install twilio-ruby -- --with-xml2-dir=/usr/local/Cellar/libxml2 

gem install twilio-ruby -- --use-system-libraries 

을 시도 :

gem install twilio-ruby -- --with-xml2-dir=/usr/local/Cellar/libxml2/2.9.1 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include 

때마다 나는 다음과 유사한 출력을 얻을.

gem update --system 
    xcode-select --install # Then agree to the terms, even if you have done this before! 
:
gem install twilio-ruby -- --with-xml2-dir=/usr/local/Cellar/libxml2 
Building native extensions with: '--with-xml2-dir=/usr/local/Cellar/libxml2' 
This could take a while... 
ERROR: Error installing twilio-ruby: 
    ERROR: Failed to build gem native extension. 

    /Users/tom/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb --with-xml2-dir=/usr/local/Cellar/libxml2 
checking for libxml/xmlversion.h in /opt/include/libxml2,/opt/local/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... no 
*** 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=/Users/tom/.rvm/rubies/ruby-2.1.1/bin/ruby 
    --with-xml2-config 
    --without-xml2-config 
    --with-xml2-dir 
    --with-xml2-include 
    --without-xml2-include=${xml2-dir}/include 
    --with-xml2-lib 
    --without-xml2-lib=${xml2-dir}/lib 
extconf failure: need libxml2. 

    Install the library or try one of the following options to extconf.rb: 

     --with-xml2-config=/path/to/xml2-config 
     --with-xml2-dir=/path/to/libxml2 
     --with-xml2-lib=/path/to/libxml2/lib 
     --with-xml2-include=/path/to/libxml2/include 


extconf failed, exit code 1 

Gem files will remain installed in /Users/tom/.rvm/gems/[email protected]/gems/libxml-ruby-3.0.0 for inspection. 
Results logged to /Users/tom/.rvm/gems/[email protected]/extensions/x86_64-darwin-12/2.1.0-static/libxml-ruby-3.0.0/gem_make.out 
' 

답변

1

그래서 많은 고통과 좌절, 그리고 잔뜩 시도 후 솔루션은 다음이었다
관련 문제