PHP Composer不会使用php 5.6安装Drush:phpunit / phpunit 4.8.x需要ext-dom

docker 安装composer来搭建laravel环境的问题 1.用docker 创建php:8.0-fpm镜像的容器,在用apt-get install composer的时候会报错,提示php有些扩展没有打开。所以最好别用php-fpm景象的容器,用没有装过php的镜像容器,用apt安装composer 估计会自动安装依赖php。不过这样的话php版本就不受自己控制了。(安装了composer之后别忘了改成国内镜像,要不然会比价慢)... 阅读详情

so I'm working on CentOs 7 and I have been attempting to create a working Drupal Composer template (https://github.com/drupal-composer/drupal-project) that includes a site-local Drush install (http://docs.drush.org/en/master/install/). For our project we need to use PHP 5.6 and Drupal 8.2. 

Per the instructions above I have done the following on my clean virtualbox install of CentOS: 

Installed git.

Installed php 5.6:

 
  1. rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

  2. rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

  3. yum install php56w php56w-opcache

Now I download composer and install globally:

 
  1. php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

  2. php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

  3. php composer-setup.php

  4. mv composer.phar /usr/local/bin/compose

I can run composer and it seems to work fine.

Now per the instructions from Drupal Composer we can create our drupal project with composer using: 

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction

The project template builds. 

However, my problem is that I cannot run 

composer require drush/drush

or

composer update

because I get these errors: 

 
  1. Your requirements could not be resolved to an installable set of packages.

  2. Problem 1

  3. - phpunit/phpunit 4.8.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.

  4. - phpunit/phpunit 4.8.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  5. - phpunit/phpunit 4.8.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  6. - phpunit/phpunit 4.8.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  7. - phpunit/phpunit 4.8.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  8. - phpunit/phpunit 4.8.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  9. - phpunit/phpunit 4.8.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  10. - phpunit/phpunit 4.8.35 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  11. - phpunit/phpunit 4.8.34 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  12. - phpunit/phpunit 4.8.33 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  13. - phpunit/phpunit 4.8.32 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  14. - phpunit/phpunit 4.8.31 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  15. - phpunit/phpunit 4.8.30 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  16. - phpunit/phpunit 4.8.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  17. - phpunit/phpunit 4.8.29 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  18. - phpunit/phpunit 4.8.28 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  19. - phpunit/phpunit 4.8.27 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  20. - phpunit/phpunit 4.8.26 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  21. - phpunit/phpunit 4.8.25 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  22. - phpunit/phpunit 4.8.24 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  23. - phpunit/phpunit 4.8.23 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  24. - phpunit/phpunit 4.8.22 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  25. - phpunit/phpunit 4.8.21 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  26. - phpunit/phpunit 4.8.20 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  27. - phpunit/phpunit 4.8.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  28. - phpunit/phpunit 4.8.19 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  29. - phpunit/phpunit 4.8.18 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  30. - phpunit/phpunit 4.8.17 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  31. - phpunit/phpunit 4.8.16 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  32. - phpunit/phpunit 4.8.15 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  33. - phpunit/phpunit 4.8.14 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  34. - phpunit/phpunit 4.8.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  35. - phpunit/phpunit 4.8.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  36. - phpunit/phpunit 4.8.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  37. - phpunit/phpunit 4.8.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  38. - phpunit/phpunit 4.8.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  39. - phpunit/phpunit 4.8.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.

  40. - Installation request for phpunit/phpunit ~4.8 -> satisfiable by phpunit/phpunit[4.8.0, 4.8.1, 4.8.10, 4.8.11, 4.8.12, 4.8.13, 4.8.14, 4.8.15, 4.8.16, 4.8.17, 4.8.18, 4.8.19, 4.8.2, 4.8.20, 4.8.21, 4.8.22, 4.8.23, 4.8.24, 4.8.25, 4.8.26, 4.8.27, 4.8.28, 4.8.29, 4.8.3, 4.8.30, 4.8.31, 4.8.32, 4.8.33, 4.8.34, 4.8.35, 4.8.4, 4.8.5, 4.8.6, 4.8.7, 4.8.8, 4.8.9, 4.8.x-dev].

  41. To enable extensions, verify that they are enabled in your .ini files:

  42. - /etc/php.ini

  43. - /etc/php.d/bz2.ini

  44. - /etc/php.d/calendar.ini

  45. - /etc/php.d/ctype.ini

  46. - /etc/php.d/curl.ini

  47. - /etc/php.d/exif.ini

  48. - /etc/php.d/fileinfo.ini

  49. - /etc/php.d/ftp.ini

  50. - /etc/php.d/gettext.ini

  51. - /etc/php.d/gmp.ini

  52. - /etc/php.d/iconv.ini

  53. - /etc/php.d/json.ini

  54. - /etc/php.d/opcache.ini

  55. - /etc/php.d/phar.ini

  56. - /etc/php.d/shmop.ini

  57. - /etc/php.d/simplexml.ini

  58. - /etc/php.d/sockets.ini

  59. - /etc/php.d/tokenizer.ini

  60. - /etc/php.d/xml.ini

  61. - /etc/php.d/zip.ini

  62. You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Composer refuses to update. After a few days of googling, I seem to be at a loss. I don't know what exactly I need to change in those files, and I don't see anyone having the same error with their composer downloads (and most posts seem outdated by years). 

