P
Pen Ttt
in my console:
sudo gem install rchardet
[sudo] password for pt:
Successfully installed rchardet-1.3
1 gem installed
Installing ri documentation for rchardet-1.3...
Updating class cache with 2274 classes...
Installing RDoc documentation for rchardet-1.3...
pt@pt-laptop:~$ irb
irb(main):001:0> require 'rchardet'
SyntaxError:
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:60:
syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:61:
syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:75:
syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:84:
syntax error, unexpected keyword_end, expecting $end
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet.rb:25:in
`require'
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet.rb:25:in
`<top (required)>'
from (irb):1:in `require'
from (irb):1
from /usr/local/ruby/bin/irb:12:in `<main>'
what is the matter?
sudo gem install rchardet
[sudo] password for pt:
Successfully installed rchardet-1.3
1 gem installed
Installing ri documentation for rchardet-1.3...
Updating class cache with 2274 classes...
Installing RDoc documentation for rchardet-1.3...
pt@pt-laptop:~$ irb
irb(main):001:0> require 'rchardet'
SyntaxError:
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:60:
syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:61:
syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:75:
syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:84:
syntax error, unexpected keyword_end, expecting $end
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet.rb:25:in
`require'
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet.rb:25:in
`<top (required)>'
from (irb):1:in `require'
from (irb):1
from /usr/local/ruby/bin/irb:12:in `<main>'
what is the matter?