getc is obsolete; use STDIN.getc instead

▼魔方 西西 提交于 2019-12-13 04:44:59

问题


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



来源:https://stackoverflow.com/questions/3479201/getc-is-obsolete-use-stdin-getc-instead

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!