drupal drush를 windows에 설치하는 방법 


을 기본적으로 따른다.

original source : http://drupalistasgroup.com/installing-drush-7-windows-xampp

after much trial and error, I have a method I use to install Drush 7 on Windows. we have tested the following instructions on both Windows 7 and 8 and using both XAMPP and Wamp. If you find any issues, please leave a comment below and we will do our best to upgrade the instructions.

  1. You can install Composer by downloading the Windows Composer installation program, which can be found athttps://getcomposer.org/Composer-Setup.exe. The Composer installation program installs it’s programs into a hidden directory called C:Users[yourusername]AppDataRoamingComposer
  2. After you have installed Composer, please open up a NEW command (cmd) or git bash window and enter the following command:

          composer -V

    If you get a version, woohoo you are up and running!. If you get the error message: 
    sh.exe": composer: command not found in a (git bash windows) or
    'composer' is not recognized as an internal or external command ....(in a Cmd windows)
    Please note: you can NOT use an command or git bash windows that was opened before you did the Composer installation. You must open a new command or git bash window as the Composer installation updates your environmental variables. Windows will only sets the environmental variables when you open a new command or git bash window.

    If the above version command does not work, then something went wrong with the Composer installation. You will need to figure out the issue, resolve it, and re-install.

  3. Once Composer is installed, please enter the following command in your cmd or git bash window: 
    composer global require drush/drush:dev-master
    This command should start the drush installation process. After you run the install, please check the hidden directory AppDataRoamingComposerVendor to see if Drush is there.
  4. Now we need to determine if drush was installed. You can do this by entering the following command in your command or git bash window: 
    drush status
    if drush is installed correctly, you should receive a message something like: 
    PHP executable : php
    PHP configuration : C:Sitesbinphpphp5.5.12php.ini
    Drush version : 7.0-dev
    Drush temp directory : C:/Users/Owner/AppData/Local/Temp
    Drush configuration :
    Drush alias files :

    If you do not get the above message and drush is in the vendor directory of 
    C:/Users/[user name]/AppData/Roaming/Composer/vendor/drush/drush
    then the most likely issue is the environmental variable PATH was not updated. When you check your PATH variable, it should contain that above path. If not, then you will need to manually add the path to your environmental variables.Once you have manually updated your PATH variable, and closed and re-opened your command or git bash window, then please try the drush status command again.
    You should see a message with the version. Yay! You are almost there.
  5. . Now you have to test your Windows set up to see if it has all the stuff drush needs. Using your existing command or git bash window, please change directory to your web site directory and attempt to use drush to download a current version of Drupal. In my case, I do this by entering the following command in my git bash window: 

    cd /c/Sites/www
    drush dl drupal

    If the current version of Drupal is downloaded into the proper directory with all of the appropriate sub-directories, then you are DONE!
  6. If you receive any error message at the command prompt, of if you get a message about wget missing, or if the files were not downloaded correctly, you may need to install some more applications and or libraries.
  7. In order for Drush to work, I had to download a few more things.  I had Drush installed and did drush dl drupal and it wouldn’t save, untar, or do anything. I finally figured out that I needed a few more things:
    1. LibArchive: http://gnuwin32.sourceforge.net/packages/libarchive.htm
    2. GZip: http://gnuwin32.sourceforge.net/packages/gzip.htm
    3. WGet: http://gnuwin32.sourceforge.net/packages/wget.htm
    4. Ninja Girl also suggests: Use bsdtar for tar, it’s as it is more reliable. Please copy the file C:Program FilesGnuWin32binbsdtar.exe to C:Program FilesGnuWin32bintar.exe. Please read http://drupal.org/node/594744 for more details
    5. Ninjagirl also provided another piece of the puzzle with her article Drush on Windows . The default location for these three files will be in C:Program Files (x86)GnuWin32bin. You will need to manually add that path to the environment variable PATH.
    6. Also, please make sure that the drush.bat file was looking for php.exe in the right place.
    7. After I installed XAMPP, Composer, and Drush, the PATH environment variables should include the following paths:
      (Your path may point to different directory depending on how you installed the different programs.)
      C:Ruby193bin;C:UsersadminAppDataRoamingComposervendordrushdrush;C:Program Files (x86)GnuWin32bin;C:xamppphp;C:xamppmysqlbin

Hopefully this will help! I installed, deleted and reinstalled drush 7 about 10 times on my computer to test the above instructions I also installed it on a fresh copy of Windows 7 running XAMPP on a laptop. Other have installed it Windows 8 running Wamp. It went pretty smoothly. It took about 20 minutes.


drush를 이용하는데 필요한 모듈을 다운받고 windows 환경변수에 경로를 입력하여 준다. 

http://vimeo.com/15371661 를 참조한다. (18분 정도부터 참조)