gpt4 book ai didi

php - 无法打开流

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:23:00 27 4
gpt4 key购买 nike

环境:

  • Linux 薄荷
  • 兰普
  • php 7 客户端
  • Apache 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

最佳答案

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 之后

关于php - 无法打开流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40138424/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com