Can anyone offer any insight at all as to what I am missing here?

Thank you.

EDIT: Thanks to @Oliver I found out the issue was I needed php-xml which I installed for php5.6 using:

sudo yum install php56w-xml

Extensions can be found in the link in his comment.

Now I am figuring out what to do as I do not see drupal/core or easyrdf listed on that site. My new error is here: 

 
  1. DrupalProject\composer\ScriptHandler::checkComposerVersion

  2. Loading composer repositories with package information

  3. Updating dependencies (including require-dev)

  4. Your requirements could not be resolved to an installable set of packages.

  5. Problem 1

  6. - drupal/core 8.0.0 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  7. - drupal/core 8.0.0-beta10 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  8. - drupal/core 8.0.0-beta11 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  9. - drupal/core 8.0.0-beta12 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  10. - drupal/core 8.0.0-beta13 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  11. - drupal/core 8.0.0-beta14 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  12. - drupal/core 8.0.0-beta15 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  13. - drupal/core 8.0.0-beta16 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  14. - drupal/core 8.0.0-beta6 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  15. - drupal/core 8.0.0-beta7 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  16. - drupal/core 8.0.0-beta8 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  17. - drupal/core 8.0.0-beta9 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  18. - drupal/core 8.0.0-rc1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  19. - drupal/core 8.0.0-rc2 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  20. - drupal/core 8.0.0-rc3 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  21. - drupal/core 8.0.0-rc4 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  22. - drupal/core 8.0.1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  23. - drupal/core 8.0.2 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  24. - drupal/core 8.0.3 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  25. - drupal/core 8.0.4 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  26. - drupal/core 8.0.5 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  27. - drupal/core 8.0.6 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  28. - drupal/core 8.0.x-dev requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  29. - drupal/core 8.1.0 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  30. - drupal/core 8.1.0-beta1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  31. - drupal/core 8.1.0-beta2 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  32. - drupal/core 8.1.0-rc1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  33. - drupal/core 8.1.1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  34. - drupal/core 8.1.10 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  35. - drupal/core 8.1.2 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  36. - drupal/core 8.1.3 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  37. - drupal/core 8.1.4 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  38. - drupal/core 8.1.5 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  39. - drupal/core 8.1.6 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  40. - drupal/core 8.1.7 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  41. - drupal/core 8.1.8 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  42. - drupal/core 8.1.9 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  43. - drupal/core 8.1.x-dev requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  44. - drupal/core 8.2.0 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  45. - drupal/core 8.2.0-beta1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  46. - drupal/core 8.2.0-beta2 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  47. - drupal/core 8.2.0-beta3 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  48. - drupal/core 8.2.0-rc1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  49. - drupal/core 8.2.0-rc2 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  50. - drupal/core 8.2.1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  51. - drupal/core 8.2.2 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  52. - drupal/core 8.2.3 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  53. - drupal/core 8.2.4 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  54. - drupal/core 8.2.5 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  55. - drupal/core 8.2.6 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  56. - drupal/core 8.2.7 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  57. - drupal/core 8.2.x-dev requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  58. - drupal/core 8.3.0-alpha1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  59. - drupal/core 8.3.0-beta1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  60. - drupal/core 8.3.0-rc1 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  61. - drupal/core 8.3.0-rc2 requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  62. - drupal/core 8.3.x-dev requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  63. - drupal/core 8.4.x-dev requires easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.0, 0.9.0-rc.1, 0.9.0-rc.2, 0.9.0-rc.3, 0.9.0-rc.4, 0.9.0-rc.5, 0.9.1, 0.9.x-dev].

  64. - easyrdf/easyrdf 0.9.x-dev requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

  65. - easyrdf/easyrdf 0.9.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

  66. - easyrdf/easyrdf 0.9.0-rc.5 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

  67. - easyrdf/easyrdf 0.9.0-rc.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

  68. - easyrdf/easyrdf 0.9.0-rc.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

  69. - easyrdf/easyrdf 0.9.0-rc.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

  70. - easyrdf/easyrdf 0.9.0-rc.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

  71. - easyrdf/easyrdf 0.9.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

  72. - Installation request for drupal/core ~8.0 -> satisfiable by drupal/core[8.0.0, 8.0.0-beta10, 8.0.0-beta11, 8.0.0-beta12, 8.0.0-beta13, 8.0.0-beta14, 8.0.0-beta15, 8.0.0-beta16, 8.0.0-beta6, 8.0.0-beta7, 8.0.0-beta8, 8.0.0-beta9, 8.0.0-rc1, 8.0.0-rc2, 8.0.0-rc3, 8.0.0-rc4, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.0.x-dev, 8.1.0, 8.1.0-beta1, 8.1.0-beta2, 8.1.0-rc1, 8.1.1, 8.1.10, 8.1.2, 8.1.3, 8.1.4, 8.1.5, 8.1.6, 8.1.7, 8.1.8, 8.1.9, 8.1.x-dev, 8.2.0, 8.2.0-beta1, 8.2.0-beta2, 8.2.0-beta3, 8.2.0-rc1, 8.2.0-rc2, 8.2.1, 8.2.2, 8.2.3, 8.2.4, 8.2.5, 8.2.6, 8.2.7, 8.2.x-dev, 8.3.0-alpha1, 8.3.0-beta1, 8.3.0-rc1, 8.3.0-rc2, 8.3.x-dev, 8.4.x-dev].

  73. To enable extensions, verify that they are enabled in your .ini files:

  74. - /etc/php.ini

  75. - /etc/php.d/bz2.ini

  76. - /etc/php.d/calendar.ini

  77. - /etc/php.d/ctype.ini

  78. - /etc/php.d/curl.ini

  79. - /etc/php.d/dom.ini

  80. - /etc/php.d/exif.ini

  81. - /etc/php.d/fileinfo.ini

  82. - /etc/php.d/ftp.ini

  83. - /etc/php.d/gettext.ini

  84. - /etc/php.d/gmp.ini

  85. - /etc/php.d/iconv.ini

  86. - /etc/php.d/json.ini

  87. - /etc/php.d/opcache.ini

  88. - /etc/php.d/phar.ini

  89. - /etc/php.d/shmop.ini

  90. - /etc/php.d/simplexml.ini

  91. - /etc/php.d/sockets.ini

  92. - /etc/php.d/tokenizer.ini

  93. - /etc/php.d/xml.ini

  94. - /etc/php.d/xml_wddx.ini

  95. - /etc/php.d/xmlreader.ini

  96. - /etc/php.d/xmlwriter.ini

  97. - /etc/php.d/xsl.ini

  98. - /etc/php.d/zip.ini

  99. You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Will post update when if is figured out.

