自動で検索するアプリをatomで作っています。でもなぜかエラーがでてしまいます。どうしてでしょう。えらーは以下の通りです。[Command: ruby C:\Users\ユーザー]
D:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- iconv (LoadError) from D:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in
require'
from C:/Users/aユーザー:2:in `<main>'
[Finished in 3.607s]
コードrequire "rexml/document" require "iconv" require "uri" require "net/http" #??????? if ARGV.length == 0 then puts "Usage: ruby get_atom.rb keyword" exit(1) end #?????UTF-8??? keyword = URI.encode(String(Iconv.iconv("UTF-8", "Shift_JIS", ARGV[0]))) url = URI.parse("http://api.oshira.se/news?q="+keyword+"&s=d") #GET doc = REXML::Document.new(Net::HTTP.get(url)) entries = REXML::XPath.match(doc, "feed/entry/") #????? entries.each do |entry| #????????????????Shift_JIS??? puts Iconv.iconv("Shift_JIS", "UTF-8", String(REXML::XPath.match(entry, "title/text()")[0])) end

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。