我在mac OSX 10.12.1上安装了最新的vagrant。
当我尝试运行vagrant box add laravel/homestead
无效时。然后我得到:
$ vagrant box add laravel/homestead
The box 'laravel/homestead' could not be found or could not be accessed in the remote catalog. If this is a private box on HashiCorp's Atlas, please verify you're logged in via "vagrant login". Also, please double-check the name.
展开的网址和错误消息如下所示:
URL: ["https://atlas.hashicorp.com/laravel/homestead"]
Error:
请注意,未列出任何错误,并且未提及SSL问题。
所以我尝试了vagrant box add laravel/homestead
。这是我得到的回应的摘录:
$ vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box --debug
==> box: Adding box 'laravel/homestead' (v0) for provider:
INFO box_add: Downloading box: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box => /Users/brianduggan/.vagrant.d/tmp/boxb899043803582d901582866cb677bf359bdd3a61
INFO interface: detail: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box
INFO interface: detail: box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box
box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box
INFO downloader: Downloader starting download:
INFO downloader: -- Source: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box
INFO downloader: -- Destination: /Users/brianduggan/.vagrant.d/tmp/boxb899043803582d901582866cb677bf359bdd3a61
INFO subprocess: Starting process: ["/opt/vagrant/embedded/bin/curl", "-q", "--fail", "--location", "--max-redirs", "10", "--user-agent", "Vagrant/1.8.7 (+https://www.vagrantup.com; ruby2.2.5)", "--continue-at", "-", "--output", "/Users/brianduggan/.vagrant.d/tmp/boxb899043803582d901582866cb677bf359bdd3a61", "https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box"]
INFO subprocess: Command in the installer. Specifying DYLD_LIBRARY_PATH...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: dyld: Library not loaded: @rpath/libcurl.4.dylib
Referenced from: /opt/vagrant/embedded/bin/curl
Reason: Incompatible library version: curl requires version 9.0.0 or later, but libcurl.4.dylib provides version 7.0.0
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 6
WARN downloader: Downloader exit code: 6
ERROR downloader: Exit code: 6
然后,该过程继续运行恢复过程,最终在流浪下载程序ruby文件行206中再次出错,执行curl'。
我看到的大多数问题都与Windows有关,并且更新了cURL,但是从我所读到的内容来看,在mac上混淆cURL并不是一个好主意,因为其他进程可能正在寻找预先打包的版本。有什么想法吗?
答案 0 :(得分:51)
我找到了答案; https://github.com/mitchellh/vagrant/issues/7969和https://github.com/mitchellh/vagrant/issues/7970。
我只是
sudo rm -rf /opt/vagrant/embedded/bin/curl
,现在就可以了。它看起来像流浪汉可以回到系统的卷曲。
这对我有用。