iconv deprecation warning with ruby 1.9.3

后端 未结 5 2198
小鲜肉
小鲜肉 2020-12-13 13:02

I\'m getting this warning when I run rspec:

/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require\': iconv will be deprecated in          


        
5条回答
  •  -上瘾入骨i
    2020-12-13 13:46

    To remove this warning...

    go to your .rvm directory and find iconv.c (mine was at ~/.rvm/src/ruby-1.9.3-p125/ext/iconv/iconv.c)

    edit that file are remove or comment out the call to warn_deprecated() (should be near the bottom)

    from that file's directory, run ruby extconf.rb then make then make install

    Should do the trick

提交回复
热议问题