VPS侦探论坛

 找回密码
 注册
查看: 4806|回复: 9

lnmp1.7 php7.3升级php7.4失败

[复制链接]
发表于 2020-10-22 09:27:02 | 显示全部楼层 |阅读模式

php7.3内版本升级正常,升级7.4失败




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-10-22 10:48:06 | 显示全部楼层


centos 8吗?是从centos 7升级过来的吗?
/usr/local/freetype/bin/freetype-config --ftversion 看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-10-22 11:14:59 | 显示全部楼层

licess 发表于 2020-10-22 10:48
centos 8吗?是从centos 7升级过来的吗?
/usr/local/freetype/bin/freetype-config --ftversion 看一下 ...

2.7.0
centos 8 不是升级的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-10-22 16:15:41 | 显示全部楼层



moyin 发表于 2020-10-22 11:14
2.7.0
centos 8 不是升级的

什么时候安装的lnmp 1.7?原生centos 8的话是会安装2.10.1的freetype的,/root/lnmp-install.log 还在吗?还在的话按反馈必读要求传到指定网盘上

  1. wget http://soft.vpser.net/lib/freetype/freetype-2.10.1.tar.xz
  2. tar xf freetype-2.10.1.tar.xz && cd freetype-2.10.1
  3. ./configure --prefix=/usr/local/freetype --enable-freetype-config
  4. make && make install
  5. cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
  6. ldconfig
复制代码

这样安装一下新版的freetype试一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-10-22 16:49:40 | 显示全部楼层

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
查看了一下 不显示版本号了

显示如下
[root@localhost ~]# /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
..

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2020-10-22 16:53:59 | 显示全部楼层

lnmp 1.7  5月份安装的,升级7.4前 我又重新下载了最新版的lnmp 1.7升级的php7.4
 楼主| 发表于 2020-10-22 17:21:33 | 显示全部楼层


[root@localhost ~]# rpm -qa | grep freetype
freetype-2.9.1-4.el8.x86_64
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-10-22 20:08:14 | 显示全部楼层

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/
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-10-22 20:35:00 | 显示全部楼层


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
还是上面的提示

军哥运维代购:http://shop63846532.taobao.com/

发表于 2020-10-23 11:00:05 | 显示全部楼层



moyin 发表于 2020-10-22 20:35
cp /usr/local/freetype/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/
最后带/无法创建
cp: 无法创 ...

没 /usr/lib/pkgconfig/ 这个目录就换 /usr/lib64/pkgconfig/
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 11:08 , Processed in 0.029652 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表