Ruby ruby 1.9.3 编译安装时发生的错误

reducm · January 17, 2012 · Last by funfriend replied at March 15, 2012 · 4175 hits

ubuntu 11.04,之前编译安装 ruby1.9.2 使用一直正常,见到有 1.9.3 后下载更新 ./confirgure 后 make 的时候来到这一步发生错误:

compiling dmyext.c
linking miniruby
./tool/mkconfig.rb:11:in `require': incompatible character encodings: ASCII-8BIT and US-ASCII (Encoding::CompatibilityError)
    from ./tool/mkconfig.rb:11:in `<main>'
make: *** [.rbconfig.time] 错误 1

请问大家这个应该怎么修复?

查 locale,设 LC_ALL=en_US.UTF-8 或 LC_ALL=zh_CN.UTF-8 类似这样

Unknow user #2 March 15, 2012

哥子,我也遇到这个问题,不知道你怎麼解决的~

You need to Sign in before reply, if you don't have an account, please Sign up first.