lnmp1.7 php7.3升级php7.4失败
php7.3内版本升级正常,升级7.4失败centos 8吗?是从centos 7升级过来的吗?
/usr/local/freetype/bin/freetype-config --ftversion 看一下 licess 发表于 2020-10-22 10:48
centos 8吗?是从centos 7升级过来的吗?
/usr/local/freetype/bin/freetype-config --ftversion 看一下 ...
2.7.0
centos 8 不是升级的 moyin 发表于 2020-10-22 11:14
2.7.0
centos 8 不是升级的
什么时候安装的lnmp 1.7?原生centos 8的话是会安装2.10.1的freetype的,/root/lnmp-install.log 还在吗?还在的话按反馈必读要求传到指定网盘上
wget http://soft.vpser.net/lib/freetype/freetype-2.10.1.tar.xz
tar xf freetype-2.10.1.tar.xz && cd freetype-2.10.1
./configure --prefix=/usr/local/freetype --enable-freetype-config
make && make install
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
ldconfig
这样安装一下新版的freetype试一下 licess 发表于 2020-10-22 16:15
什么时候安装的lnmp 1.7?原生centos 8的话是会安装2.10.1的freetype的,/root/lnmp-install.log 还在吗 ...
tar zxf freetype-2.10.1.tar.xz && cd freetype-2.10.1
这个解压命令用不了
tar xvJf freetype-2.10.1.tar.xz && cd freetype-2.10.1
安装完2.10.1
用/usr/local/freetype/bin/freetype-config --ftversion
查看了一下 不显示版本号了
显示如下
# /usr/local/freetype/bin/freetype-config --ftversion
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression
grep: /freetype2/freetype/freetype.h: No such file or directory
grep: /freetype2/freetype/freetype.h: No such file or directory
grep: /freetype2/freetype/freetype.h: No such file or directory
..
lnmp 1.75月份安装的,升级7.4前 我又重新下载了最新版的lnmp 1.7升级的php7.4
# rpm -qa | grep freetype
freetype-2.9.1-4.el8.x86_64
# cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)
moyin 发表于 2020-10-22 16:49
tar zxf freetype-2.10.1.tar.xz && cd freetype-2.10.1
这个解压命令用不了
tar xvJf freetype-2.10.1.t ...
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/ licess 发表于 2020-10-22 20:08
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
最后带/无法创建
cp: 无法创建普通文件'/usr/lib/pkgconfig/': 不是目录
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig
这样可以
创建完 运行/usr/local/freetype/bin/freetype-config --ftversion
还是
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'virtual:world', not found
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression
grep: /freetype2/freetype/freetype.h: No such file or directory
grep: /freetype2/freetype/freetype.h: No such file or directory
grep: /freetype2/freetype/freetype.h: No such file or directory
..
补充内容 (2020-10-22 20:59):
手动在/usr/lib目录下创建pkgconfig
然后运行cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
freetype2.pc复制过去了
补充内容 (2020-10-22 21:00):
创建完 运行/usr/local/freetype/bin/freetype-config --ftversion
还是上面的提示 moyin 发表于 2020-10-22 20:35
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
最后带/无法创建
cp: 无法创 ...
没 /usr/lib/pkgconfig/ 这个目录就换 /usr/lib64/pkgconfig/
页:
[1]