Drush has Error on windows

来源:互联网 发布:图论及其算法 编辑:程序博客网 时间:2024/05/18 02:17

安装很成功,按https://www.drupal.org/node/594744这里的介绍安装的。


Here are the complete steps you need to take:

  1. Install Cygwin
    1. Install ncurses package. You need to select ncurses manually in cygwin setup. If you miss to install this you will get an error message that tput is missing.
    2. Install Git package
    3. Install bsdtar package or you cannot restore archives and get errors likeUnable to untar and Unable to extract site archive tarball.
    4. Install Curl package or you cannot disable modules.
  2. Now install Composer for Windows globally.
  3. Install Drush the common way. e.g. Drush 7.x (stable):
    composer global require drush/drush:7.*

NOTE: Drush cannot run with GnuWin32 as it has no sh.exe support.


但后面使用Drush时报错:

Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: Call to undefined function ctype_alnum() in
/cygdrive/c/Users/ewendeng/AppData/Roaming/Composer/vendor/drush/drush/includes/command.inc


PHP Fatal error:  Call to undefined function ctype_alnum() in /cygdrive/Composer/vendor/drush/drush/includes/command.inc on line 921


晕了,也找了百度,真什么都没有。后面找Google,也太妈的什么都没有呀,只有一个跟我类似的问题的,但没有人回答他的。

http://codegur.com/33388791/call-to-undefined-function-ctype-alnum-on-win-7-with-php-v5-5-12


再他的页面中提到官网上还有另一个安装说明:

https://www.drupal.org/node/1432756


不说了,再去看看重做一次去。


安装Cygwin的时候安装好的Lib就成功了。


0 0
原创粉丝点击