2016-10-19 179 views
1

環境:未能打開流

  • Linux的薄荷
  • LAMPP
  • PHP 7 CLI
  • 阿帕奇2
  • Laravel 5.3

我執行以下命令:

cd /opt/lampp/htdocs/laravelProject 
php artisan serve 

但我有這樣的警告:

PHP Warning: require(/opt/lampp/htdocs/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/blog/bootstrap/autoload.php on line 17 PHP Fatal error: require(): Failed opening required '/opt/lampp/htdocs/blog/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /opt/lampp/htdocs/blog/bootstrap/autoload.php on line 17

回答

0
sudo chown -R username bootstrap/cache/ 
sudo chown -R dvuz stororage 

試試這個,你可能沒有安裝任何軟件包

$sudo apt-get update 
$ sudo apt-get install php-mbstring 
$ sudo apt-get install libnet-libidn-perl 
$ sudo apt-get install php-all-dev 
$ sudo apt-get install php-cgi 
$ sudo apt-get install php-cli 
$ sudo apt-get install php-common 
$ sudo apt-get install php-curl 
$ sudo apt-get install php-dev 
$ sudo apt-get install php-gd 
$ sudo apt-get install php-gmp 

後執行composer install在您的項目目錄

相關問題