FINAL EDIT: Figured out that easyrdf needs ext-mbstring and ext-pcre. ext-pcre comes installed with the common php package, so all I needed was ext-mbstring:

sudo yum install php56w-mbstring

Now when calling composer update all my dependencies were downloaded! Now I can run vender/bin/drush and the command works, confirming my local install is completed!

单元测试phpunit安装及使用实例 一、配置phpunit 1、到phpunit官网下载相应的版本,我的是php 5.6,选择phpunit 4.8:https://phar.phpunit.de/phpunit-old.phar,并把名字改为 phpunit.phar 2、把phpunit.phar放到项目目录app_api下,然后将项目目录D:\webroot\app_api添加到环境变量,以便直接使用phpunit测试 阅读详情

相关推荐

Brim与ZUI协同安装指南:从下载到流量分析实战

本文提供Brim与ZUI协同安装与实战指南,详细讲解从下载、环境变量配置到流量分析的全流程。通过将PCAP文件转换为ZNG格式,结合直观的Zed查询语言,这套组合能极大提升大型网络数据包的分析效率,是网络安全与运维人员进行高效流量分析的利器。

metal的博客 458

php 编译ext目录下的,解决php编译时ext/dom/node.c报错

编译安装php时出现以下错误:是因为--with-libxml-dir 无法引用到libxml2/root/src/php/ext/dom/node.c: In function 'dom_canonicalization':/root/src/php/ext/dom/node.c:1953: error: dereferencing pointer to incomplete type/root...

