AURからPHP 5.6.37をインストールするときのfreetype2設定エラーの確認

AURからPHP 5.6.37をインストールするときのfreetype2設定エラーの確認

PHPバージョン5.6.37をインストールしようとしています。尿素尿の割合コマンドを使用しましたが、makepkg -i「freetype2」を確認した瞬間にエラーが表示されます。

freetype2...config 確認中: エラー: freetype-config が見つかりません。

7.2がインストールされていますが、以前のプロジェクトには5.6が必要で、Ubuntuと同様に両方のバージョンをインストールする予定です。

makepkg -i
==> Making package: php56 5.6.37-1 (Wed 12 Sep 2018 12:27:39 PM +08)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found php-5.6.37.tar.xz
  -> Found php-5.6.37.tar.xz.asc
  -> Found php.ini.patch
  -> Found apache.conf
  -> Found php-fpm.conf.in.patch
  -> Found logrotate.d.php-fpm
  -> Found php-fpm.service
  -> Found php-fpm.tmpfiles
  -> Found use-enchant2.patch
  -> Found php-freetype-2.9.1.patch
==> Validating source files with sha512sums...

[...]

checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
checking for pkg-config... (cached) no
checking for freetype2... configure: error: freetype-config not found.
==> ERROR: A failure occurred in build().
    Aborting...

Pacmanをインストールしてもfreetype2問題は解決しませんでした。

ベストアンサー1

修正しました。

まずインストールしてpkg-config から、PKGBUILDで次の行を置き換えました。

--with-freetype-dir=/usr \

到着

--with-freetype-dir=/usr/include/freetype \ 

どちらが問題を解決するのか、それとも両方を解決するのかはわかりません。

おすすめ記事