Error - “gem install rails” - libxml2 is missing

后端 未结 8 1762
滥情空心
滥情空心 2021-01-05 02:14

I\'ve been working through the Rails install instructions (http://railsapps.github.io/installrubyonrails-mac.html) and everything was okay up until I got to gem instal

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 02:53

    I had the same problem when I try:

    gem install libxml-ruby -v '3.0.0
    

    Run the following solved the issue on Mac for me:

    gem update --system
    
    xcode-select --install
    
    gem install nokogiri
    

    See installing nokogiri for more details

提交回复
热议问题