前提・実現したいこと
Macの環境に php-xml
をインストールしたいです。
本来はyumでやるようなのですが、MacOSのためyumが使えません。
発生している問題・エラーメッセージ
実行したコマンド①
brew install php-xml
エラーメッセージ
Error: No available formula with the name "php-xml" ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... ==> Searching taps on GitHub... Error: No formulae found in taps.
実行したコマンド②
brew search php-xml
エラーメッセージ
No formula or cask found for "php-xml". Closed pull requests: Merge 2019-09-10 1004b57f89 (https://github.com/Homebrew/linuxbrew-core/pull/15455) Make qt support fontconfig on Linux (https://github.com/Homebrew/linuxbrew-core/pull/16216) Update itunes-volume-control from 1.5.2 to 1.5.3 (https://github.com/Homebrew/homebrew-cask/pull/64318) imagemagick: add OpenMP support (https://github.com/Homebrew/homebrew-core/pull/35637) imagemagick: Enable OpenMP support on LLVM Clang. (https://github.com/Homebrew/homebrew-core/pull/35519) Secure URLs (a-b-c) (https://github.com/Homebrew/homebrew-cask/pull/52865) FileBot 4.8.2 (r5724) (https://github.com/Homebrew/homebrew-cask/pull/49803) Secure URLs (https://github.com/Homebrew/homebrew-cask/pull/52975) php: import from homebrew/php (https://github.com/Homebrew/homebrew-core/pull/16067) thrift: fix Java build (https://github.com/Homebrew/homebrew-core/pull/23661) ruby 2.5.0-preview1 (devel) (https://github.com/Homebrew/homebrew-core/pull/19275) phoronix-test-suite 7.4.0 (https://github.com/Homebrew/homebrew-core/pull/18269) wpscan 2.9.2 (new formula) (https://github.com/Homebrew/homebrew-core/pull/15345) Use pecl package for imagick formula (https://github.com/Homebrew/homebrew-php/pull/3977) Update Textexpander to v6.1.2 (https://github.com/Homebrew/homebrew-cask/pull/27641) https (https://github.com/Homebrew/homebrew-core/pull/10276) Add TipTyper.app v2.6.4 (https://github.com/Homebrew/homebrew-cask/pull/20776) orientdb 2.2.2 (https://github.com/Homebrew/homebrew-core/pull/2004) imagemagick: enable fontconfig by default (https://github.com/Homebrew/homebrew-core/pull/3129) Add libpng as a dependency (https://github.com/Homebrew/legacy-homebrew/pull/16785)
最終的なゴール
php-xmlをインストールし、PHPExcelのsaveメソッドで発生する以下エラーの解決としたい。
PHP Fatal error: Class 'XMLWriter' not found in プロジェクトパス/lib/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/XMLWriter.php
補足情報(FW/ツールのバージョンなど)
macOS High Sierra 10.13.6
回答1件
あなたの回答
tips
プレビュー