Octopress' rake aborted'期间安装'在Windows 10上

时间:2015-11-04 14:34:12

标签: ruby windows octopress

今天我尝试在Windows上运行octopress,一切正常,直到rake install,因为我收到了这条消息:

C:\octopress>rake install --trace
## Set the codepage to 65001 for Windows machines
rake aborted!
Errno::ENOENT: No such file or directory - chcp 65001
C:/octopress/Rakefile:32:in ``'
C:/octopress/Rakefile:32:in `<top (required)>'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
C:/Ruby21/lib/ruby/gems/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
C:/Ruby21/bin/rake:23:in `load'
C:/Ruby21/bin/rake:23:in `<main>'

我已经尝试重新安装宝石,以管理员身份和普通用户身份运行宝石。尝试在Windows 10下安装octopress时有没有其他人遇到同样的问题?

编辑:// 我发现错误只属于命令&#39; chcp&#39;这在Windows 10 x64上是不可用的。有没有办法让这个命令在Windows 10 x64上运行?

1 个答案:

答案 0 :(得分:0)

将Windows 10升级到最新版本即可解决此问题。

相关问题