Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Ruby 1.9.2,并且我有一个使用 hpricot 的任务。我尝试安装 hpricot gem,但收到错误消息。extconf.rb 失败。无法创建生成文件。检查 mkmf.log。但我找不到 mkmf.log。
我检查了其他答案并尝试使用 gem install hpricot-platform=mswin32 进行安装。那也没有用。
我应该重新安装 Ruby 1.8 版吗?
是否需要 hpricot?Nokogiri 应该适合你,IIRC,它有一个兼容层,因此它可以在需要时作为 hpricot 的替代品。