Problem in drush configuration with wamp server 64 bit I am trying to enable drush for wamp server 64 bit.

I have configured all things with youtube videos and it seems it must be ok but when I run drush via cmd console, I see this error message :

PHP Warning:  PHP Startup: Unable to load dynamic library './php_gd2.dll' - The
specified module could not be found.

My operating system is windows 7 64 bit. so I have installed Wamp server 64 bit version. PHP version is 5.5.12 and apache version is 2.4.9

I don't know what is the reason of this problem. I checked my php.ini
extension path is ok. also I can see "php_gd2.dll" file inside extension folder.

so why I see this error that says specified module could not be found?
PHP for Apache and CLI have different configuration files, so check if you're using the right one.

To identify which php.ini is used by drush, run drush status:

$ drush status 
PHP executable         :  /path/to/bin/php                         
PHP configuration      :  /path/to/php.ini


then edit that file and check if you've the right extensions specified.

Alternatively check using php command, for example:

$ php -i | grep php.ini


Note: In case grep command is not found, replace with the with find.

If you still have a problem, possibly that your DLL library was compiled for the wrong version of PHP. So either use the one included with WAMP, or download the right one specifically for that version of PHP.

Also double check that your command-line php points to the right place (WAMP folder):

$ where php
$ which php


which should give you C:\WAMP\PHP\bin-like path, if it's not, update your system PATH variable in advaned system settings.

Finally to check if your GD2 library is loaded, check by:

php -r "phpinfo();" | grep gd2


Note: The grep can be replaced with find on Windows if you don't have Linux command utilities installed.