我正在尝试使用Aegir-up (基于Vagrant的Aegir虚拟机)来建立一个合适的Drupal开发环境。我将说明如何遵循以下“快速入门”步骤并失败:
安装依赖项,包括drush-vagrant和drush-hosts:
C:\Users\Domas>drush dl drush-vagrant drush-hosts
Install location C:\Users\Domas/.drush/drush-vagrant already exists. Do you want to overwr
ite it? (y/n): y
Project drush-vagrant (7.x-2.0-beta6) downloaded to [success]
C:\Users\Domas/.drush/drush-vagrant.
Project drush-vagrant contains 0 modules: .
Install location C:\Users\Domas/.drush/drush-hosts already exists. Do you want to overwrit
e it? (y/n): y
Project drush-hosts (7.x-1.1) downloaded to C:\Users\Domas/.drush/drush-hosts. [success]
Project drush-hosts contains 0 modules: .我不知道“包含0个模块”是否重要。我尝试安装aegir-up:
C:\Users\Domas>drush dl aegir-up
Install location C:\Users\Domas/.drush/aegir-up already exists. Do you want to overwrite i
t? (y/n): y
Project aegir-up (7.x-2.0-alpha1) downloaded to C:\Users\Domas/.drush/aegir-up. [success]
Project aegir-up contains 0 modules: .最后,我运行vagrant-build来运行一个流浪项目(我假设),这就是它失败的地方:
C:\Users\Domas>drush vagrant-build --blueprint=aegir
The name of your project may be used in URLs, and so should only contain lower-case letter
s and numbers.
It may also contain hyphens (-) and dots (.), so long as they do not come at the beginning
or end of the name.
What would you like to call your project?: test
Would you like to generate entries in /etc/hosts for the VMs in your project? (y/n): y
You are about to:
* Create a new project called "test" at "C:\Users\Domas/vagrant/projects/test".
* Add entries for the FQDNs of the VMs to /etc/hosts. (You will be prompted for your sud
o password.)
* Generate Drush aliases for the project and VMs.
* Launch the project VMs immediately.
* Build the project using the "aegir" blueprint from the "aegirup" extension.
Do you want to proceed with initializing the project? (y/n): y
Copied the "aegir" blueprint directory to C:\Users\Domas/vagrant/projects/test. [ok]
'egrep' is not recognized as an internal or external command,
operable program or batch file.
symlink(): Cannot create symlink, error code(1314) vagrant.blueprints.inc:90 [warning]
Errors occurred when running "symlink()" in [error]
"vagrant_default_build_project_setup".
Drush command terminated abnormally due to an unrecoverable error. [error]起初,我认为,只是缺少了Egrep,我下载了UnxUtils,将其添加到PATH中,并检查了Egrep是否从命令提示符运行,它确实运行了。然而,在重做了aegir-up设置步骤之后,我仍然得到了同样的错误。
我对这些工具中的任何一个都不太熟悉。我已经安装了VirtualBox,Vagrant,Drush和NFS服务器,Ruby,gem。在Win8上运行。我一整天都在寻找答案。有人能解释一下这件事吗?
发布于 2012-11-04 01:18:09
显然,我需要通过提升的shell运行这些命令(如中所示,右键单击命令提示符->以管理员身份运行)。Cannot create symlink, error code(1314)才是我应该关注的。命令运行。出现了其他问题,即Windows路径没有正确转义;然而,这是毫无疑问的。
编辑:在发布这个问题的时候,Windows还不支持Aegir-up,这很简单。这就是为什么我尝试在它们上运行它时遇到了许多问题。
https://stackoverflow.com/questions/13208727
复制相似问题