今天我试图使octopress在Windows上运行,并且一切正常,直到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>'
我已经尝试过重新安装gem,以管理员和普通用户身份运行它。尝试在Windows 10下安装octopress时,是否还有其他人遇到相同的问题?
Edit://我发现该错误仅属于命令“ chcp”,而该命令在Windows 10 x64上不可用。有什么方法可以使此命令在Windows 10 x64上运行?
将Windows 10升级到最新版本解决了该问题。