Laravel 5.1安装错误(php artisan clear-compiled)


Laravel 5.1 installation error (php artisan clear-compiled)

我运行laravel new auth,得到以下错误。如果有帮助的话,我用的是Windows 7。

C:'wamp'www>laravel new auth
Crafting application...
> php -r "copy('.env.example', '.env');"
> php artisan clear-compiled
Fatal error: Call to undefined function Illuminate'Foundation'Bootstrap'mb_inter
nal_encoding() in C:'wamp'www'auth'bootstrap'cache'compiled.php on line 2117
PHP Fatal error:  Call to undefined function Illuminate'Foundation'Bootstrap'mb_
internal_encoding() in C:'wamp'www'auth'bootstrap'cache'compiled.php on line 211
7
Script php artisan clear-compiled handling the post-install-cmd event returned w
ith an error

  [RuntimeException]
  Error Output: PHP Fatal error:  Call to undefined function Illuminate'Found
  ation'Bootstrap'mb_internal_encoding() in C:'wamp'www'auth'bootstrap'cache'
  compiled.php on line 2117

取消php.ini中的以下行注释

;extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
;extension=php_mysql.dll
;extension=php_mysqli.dll

重新启动apache。

Mbstring是创建强散列所必需的

删除C:'wamp'www'auth'bootstrap'cache'这个目录下的所有文件,然后运行

composer install
从终端