jnunemaker/twitter — Issue #213: Error when requiring Twitter Ruby Gem using MRI 1.8.7 on Mac OS X 10.6.8 Snow Leopard
Author: sampablokuper
Created: 2011-11-25 13:39:18+00:00
State: open

If I `require "twitter"`, I get the following error:

/Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-text-1.4.13/lib/twitter-text.rb:5: twitter-text requires the $KCODE variable be set to 'UTF8' or 'u'
(RuntimeError) from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter/status.rb:9:in `require'
from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter/status.rb:9
from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter/user.rb:5:in `require'
from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter/user.rb:5 from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter/direct_message.rb:3:in `require'
from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter/direct_message.rb:3 from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter/client.rb:6:in `require'
from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter/client.rb:6
from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter.rb:1:in `require'
from /Volumes/Data/sampablokuper/Documents/myproject/vendor/ruby/1.8/gems/twitter-2.0.0/lib/twitter.rb:1
from main.rb:10:in `require'
from main.rb:10

Anyone know what I ought to