我正在尝试使用命令从AUR安装 PHP 版本 5.6.37 makepkg -i,但是当它到达检查“freetype2”的时刻时,它会显示错误:
检查 freetype2...配置:错误:找不到 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...
Run Code Online (Sandbox Code Playgroud)
用 Pacman安装freetype2并没有解决问题。
| 归档时间: |
|
| 查看次数: |
2120 次 |
| 最近记录: |