How to install Nokogiri on Mac OS Sierra 10.12

后端 未结 8 1940
孤街浪徒
孤街浪徒 2021-01-29 22:38

I\'m having troubles installing Nokogiri (1.6.8.1) on Mac OS Sierra 10.12.

I tried using brew install libxml2 libxslt and then referencing the install direc

8条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-29 22:53

    gem update --system
    xcode-select --install
    brew unlink xz
    gem install nokogiri -v '1.6.8.1'
    brew link xz
    

    If the above steps fail to fix the issue, what has also worked for me is running brew doctor and cleaning up any unbrewed header files.

提交回复
热议问题