난 내 OSX (Lion) 을 설치, t # 39 업그레이드됨 매버릭스 쉐퍼드도 can& 노코지리 내 프로젝트.
난 이미 설치 명령줄 도구 (xcode 를 설치하겠습니까 사용하여 '-'), xcode 5.0.1, 이미 설치된 libxml2 에서 저는 여전히 문제가 되었다.
오류::
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb
checking for libxml/parser.h... *** 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
--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/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
--with-libxslt-config
--without-libxslt-config
--with-pkg-config
--without-pkg-config
--with-libxml-2.0-config
--without-libxml-2.0-config
--with-libiconv-config
--without-libiconv-config
/Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:452:in `try_cpp'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:853:in `block in find_header'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
from /Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:852:in `find_header'
from extconf.rb:116:in `<main>'
Gem files will remain installed in /Users/ericcamalionte/Locaweb/code/dns-panel/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.9 for inspection.
Results logged to /Users/ericcamalionte/Locaweb/code/dns-panel/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.9/ext/nokogiri/gem_make.out
An error occured while installing nokogiri (1.5.9), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.5.9'` succeeds before bundling.
이 params) 에서 공개 및 리비콘프 설정하고, libxslt libxml2 설치한 노코지리 설치할 수 있지만, 너무 don& # 39 빗나갔다.
Mac OS X 10.9 매버릭스 노코지리 설치할 수도 있습니다) 에 완벽하게 xcode 설치처 사용:
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 --use-system-libraries
macosx10.11.sdk '또는' 이 될 수도 있지만, 해당 폴더 (내거냐 sanlight vmware. 18 일 2015년) 어쨌든 그래서 아직 완전히 경우에도 최대 엘카피탠, 내가 가진 xcode 및 최근 업데이트된 엘카피탠 sdk 경로를 따르는 다음영업일 사용해야 할 수도 있습니다.
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --use-system-libraries
그 다음 명령을 사용하여 시에라 작동합니다.
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 --use-system-libraries
이후 애니메이션 gif 탐색 [here] (http://jasdeep.ca/2013/10/installing-nokogiri-fails-os-x-mavericks/) '와' - '는 단순히 내가 가진 모든 것을 할 수 있는' 협력했습니다 좋았소 컴팩트형 설치처 노코지리 xcode 를 설치
내가 찾은 것으로 보고 이 로그에서는 gcc-4.2 찾을 수 없습니다.
package configuration for libxslt
cflags: -I/usr/local/Cellar/libxslt/1.1.28/include -I/usr/local/Cellar/libxml2/2.9.1/include/libxml2
ldflags: -L/usr/local/Cellar/libxslt/1.1.28/lib -L/usr/local/Cellar/libxml2/2.9.1/lib
libs: -lxslt -lxml2 -lz -lpthread -liconv -lm -lxml2
package configuration for libxml-2.0
cflags: -I/usr/local/Cellar/libxml2/2.9.1/include/libxml2
ldflags: -L/usr/local/Cellar/libxml2/2.9.1/lib
libs: -lxml2
package configuration for libiconv is not found
"/usr/bin/gcc-4.2 -o conftest -I/Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/x86_64-darwin11.4.0 -I/Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I. -I/usr/local/Cellar/libxslt/1.1.28/include -I/usr/local/Cellar/libxml2/2.9.1/include/libxml2 -I/usr/local/Cellar/libiconv/1.14/include -I/Users/ericcamalionte/.rvm/gems/ruby-1.9.2-p320@dns-panel/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxml2/2.8.0/include -I/Users/ericcamalionte/.rvm/gems/ruby-1.9.2-p320@dns-panel/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxslt/1.1.26/include -I/Users/ericcamalionte/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATH='"/Users/ericcamalionte/.rvm/gems/ruby-1.9.2-p320@dns-panel/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxml2/2.8.0"' -DNOKOGIRI_LIBXSLT_PATH='"/Users/ericcamalionte/.rvm/gems/ruby-1.9.2-p320@dns-panel/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxslt/1.1.26"' -I/usr/local/Cellar/libxslt/1.1.28/include -I/usr/local/Cellar/libxml2/2.9.1/include/libxml2 -I/usr/local/Cellar/libxml2/2.9.1/include/libxml2 conftest.c -L. -L/Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/lib -L/usr/local/Cellar/libxslt/1.1.28/lib -L/usr/local/Cellar/libxml2/2.9.1/lib -L/usr/local/Cellar/libiconv/1.14/lib -L/Users/ericcamalionte/.rvm/gems/ruby-1.9.2-p320@dns-panel/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxml2/2.8.0/lib -L/Users/ericcamalionte/.rvm/gems/ruby-1.9.2-p320@dns-panel/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxslt/1.1.26/lib -L/Users/ericcamalionte/.rvm/usr/lib -L. -Wl,-rpath,/Users/ericcamalionte/.rvm/gems/ruby-1.9.2-p320@dns-panel/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxml2/2.8.0/lib -Wl,-rpath,/Users/ericcamalionte/.rvm/gems/ruby-1.9.2-p320@dns-panel/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin13.0.0/libxslt/1.1.26/lib -L/usr/local/Cellar/libxslt/1.1.28/lib -L/usr/local/Cellar/libxml2/2.9.1/lib -L/usr/local/Cellar/libxml2/2.9.1/lib -lxslt -lxml2 -lz -lpthread -liconv -lm -lxml2 -lxml2 -lruby.1.9.1-static -lpthread -ldl -lobjc "
sh: /usr/bin/gcc-4.2: No such file or directory
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
이런 문제를 해결하기 위해 브루 (brew) '공개' 를 사용하여 만들고 내가 베르톨드 애플 gcc42 애플 gcc42 심볼릭 링크 내 / usr / bin:
'sudo ln - s /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 /usr/bin/gcc-4.2'
sudo xcode-select -s /Library/Developer/CommandLineTools/
xcode tools 실행하십시오 5.0.X 명령행을 사용할 수 있는 시스템을 설정하는
gem install nokogiri
이 경우 해당 버전 이후 스코디스라프 실행하십시오 재설정하려면 명령줄 도구
sudo xcode-select -r
또는, 다른 추가 할 수 있는 일은 정말 알 수 없는 명령행을 플래깅 무시하려면 인수만. 그런 다음 설치처 다음과 같습니다.
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install nokogiri
일반적으로 시스템 제공 물건을 치중한다는 싶어요. 이 협력했습니다 가져다줄래요:
gem install nokogiri -- --with-iconv-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/ --with-iconv-lib=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/
내가 이 문제를 로 업데이트 및 10.9 매버릭스 10.9.5 실행했음 설치 직후 Apple 의 개발자 도구 업데이트. '-' 내가 실행했음 xcode 를 설치, 하지만 그 문제가 해결되지 않았습니다. 그럼 내가 XCode, 수락됨 연 eula 및 끝냅니다끝내기 XCode. 그 문제가 해결되었습니다.
내가 가진 이 문제를 해결할 수 있는 오늘, 내가 어떻게 됐지, 이는 Maverick 문제:
brew update
brew install libiconv
brew link libiconv
아래에 있는 것은 알고 smartupdate 버전니다 리비콘프 저장고에 내거냐 1.14 아래와 같이 설치하는 것입니다.
gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14
V & # 39, 필요한 경우 특정 버전의 노코지리 에드그 1.6.2.1& # 39. 그럼 설치할 수 있다.
gem install nokogiri -v '1.6.2.1' -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14
노코지리 는 설치 성공!
그러나 이것은 동일합니까 @thomas_witt& # 39 에 Mac OS X 에서 작동하는 게시물로의 시에라:
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 --use-system-libraries
이 방법은 나를
system: OS X Yosemite 10.10
rvm: 1.26.10
ruby: ruby 2.2.1
두 개의 명령 아래 도망쳐야해
$ xcode-select --install
이 질문을 " 다운로드할지 말하도다 yes"; xcode 를 설치하는 것을 요청할 계획이라고 단순화표현 컴포넌트 설치 (install).
이제 다음 컴팩트형 설치할 수 있는 명령 아래
gem install nokogiri --no-ri --no-rdoc
이 방법은 위에서 나를 환경.
'브루 (brew)' 를 사용하는 경우 libxml2 libxslt 사용 되었다.
여기 다른 참조:
system: OS X Yosemite 10.10
rvm: 1.26.10
brew: 0.9.5
ruby: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
나는 attaboy 노코지리 설치 중 오류가 발생했습니다.
오류 다음과 같습니다.
.rvm/rubies/ruby-2.2.0-p0/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
첫 개발 도구를 설치해야 합니다.
그럼 할 것이다.
$ xcode-select --install
같은 경우 또는 오류 발생
checking for libxml/parser.h... no
그냥 수리입니다 lib 경로에 의해:
gem uninstall nokogiri libxml-ruby
brew update
brew uninstall libxml2
brew install libxml2 libxslt
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.2/include/libxml2/libxml --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.2/lib --with-iconv-dir=/usr/local/Cellar/libiconv/1.14/ --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26/
번들화 대해 다음과 같은 항목을 필요
bundle config build.nokogiri --with-xml2-include=/usr/local/Cellar/libxml2/2.9.2/include/libxml2/libxml --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.2/lib --with-iconv-dir=/usr/local/Cellar/libiconv/1.14/ --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26/
bundle install
Afaq 설치, 사용할 수 있는 '명령' 이 파일 경로 부모한테 수정하십시오 컴팩트형 일치시키려면 내 시스템에 설치. 나는 다른 버전의 libxml2 및 리비콘프 및 약간 다른 파일 구조. 내 손으로 명령, 수정, 입니다.
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2
--with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/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
난 내 발견사항 후에 이곳에 왔는지 구현하므로 직후 이와 같은 문제로 업그레이드가 추가되었습니다. http://jasdeep.ca/2013/10/installing-nokogiri-fails-os-x-mavericks/
이 2 개의 명령은 단순히 이 문제를 해결할 수 있다.
"' xcode 를 - 설치 노코지리 컴팩트형 설치 "'
희망을 줍니다.
만약 누군가 이 문제를 겪고 있는 반면, 엘 캐피탄 사용하여 들러.
Xcode tools 가 설치되어 있는지 명령행을 실행하십시오:
bundle config build.nokogiri --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --use-system-libraries
내가 꽂으십시오 실행했음 마우리치오, 솔루션, 동일한 문제가 없었다.
xcode-select --install
이는 그러나 작동안함 이를 [apple& # 39 의 다운로드 페이지 명령줄 도구] (https://developer.apple.com/downloads/index.action) 지금 있는 설치자는 공개적으로 사용할 수 없습니다.
따라서 스케쳐내 명령줄 도구 마브릭스 할 경우 a 지불됨 계정붅 해야 합니다. 그럼 디렉토리에만 바로 설치할 수 있습니다. 이를 통해 이 문제를 노코지리 설치하면 인쇄면 없습니다.
그는 지난 2 주동안 평면가공 같은 문제가 발생 실행하십시오 레일 3 버전을 통해 애플리케이션.
문제는 너회의 브름 / 베네프 compiler.* 사용하고 있지 않은 C
이 명령을 사용할 수 있도록 시행하십시오 브름 호환적 C 컴파일러 *
CC=gcc rvm install-version
그래서 루비 1.9.3 사용하는 경우, 이 방법을 사용한다.
CC=gcc rvm install-1.9.3
그는 지난 2 주동안 평면가공 같은 문제가 발생 실행하십시오 레일 3 버전을 통해 애플리케이션.
문제는 너회의 브름 / 베네프 compiler.* 사용하고 있지 않은 C
이 명령을 사용할 수 있도록 시행하십시오 브름 호환적 C 컴파일러 *
CC=gcc rvm install-version
그래서 루비 1.9.3 사용하는 경우, 이 방법을 사용한다.
CC=gcc rvm install-1.9.3
이 것은, 레일, 루비, mysql 3.2.16 1.9.3 5.7 작업하는 엘카피탠 이 문제를 해결할 것이라고 기대해 본다.