2

首先,我对此很陌生,但我正在尝试使用指南安装开源众筹平台

https://github.com/danielweinmann/catarse/wiki/Pre-Configured-Catarse-Virtual-Box-using-Vagrant-%28Ubuntu-11.10-AMD64%29

我安装了 vagrant 和 virtual box 都很好,包括图像的下载。

问题是当我尝试使用以下命令对其进行初始化时:

vagrant init Ubuntu_11.10_amd64-Catarse-Master

系统响应以下错误:

Tiagos-MacBook-Pro:catarse_vagrant tiagomartins$ vagrant init Ubuntu_11.10_amd64-Catarse-Master
/Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/init.rb:28:in `initialize': Permission denied - /Users/tiagomartins/catarse_vagrant/Vagrantfile (Errno::EACCES)
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/init.rb:28:in `open'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/init.rb:28:in `open'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/init.rb:28:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/cli.rb:42:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/environment.rb:167:in `cli'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/bin/vagrant:43:in `<top (required)>'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:19:in `load'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:19:in `<main>'

我做错了什么以及修复它的最佳方法是什么。

非常感谢!!

蒂亚戈

4

1 回答 1

3

/Users/tiagomartins/catarse_vagrant/Vagrantfile根据错误消息,由于该文件的权限设置,Vagrant 无法访问。

更改文件或父文件夹的权限 ( chmod/ chown) 应该可以解决问题。

于 2012-07-24T10:31:18.850 回答