我使用Ruby 1.8.7编写脚本,但是在尝试使用库“ htmlentities”解析html实体时遇到一些问题。
我已经安装了gem,但无法加载该库,这是错误消息:
1.8.7 :001 > require 'htmlentities'
LoadError: no such file to load -- htmlentities
Run Code Online (Sandbox Code Playgroud)
这是我的宝石清单:
actionmailer (2.3.4)
actionpack (2.3.4)
activerecord (2.3.4)
activeresource (2.3.4)
activesupport (2.3.4)
bundler (1.2.0)
htmlentities (4.3.1)
rack (1.0.1)
rails (2.3.4)
rake (0.9.2.2)
rubygems-bundler (1.1.0)
rvm (1.11.3.5)
sqlite3 (1.3.6)
Run Code Online (Sandbox Code Playgroud)