我工作的公司已经决定在灯的设置中拥抱"Vagrant“。因为我是第一个接触团队之间的代码库的人,所以我选择了设置"Vagrantfile“。我已经回家了,在那里我也使用了Windows,并且可以重新创建错误。
从这里开始:
: command not foundnt/puphpet/shell/os-detect.sh: line 2:我有一连串的问题:
: command not foundnt/puphpet/shell/os-detect.sh: line 9:
'=> default: grep: invalid option -- '
==> default: Usage: grep [OPTION]... PATTERN [FILE]...
==> default: Try grep --help' for more information. ==> default: /vagrant/puphpet/shell/os-detect.sh: line 15: syntax error near unexpected tokenelif'
'=> default: /vagrant/puphpet/shell/os-detect.sh: line 15: elif [ -f '/etc/redhat-release' ]; then : command not foundnt/puphpet/shell/os-detect.sh: line 2: : command not foundnt/puphpet/shell/os-detect.sh: line 9: '=> default: grep: invalid option -- ' ==> default: Usage: grep [OPTION]... PATTERN [FILE]... ==> default: Trygrep --help' for more information.
==> default: /vagrant/puphpet/shell/os-detect.sh: line 15: syntax error near unexpected token elif' '=> default: /vagrant/puphpet/shell/os-detect.sh: line 15:elif [ -f '/etc/redhat-release' ]; then
: command not foundnt/puphpet/shell/os-detect.sh: line 2:
: command not foundnt/puphpet/shell/os-detect.sh: line 9:
'=> default: grep: invalid option -- '
==> default: Usage: grep [OPTION]... PATTERN [FILE]...
==> default: Try grep --help' for more information. ==> default: /vagrant/puphpet/shell/os-detect.sh: line 15: syntax error near unexpected tokenelif'
'=> default: /vagrant/puphpet/shell/os-detect.sh: line 15: `elif [ -f '/etc/redhat-release' ]; then我确信这是OSX和Windows之间的字符问题,但我无法检测到这个问题。
发布于 2015-03-12 03:42:38
这个问题根本与Vagrant或PuPHPet无关,这就是为什么我无法从Vagrant或VM中拉出错误的原因。问题出在我的网关,它正在节流来自VM的连接,因此它不是“出错”,而是从"yum“非常非常慢地下载包。
https://stackoverflow.com/questions/28970331
复制相似问题