getc is obsolete; use STDIN.getc instead

2019-08-28 06:18发布

问题:

When running rake gems:install I see this message:

/opt/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:232: warning: getc is obsolete; use STDIN.getc instead

How do I resolve the issue?

回答1:

The problem was resolved by using sudo command i.e. sudo rake gems:install