2012-11-03 85 views
0

我想通過使用Aegir-up(基於Vagrant的Aegir虛擬機)來建立適當的Drupal開發環境。我將說明我是如何遵循下面的「快速啓動」的步驟和故障:Aegir-up(Aegir + Vagrant + Drush)設置

安裝依賴性,包括drush-流浪漢,drush主辦:

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模塊」意義重大。我嘗試安裝埃吉爾行動:

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: . 

最後,我跑無業遊民,構建得到一個無業遊民的項目去(我相信),這是它失敗:

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上運行。我一整天都在尋找答案。請問有人可以解釋一下嗎?

回答

0

顯然,我需要通過提升的shell運行這些命令(如右鍵單擊命令提示符 - >以管理員身份運行)。我應該集中在Cannot create symlink, error code(1314)。命令運行。其他問題出現了,即 - Windows路徑沒有正確逃脫;然而,這是沒有問題的。

編輯:在發佈此問題的時刻在Windows上不支持Aegir-up,很簡單。這就是爲什麼我有很多問題試圖在它們上運行它。