使用contacts 或者 contacts_cn会遇到如下问题,

…/gdata.rb:21:in `require': no such file to load -- jcode (LoadError)

 

解决方法:

找到ruby   gem 下的  /gems/gdata-1.1.1/lib/gdata.rb

 

修改最后两行为  require 'jcode' if RUBY_VERSION < '1.9'

 

如此修改之后之前的问题解决了,但是可能会报  gem 包 hpricot 找不到, 实际已经安装

这时候需要在Gemfile里面手动加上gem 'hpricot' 运行

 posted on 2011-12-22 10:12  兰猫-兰兰  阅读(226)  评论(0编辑  收藏  举报