我试图在我的本地计算机(Mac OS X El Capitan)上安装 laravel homestead (使用php 7)。我已经安装了vagrant和Virtualbox。
当我按照documentation时,我从命令vagrant box add laravel/homestead
开始。这不会导致任何问题:
以下步骤是:
cd ~
git clone https://github.com/laravel/homestead.git Homestead
这也有效。下一步是:
bash init.sh
此命令应在隐藏目录~/.homestead
中创建 Homestead.yml 。这不会发生!他在~/Homestead
目录....
然后我将〜/ Homestead 文件夹中的 Homestead.yml 编辑为:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/projects
to: /home/vagrant/projects
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
然后我尝试在〜/ Homestead文件夹中运行vagrant up
。但我收到以下错误:
有人可以帮我安装Homestead吗?
答案 0 :(得分:1)
将您的流浪者和虚拟盒更新为最新版本将解决问题。