yii2安装报错怎么办
框架(架构)  /  管理员 发布于 8年前   258

yii2安装报错怎么办?
在执行 composer安装yii之后 会出现这样的问题
composer create-project --prefer-dist yiisoft/yii2-app-basic basic- phpunit/phpunit 6.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.- phpunit/phpunit 6.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.- phpunit/phpunit 6.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.- phpunit/phpunit 6.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
或者
这是由于直接安装php7没有安装完整配置出现的问题 执行
首先,你需要安装的扩展模块是:mbstring
安装laravel将依赖该扩展,如果你没有安装该扩展,那么通过composer安装laravel框架,你将无法正常生成laravel框架所依赖的vendor目录。vendor目录以及其下文件是laravel框架正常运行所需的。
第二个要安装的扩展模块是:xml扩展
通过composer安装laravel框架过程中将需要调用ext-dom,若xml扩展未安装,这也会影响我们安装laravel。
以上两个扩展是PHP7版本安装laravel所依赖也是容易被忽略的扩展,当你安装laravel无法正常生成vendor目录时就需要检查mbstring扩展加载情况了。
安装也是简单的:
apt-get install php7.0-mbstring
若提示:phpunit/phpunit 5.0.x requires ext-dom * -> the requested PHP extension dom is missing from your system.
则需要安装xml扩展。
apt-get install php7.0-xml
推荐学习:Yii入门教程
以上就是yii2安装报错怎么办的详细内容,更多请关注其它相关文章!
test1 在
opencode + Oh-my-openagent,我的第一个免费的ai编程智能体管家:Sisyphus中评论 test..122 在
学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..Zita 在
Google AI Studio升级全栈 vibe coding体验,可直接构建带登录和数据库的应用中评论 111222..123 在
Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..原梓番博客 在
在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号
