0

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を実行してvagrantプロジェクトを実行します(私は推測します)、これは失敗する場所です:

    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で実行しています。私は一日中答えを探していました。誰かがこれに光を当ててくれませんか?

4

1 に答える 1

0

どうやら、私はこれらのコマンドを昇格したシェルから実行する必要がありました(たとえば、[コマンドプロンプト]-> [管理者として実行]を右クリックします)。Cannot create symlink, error code(1314)私が集中すべきだったのです。コマンドが実行されました。その他の問題が発生しました。つまり、Windowsパスが適切にエスケープされていませんでした。しかし、それは問題外です。

編集:この問題を投稿した時点では、Aegir-upはWindowsではサポートされていませんでした。そのため、私はそれらを実行しようとして多くの問題を抱えていました。

于 2012-11-03T17:18:08.967 に答える