Nokogiri issues with Ruby on Rails

前端 未结 3 1332
耶瑟儿~
耶瑟儿~ 2021-01-06 15:57

I\'m trying to install nokogiri on my machine but I am receiving the following error:

Building native extensions.  This could take a while...
ERROR:  Error          


        
3条回答
  •  不知归路
    2021-01-06 16:29

    This seems to be a common issue. You can check the following link

    http://www.nokogiri.org/tutorials/installing_nokogiri.html

    You will need to update the Rubygems to 2.4.5 or later and also check whether development tools is installed on you pc.

    Or you can do the following if you are using bundle

    gem update --system
    gem install nokogiri -- --use-system-libraries
    bundle config build.nokogiri --use-system-libraries
    bundle install
    

提交回复
热议问题