CentOS 7 使用composer install 报错phpunit/phpunit 4.8.35 requires ext-dom *
来源:互联网 发布:笔记本跑分软件 编辑:程序博客网 时间:2024/06/06 14:05
问题:
[root@localhost laravel_demo]# composer install
Loading composer repositories with package informationInstalling dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit 4.8.35 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.8.35 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit 4.8.35 -> satisfiable by phpunit/phpunit[4.8.35].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
- /etc/php.d/bz2.ini
- /etc/php.d/calendar.ini
- /etc/php.d/ctype.ini
- /etc/php.d/curl.ini
- /etc/php.d/exif.ini
- /etc/php.d/fileinfo.ini
- /etc/php.d/ftp.ini
- /etc/php.d/gd.ini
- /etc/php.d/gettext.ini
- /etc/php.d/gmp.ini
- /etc/php.d/iconv.ini
- /etc/php.d/json.ini
- /etc/php.d/ldap.ini
- /etc/php.d/mbstring.ini
- /etc/php.d/mcrypt.ini
- /etc/php.d/mysqli.ini
- /etc/php.d/pdo.ini
- /etc/php.d/pdo_mysql.ini
- /etc/php.d/pdo_sqlite.ini
- /etc/php.d/phar.ini
- /etc/php.d/shmop.ini
- /etc/php.d/simplexml.ini
- /etc/php.d/sockets.ini
- /etc/php.d/sqlite3.ini
- /etc/php.d/tokenizer.ini
- /etc/php.d/xml.ini
- /etc/php.d/zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
解决:
[root@localhost ~]# yum search php70w 查询可供安装的包
[root@localhost ~]# yum -y install php70w-xml.x86_64
[root@localhost ~]# systemctl restart httpd.service 重启apache
测试:
[root@localhost ~]# systemctl restart httpd.service
[root@localhost ~]# cd /home/www/laravel_demo/
[root@localhost laravel_demo]# composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 0 installs, 2 updates, 0 removals
- Updating symfony/event-dispatcher (v3.2.4 => v3.2.3): Downloading (100%)
- Updating symfony/yaml (v3.2.4 => v3.2.3): Downloading (100%)
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize
Generating optimized class loader
- CentOS 7 使用composer install 报错phpunit/phpunit 4.8.35 requires ext-dom *
- centos - phpunit - install - error
- composer安装phpunit并使用
- composer安装phpunit并使用
- 安装配置PHPUnit+Composer
- Composer和PHPUnit入门
- PHPUnit require_once()报错问题
- PHPunit
- phpunit
- centos linux安装PHPUnit 配置PHPUnit (深入浅出PHPUnit 1)
- centos下安装PHPUnit
- centos安装phpunit
- 【phpunit】phpunit初次安装使用简记
- php install phpunit on ubuntu
- NetBeans 使用phpunit单元测试
- PHPUnit 基本使用
- 使用 PHPUnit 进行测试
- PHPUnit 安装和使用
- 用于HTML5移动开发的10大移动APP开发框架
- Rotate Image
- Android自定义视图
- 210. Course Schedule II
- WWDC2017回顾
- CentOS 7 使用composer install 报错phpunit/phpunit 4.8.35 requires ext-dom *
- Android 内存泄漏整理
- Android线程—Timer类(四)
- qtcpsocket调用write和read函数写数据乱码问题解决方法
- 比较有意思的比较内表的小函数
- AndroidStudio导入项目在 Building gradle project info 一直卡住
- AngularJS最理想开发工具WebStorm(转)
- 网易云信-网易验证码短信,网易通知类短信的使用
- 设置cookie与获取cookie