我正在尝试使用makepkg -i
命令从AUR安装PHP版本5.6.37,但是到了检查“ 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...
在Pacman上安装freetype2
并不能解决问题。
答案 0 :(得分:0)
ln -s / usr / bin / pkg-config / usr / bin / freetype-config
和PKGBUILD
-with-freetype-dir = no \