weixin_34032649的博客 638

php ext libs,作曲家php - PHP7:安装ext-dom issu

我正在使用PHP7在Ubuntu 16.04服务器上运行laravel 5.4。 试图安装cviebrock/eloquent-sluggable包丢一些错误:pish@let:/home/sherk/ftp/www$ sudo composer require cviebrock/eloquent-sluggableDo not run Composer as root/super user! ...

weixin_29536515的博客 294

合肥工业大学操作系统实验8

依据操作系统课程所介绍的地址映射与内存共享的原理,本实验的目的是深入理解物理内存的分页管理方式。 深入理解操作系统的段、页式内存管理。包括理解段表、二级页表,以及逻辑地址、线性地址、 物理地址的映射过程。编程实现段、页式内存管理上的内存共享,从而深入理解操作系统的内存管理。从而加深对教材上地址映射与内存共享的理解。

Martin-share的博客 1721

【人工智能之深度学习】15. 工业时序预测实战:LSTM与TCN融合的装备故障预警系统设计与实现

摘要:工业装备故障预警是智能制造领域的核心技术之一,其通过分析传感器时序数据实现故障提前预测,可显著降低运维成本并提升设备可靠性。本文针对工业时序数据多源异构、非平稳性、噪声干扰及样本不平衡等挑战,提出一种LSTM与TCN融合的故障预警架构——利用TCN捕捉局部时序特征,结合注意力增强LSTM建模长期依赖关系,通过门控机制实现特征自适应融合。以3MW风电齿轮箱为研究对象,设计包含数据预处理、特征工程、模型训练及部署的完整流程,实验结果表明,该融合模型准确率达94.6%,故障预测提前量较单一模型提升30%以上

专注于人工智能、软件开发、工控自动化、工厂数字化及智能化等领域,希望和大家共同进步! 1441

windows下安装composer,php版本5.6,在git bash中使用composer命令

