Вчера я провел большую часть дня в поисках четкого ответа для установки ruby-augeas.Я не могу найти хорошее решение.
Как мне установить его?
Ошибка при установке:
gem install ruby-augeas
Building native extensions. This could take a while...
ERROR: Error installing ruby-augeas:
ERROR: Failed to build gem native extension.
current directory: /Users/vmware/.rvm/gems/ruby-2.4.4/gems/ruby-augeas-0.5.0/ext/augeas
/Users/vmware/.rvm/rubies/ruby-2.4.4/bin/ruby -I /Users/vmware/.rvm/rubies/ruby-2.4.4/lib/ruby/site_ruby/2.4.0 -r ./siteconf20190923-73327-iy4kfy.rb extconf.rb
creating Makefile
current directory: /Users/vmware/.rvm/gems/ruby-2.4.4/gems/ruby-augeas-0.5.0/ext/augeas
make "DESTDIR=" clean
current directory: /Users/vmware/.rvm/gems/ruby-2.4.4/gems/ruby-augeas-0.5.0/ext/augeas
make "DESTDIR="
compiling _augeas.c
In file included from _augeas.c:25:
/usr/local/Cellar/augeas/1.12.0/include/augeas.h:24:10: fatal error: 'libxml/tree.h' file not found
#include <libxml/tree.h>
^~~~~~~~~~~~~~~
1 error generated.
make: *** [_augeas.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/vmware/.rvm/gems/ruby-2.4.4/gems/ruby-augeas-0.5.0 for inspection.
Results logged to /Users/vmware/.rvm/gems/ruby-2.4.4/extensions/x86_64-darwin-18/2.4.0/ruby-augeas-0.5.0/gem_make.out
Я также установил brew install augeas pkg-config
, но это показывает ту же ошибку.