第一次运行Fatal error: require_once找不到文件

su

环境centos7.4,php5.4环境检测通过,但是运行报错
如下:

# php start.php start -d
PHP Warning:  require_once(/root/workerman-todpole/vendor/autoload.php): failed to open stream: No such file or directory in /root/workerman-todpole/start.php on line 29

Warning: require_once(/root/workerman-todpole/vendor/autoload.php): failed to open stream: No such file or directory in /root/workerman-todpole/start.php on line 29
PHP Fatal error:  require_once(): Failed opening required '/root/workerman-todpole/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /root/workerman-todpole/start.php on line 29

Fatal error: require_once(): Failed opening required '/root/workerman-todpole/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /root/workerman-todpole/start.php on line 29
# php -v
PHP 5.4.16 (cli) (built: Apr 12 2018 19:02:01) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
# curl -Ss http://www.workerman.net/check.php | php
PHP Version >= 5.3.3                   
Extension pcntl check                  
Extension posix check                  

下载的是已经完成的程序,没有动任何文件>

6859 2 0
2个回答

walkor 打赏

看下下载项目中的readme

  • su 2018-07-04

    我看了下我git下来的,好像没有vendor这个目录饿?

rexana3

你要先安装composer,再用composer下载这个包,然后就有vendor这个文件夹了

  • 暂无评论
年代过于久远,无法发表回答
×
🔝