gpt4 book ai didi

archlinux - 在 arch linux 上安装 php5.6 时检查 freetype2 错误

转载 作者:行者123 更新时间:2023-12-01 22:05:16 26 4
gpt4 key购买 nike

我正在尝试从 AUR 安装 PHP 版本 5.6.37|使用 makepkg -i 命令,但是当它到达检查“freetype2”的时刻时,它显示错误:

checking for 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 没有解决问题。

最佳答案

ln -s/usr/bin/pkg-config/usr/bin/freetype-config

在 PKGBUILD 中

--with-freetype-dir=no\

关于archlinux - 在 arch linux 上安装 php5.6 时检查 freetype2 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52287580/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com