2014-07-21 3 views
1
내가 시간 동안 노력

(지금의 일 ...) 노코 기리 1.6.3을 설치하는 나는 그것을 노코 기리 사이트 (http://nokogiri.org/tutorialsinstalling_nokogiri.html)하지만 개발 도구 설치를 요구 실패한 것에 sstated ...레일 4 rbenv 매버릭스가 Nokogiri 1.6.3을 설치할 수 없습니다. 미친 오류입니까?

/Users/yves/.rbenv/versions/2.1.2/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': 
The compiler failed to generate an executable file. (RuntimeError) 
You have to install development tools first. 
from /Users/yves/.rbenv/versions/2.1.2/lib/ruby/2.1.0/mkmf.rb:587:in `try_cpp' 
을 할 수 있다고 생각

XCode 5.1을 사용하고 있으며 dev 도구가 설치되어 있습니다! (최신 (.. 대부분의 경우, 많은 주어진 솔루션) 그러나 아무도는 노코 기리 1.6.3 작동하지, 그렇지 않으면 나는이 문제와 관련된 모든 질문/답변을 통해 갔다

yves$ ./configure --prefix=/usr/local/Cellar/libiconv/1.14 
    checking for a BSD-compatible install... /usr/bin/install -c 
    checking whether build environment is sane... yes 
    ... 


    yves$ gcc -v 
    Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 
    Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) 
    Target: x86_64-apple-darwin13.3.0 
    Thread model: posix 

libiconv 라이브러리를 얻어서을 ... 설치할 수 없습니다 갱신) 단지 counterchecking에 대한

, ...

yves$ gem install ffi 
Fetching: ffi-1.9.3.gem (100%) 
Building native extensions. This could take a while... 
Successfully installed ffi-1.9.3 
1 gem installed 
+0

확실히 Nokogiri 1.6.3 보석 설치 문제가 될 것 같습니다 ... 나는 마침내 1.6.2.1 어떤 문제가 설치되어 그것을 잠겨 .... – erwin

답변

0

을 내가 네이티브 확장을 구축하는 것이 필요 보석 FFI를 설치했는데, 그것은 괜찮 예, Nokgiri 1.6.3 의존성 문제입니다. 다음보십시오 :

gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib 

이 일을하기 전에, libxml2를, libxslt를하고 libiconv의 올바른 버전이 시스템에 설치되어 있고 위의 경로뿐만 아니라 올바른지 확인하십시오.