ruby报错信息如下:

sinber$ rake db:migrate --trace

/Users/sinber/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.

 

这是由于没有设置字符编码报的错

解决办法:

终端输入命令

sinber$ export RUBYOPT="-KU -E utf-8:utf-8"

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-07-16
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2021-07-16
  • 2021-08-25
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案