Aegir-up(Aegir + Vagrant + Drush)设置

时间:2012-11-03 11:28:46

标签: drupal vagrant drush

我正在尝试使用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是否从命令提示符运行。但是,在重做了设置步骤之后,我仍然遇到了同样的错误。

我对这些工具都不是特别熟悉。我安装了VirtualBox,Vagrant,Drush和NFS服务器,Ruby,gem。在Win8上运行。我一整天都在寻找答案。有人可以对此有所了解吗?

1 个答案:

答案 0 :(得分:0)

显然,我需要通过提升的shell运行这些命令(如右键单击命令提示符 - >以管理员身份运行)。 Cannot create symlink, error code(1314)是我应该集中注意力的。命令运行。出现了其他问题,即 - Windows路径没有得到正确的转移;然而,这是不容置疑的。

编辑:在发布此问题的那一刻,Windows上不支持Aegir-up,这很简单。这就是为什么我在尝试运行它时遇到了很多问题。

相关问题