【待反馈】PHP.8.0 编译安装提示报错恳请大佬解决
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:Linux正式版8.0.5系统版本:PHP 8.0
问题描述:编译安装 PHP 8.0 提示错误
相关截图(日志、错误):错误查看图片
您好,执行下面命令之后再安装php,如果在执行过程中有报错,请截图发出来
yum install -y pcre2-devel 运维技术南一 发表于 2024-3-28 18:01
您好,执行下面命令之后再安装php,如果在执行过程中有报错,请截图发出来
yum install -y pcre2-devel ...
在执行yum install -y pcre2-devel 命令时提示错误
宝塔用户_pgiggz 发表于 2024-3-30 10:31
在执行yum install -y pcre2-devel 命令时提示错误
执行下面几个命令,并把返回信息截图发出来
df -h
df -i
yum reinstall -y pcre2-devel 运维技术南一 发表于 2024-3-30 10:37
执行下面几个命令,并把返回信息截图发出来
df -h
df -i
执行结果如图
宝塔用户_pgiggz 发表于 2024-3-30 11:10
执行结果如图
您好,您这边是什么系统,可以尝试将面板升级到最新版,然后再去安装php,如果对于php版本没有要求,可以尝试安装低版本的php,比较稳定 运维技术南一 发表于 2024-3-30 11:17
您好,您这边是什么系统,可以尝试将面板升级到最新版,然后再去安装php,如果对于php版本没有要求,可以 ...
系统:CentOS 7.9.2009 x86_64(Py3.7.9)
持续运行:17天
Ps:可以尝试将面板升级到最新版
好的 也一样 错误 没搞定呀 本帖最后由 宝塔用户_lbvlat 于 2024-4-28 13:03 编辑
extern wchar_t *wcscpy (wchar_t *__restrict __dest,
^~~~~~
/usr/include/wchar.h:106:21: error: declaration for parameter ‘mbstate_t’ but no such parameter
typedef __mbstate_t mbstate_t;
^~~~~~~~~
In file included from /usr/include/wchar.h:51,
from /www/server/php/80/src/ext/standard/basic_functions.h:22,
from /www/server/php/80/src/ext/standard/md5.h:24,
from /www/server/php/80/src/ext/opcache/ZendAccelerator.c:48:
/opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/include/stddef.h:357:23: error: declaration for parameter ‘wint_t’ but no such parameter
typedef __WINT_TYPE__ wint_t;
^~~~~~
In file included from /www/server/php/80/src/main/php.h:35,
from /www/server/php/80/src/ext/opcache/ZendAccelerator.c:22:
/www/server/php/80/src/Zend/zend_API.h:202:4: error: declaration for parameter ‘zend_pcre_globals’ but no such parameter
} zend_##module_name##_globals;
^~~~~
/www/server/php/80/src/ext/pcre/php_pcre.h:89:1: note: in expansion of macro ‘ZEND_END_MODULE_GLOBALS’
ZEND_END_MODULE_GLOBALS(pcre)
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /www/server/php/80/src/ext/opcache/ZendAccelerator.c:47:
/www/server/php/80/src/ext/pcre/php_pcre.h:48:3: error: declaration for parameter ‘php_pcre_error_code’ but no such parameter
} php_pcre_error_code;
^~~~~~~~~~~~~~~~~~~
/www/server/php/80/src/ext/pcre/php_pcre.h:38:34: error: parameter ‘pcre_cache_entry’ has incomplete type
typedef struct _pcre_cache_entry pcre_cache_entry;
^~~~~~~~~~~~~~~~
/www/server/php/80/src/ext/pcre/php_pcre.h:38:34: error: declaration for parameter ‘pcre_cache_entry’ but no such parameter
In file included from /www/server/php/80/src/ext/opcache/ZendAccelerator.c:47:
/www/server/php/80/src/ext/pcre/php_pcre.h:32:26: error: declaration for parameter ‘pcre_module_entry’ but no such parameter
extern zend_module_entry pcre_module_entry;
^~~~~~~~~~~~~~~~~
页:
[1]