Drush has Error on windows


安装很成功,按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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值