【发布时间】:2019-02-16 15:31:06
【问题描述】:
我正在尝试使用makepkg -i 命令从AUR 安装PHP 5.6.37 版,但是当它到达检查“freetype2”的时刻时,它会显示错误:
检查 freetype2...configure: error: freetype-config not found.
我已经安装了 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 并没有解决它。
【问题讨论】:
标签: archlinux php-5.6 freetype2