https://getcomposer.org/download/ 官网直接下载的安装包为2.1.9版本,安装时提示php版本不支持5.6 查看官网文档,Composer 2.1 可能仍支持 PHP 5.3,具体取决于时间线和最终包含的功能,但是最迟在 Composer 2.2 之前,我们将放弃对 PHP 7.1.3 之前的所有版本的支持。 https://www.phpcomposer.com/composer-2-0-is-now-available/ 除了安装包下载,也可以手动下载composer.

hforever99的博客 955

地方政府预算数据抓取:利用Python爬虫获取预算安排、资金分配与支出情况

爬虫是通过模拟浏览器行为,从互联网上自动获取数据的程序。在本案例中,我们将通过爬虫从地方政府的官方网站或预算公开平台抓取各类预算信息。这些信息一般以HTML网页的形式呈现,可以通过爬虫对网页内容进行解析,提取所需的预算数据。Python作为数据抓取的强大工具,凭借其简洁的语法、强大的第三方库(如requestsSelenium等)以及丰富的数据处理能力,成为了开发爬虫应用的首选语言。

2201_76125261的博客 941

php 安装 yii 报错: phpunit/phpunit 4.8.32 requires ext-dom *

php 安装 yii 报错: phpunit/phpunit 4.8.32 requires ext-dom * 我的版本是7.0,以7.0为例演示。 先装这两个拓展试试: sudo apt-get install php7.0-mbstring sudo apt-get install php7.0-xml 如果还不行,升级 php7.0 到7.2试试: 升级版本: $ add-a...

qq_23109825的博客 1164

Xilinx DDR3 MIG IP核设计--汇总导航

快速上手Xilinx DDR3 IP核----汇总篇

孤独的单刀 2万+

Linux iperf 进行跑流测试时,为啥单条流会有速率上不去的问题?

iperf

1042484520@qq.com(邮箱) 3086

PHP中的DOM操作是什么意思?

PHP中的DOM操作指的是使用文档对象模型(Document Object Model)来解析、创建、修改和删除HTML和XML文档中的元素。DOM是一种跨平台和语言独立的接口,允许程序和脚本动态地访问和更新文档的内容、结构和样式。在PHP中,DOM操作主要通过内置的DOM扩展来实现,该扩展提供了一套完整的API,使得开发者可以轻松地对XML和HTML文档进行解析、查询、修改和创建。DOMXPathDOMElement在这个示例中,我们首先加载了一个名为。

破损的天堂鸟博客 952

手游功耗优化:从猜想到硬核实测

功耗本质是“硬件在吃电”,要看电流/功率曲线,而不是只看帧率和温度;定量 = 有数字、有曲线、有对比能说“降了 15%”、“峰值从 7W 降到 5.5W”,而不是“我感觉凉快点”;工具方面:大厂会用外接功率仪 + 手机/芯片厂内部平台;平时也会用 Android/iOS/引擎自带的工具做趋势分析;流程上:选典型机型和场景 → 跑脚本采集 → 对齐 Profiler 数据 → 分析 CPU/GPU/网络谁在吃电;再通过版本对比、画质/帧率组合测试,指导配置和优化。这是一个。

本博客聚焦游戏开发技巧、创业实战心得及大学热门课程干货。这里既有技术深度,也有思维广度,无论你是开发者、创业者还是高校学子,都能在这里找到适合自己的成长之路! 177

php5.6自动加载类,composer 中自动加载函数为何以php5.6做区分

