安装ruby 1.9.3,devkit,mingw gem install rails工作得很好,但是当我创建新的rails应用程序时 - 有捆绑错误
D:/Programes/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 193: %1 эх ты хЄё яЁшыюцхэшхь Win32. - D:/Programes/Ruby193/lib/ruby/1.9.1/i386-mingw32/digest/sha1.so (LoadError)
from D:/Programes/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from D:/Programes/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/definition.rb:1:in `<top (required)>'
from D:/Programes/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler.rb:138:in `definition'
from D:/Programes/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/cli.rb:219:in `install'
from D:/Programes/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run'
from D:/Programes/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from D:/Programes/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch'
from D:/Programes/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in`start'
from D:/Programes/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/bin/bundle:13:in `<main>'
和
之类的命令D:\Work\ruby>gem help commands
ERROR: Loading command: server (LoadError)
193: %1 эх ты хЄё яЁшыюцхэшхь Win32. - D:/Programes/Ruby193/lib/ruby/1.9.1/i386-mingw32/digest/md5.so
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::ServerCommand
文件md5.so存在 我忘了做什么,也许ruby不能在Windows 7 x64上工作?
答案 0 :(得分:1)
我认为您在没有# encoding: UTF-8
的情况下使用西里尔文,只需将其添加到您使用эх ты...
P.S。:откудавообщетамкирилица?
答案 1 :(得分:0)
同样运行Windows 7 x64,我有同样的问题突然出现在1.9.3-p0上。搜索网络但没有成功。还尝试复制1.9.2-p290中的“sha1.so”文件,以防该特定库出现问题 - 不。
我建议一些关于rubygems或bundler似乎打破require
,但相同的bundler和rubygems代码在1.9.2上运行正常。运行require "digest/sha1"
时没问题
在我自己的Ruby 1.9.3裸测试文件中。
恢复Ruby 1.9.2-p290暂时为我解决了这个问题。