在Windows 10

时间:2016-05-09 17:38:02

标签: vagrant virtual-machine virtualbox

这是我第一次尝试使用流浪汉。我已经下载并安装了虚拟盒和流浪汉,还有一个流浪汉配置文件。 使用this链接指南,我输入了:

$ vagrant init hashicorp/precise64
$ vagrant up

我遇到过这样的事情:

D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/win32/registry.rb:71:in `find': unknown encoding name - CP720 (ArgumentError)
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/win32/registry.rb:71:in `<module:Win32>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/win32/registry.rb:3:in `<top (required)>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/win32/resolv.rb:6:in `<top (required)>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/resolv.rb:169:in `<class:Hosts>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/resolv.rb:166:in `<class:Resolv>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/resolv.rb:36:in `<top (required)>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/remote_fetcher.rb:6:in `<top (required)>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/spec_fetcher.rb:1:in `<top (required)>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/source/rubygems.rb:3:in `<top (required)>'
    from D:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/lockfile_parser.rb:87:in `<class:LockfileParser>'
    from D:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/lockfile_parser.rb:14:in `<module:Bundler>'
    from D:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/lockfile_parser.rb:13:in `<top (required)>'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from D:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/definition.rb:1:in `<top (required)>'
    from D:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler.rb:155:in `definition'
    from D:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler.rb:123:in `setup'
    from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:71:in `<main>'

我在网上找不到任何有用的东西。 任何建议将不胜感激。 我重新启动了我的电脑,并尝试了具有管理权限的git bash。

2 个答案:

答案 0 :(得分:2)

你应该可以运行

$ chcp.com 1252
Active code page: 1252

来自https://github.com/mitchellh/vagrant/issues/6736

答案 1 :(得分:0)

您需要更改Code Page
为此,请使用CHCP命令,如下所示:
$ chcp.com 1252 Active code page: 1252