2015-08-27 1 views
1

Я пытаюсь установить Rails на свой Mac (Yosemite). Я прошел несколько вопросов SO, переустановил libxml2 с помощью Homebrew и с RVM, а также обновил Ruby и т. Д., И до сих пор ничего не работало. Моя версия libxml2 - 2.9.2.Невозможно установить Rails из-за неправильного обнаружения libxml2

ERROR: Error installing rails: 
ERROR: Failed to build gem native extension. 
Building nokogiri using system libraries. 
libxml2 version 2.6.21 or later is required! 
*** 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. 

Что мне делать дальше?

+0

возможно дубликат [Issue установка nokogiri в пучке установки] (http://stackoverflow.com/questions/23668684/issue-installing-nokogiri-in-bundle-install) –

ответ

1

У вас есть проблемы с nokogiri здания.

Проделайте следующие шаги. Это должно работать для Yosemite:

brew install libxml2 

bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2" 

bundle install 
Смежные вопросы