libxml-ruby: Failed to build gem native extension

后端 未结 7 1191
逝去的感伤
逝去的感伤 2021-02-07 19:24

I\'m trying to install libxml-ruby. I have installed libxml2, libxslt and coreutils

I have also read other posts rega

7条回答
  •  臣服心动
    2021-02-07 20:06

    Life after upgrading to macOS Mojave.

    xcode-select --install
    brew install libxml2
    brew link --force libxml2
    gem install libxml-ruby -v '2.9.0' -- --use-system-libraries=true --with-xml2-include="$(xcrun --show-sdk-path)"/usr/include/libxml2
    

    In my example I installed version 2.9.0 of the libxml-ruby gem. Change the version string to suit your needs. If available, examine the Gemfile.lock to identify which version of libxml-ruby Bundler is needs to install.

提交回复
热议问题