public static function getLoader(){if (null !== self::$loader) {return self::$loader;}spl_autoload_register(array('ComposerAutoloaderInit812e73c32a9b50cd0733a00f38392e8a', 'loadClassLoader'), true, tr...

weixin_42388176的博客 265

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

lnmp(php5.6+)+composer+yii2安装全过程整理

在ubuntu14.02环境下部署php5.6.2,ngnix,mysql,利用composer安装yii2;

sinat_30971257的博客 1545

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

多个php版本的composer使用

一【背景】 1.本地开发公司项目PHP版本是5.6,本地环境是AppServ安装的,compoer之前也已经全局安装过了(指定的php版本也是5.6) 2.想学习laravel。laravel5.6版本要求PHP版本是7.2的。使用composer安装laravel项目提示php5.6版本不可以。 composer create-project laravel/laravel mall -...

mangrandi的专栏 2945

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

Docker容器PHP5.6-fpm环境通过composer安装laravel

一 、构建镜像 点击查看 本博客构建php5.6-fpm环境步骤 https://blog.csdn.net/one312/article/details/104070320 二、用已经构建的镜像创建容器hengda/php5.6-fpm:v1并进入容器内 docker run -it --name hengda-php hengda/php5.6-fpm:v1 ...

one312的专栏 1889

ubuntu20 配置php服务器 laravel5.8

做以下步骤以前,检查阿里云相关端口,及服务器防火墙 1、更新包:apt update 2、安装git 1)apt-get install git 2) 检查是否安装成功:git --version 3) 安装项目:git clone 仓库地址,如果是码云仓库需要配置ssh公钥 3、安装systemctl:服务管理,apt-get install systemctl 4、安装php、php-fpm:api-get install php php-fpm ...

Lisa_Miss的博客 660

多版本PHP部署及composer配置

mac#安装php5.6 brew install php56 #安装php7.1 brew install php71 #安装composer brew install composer此时composer对应的php版本是5.6现在我们有一个项目A是php5.6的,有一个项目B是php7.1的访问项目A要求用的是php5.6版本,访问项目B时要求用的是php7.1#方案一 #查看当前php版本...

qq_19557947的专栏 4860

linux安装composer

条件必须:php>5.6+ ,linux Linux 平台可以使用以下命令来安装: # php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');" # php composer-setup.php All settings correct for using Composer Downloading... Composer (version 1.6.5) successfully ins.

ironceo的博客 108

composer以及laravel 5.6的安装

composer安装: 下载composer:https://docs.phpcomposer.com/00-intro.html#Installation-Windows 打开,选择安装路径,然后选择php目录: composer.png 之后一直点下一步即可 打开windows命令提示符(cmd)输入composer,效果如下则安装成功: success.png lar...

weixin_40988393的博客 554

docker-compose的使用和配置

docker-compse的使用和配置version '1' services: # 配置php5.6 php56: # 构建路径 build:./php/5.6-fpm-alpine # 容器名称 container_name:lnp_php-fpm_56-alpine # 当docker重启后容器自动重启 restart:always

qq_39393201的博客 1308

windows(WAMP 环境下)安装composer,然后使用composer安装Laravel 5.6版本

下载composer 双击Composer-Setup.exe 安装composer 使用国内镜像composer安装Laravel 初始化Laravel项目:两种方法 方法一:使用laravel命令安装 方法二:使用composer命令安装(推荐) 下载composer 官网下载:https://getcomposer.org/download/ ...

Yliku的博客 7104

ubuntu下安装 php xml扩展

sudo apt-get install php7.0-bcmath sudo apt-get install php7.0-bz2 sudo apt-get install php7.0-calendar sudo apt-get install php7.0-ctype sudo apt-get install php7.0-curl sudo apt-get install php7.0-d...

小龙 6454

php7 ext各种扩展安装

两种方法: 第一种不在介绍 太麻烦 第二种方法: php ext目录: 举个栗子:Mysql_PDO cd pdo_mysql  //里面没有configure 的文件,用phpize来扩展模块 /usr/local/php/bin/phpize  yum install autoconf -y //autoconf是一个用于生成可以自动的配置软件源代码包以适应多种UNIX系统的s...

Sunny 5890
上一篇: MySQL 添加索引,删除索引及其用法
下一篇: 关于javascript中全局变量的利与弊,以及解决全局变量污染的方法
firstcode666
博客等级 码龄5年 53粉丝 20原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值