composer update or composer require xxx
phpunit/phpunit 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
→ sudo apt-get install php7.1-xml
composer update or composer require xxx
→ error- Unable to load dynamic library ....
と表示され、phpinfo から extension_dir を確認し、該当ディレクトリにエラーが表示されているモジュールの xxx.so があるにも関わらずエラーが発生する場合。
Safe solution is to reinstall all php7 related packages.
You can do it by simply entering this command to console:
sudo apt-get install --reinstall `dpkg -l | grep 'ii php7' | awk '{ printf($2" "); next}'`
This solution will keep your configuration unchanged
参考:
php.ini を新しく作成するか聞かれるが keep current verion に。
cloud9 の場合、
error- Unable to load dynamic library ....
エラーを確認できる。