php-5.2.6安装,php5.2.6安装openssl.o扩展,make时报错?
问题:
调试支付宝支付时报错:Fatal error: Call to undefined function openssl_get_privatekey()`
在网上查了 说是没有安装openssl.so扩展。
通过 phpize安装扩展,但是make时报错:
/bin/sh /opt/php-5.2.6/ext/openssl/libtool --mode=compile gcc -I. -I/opt/php-5.2.6/ext/openssl -DPHP_ATOM_INC -I/opt/php-5.2.6/ext/openssl/include -I/opt/php-5.2.6/ext/openssl/main -I/opt/php-5.2.6/ext/openssl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/php-5.2.6/ext/openssl/openssl.c -o openssl.lo
mkdir .libs
gcc -I. -I/opt/php-5.2.6/ext/openssl -DPHP_ATOM_INC -I/opt/php-5.2.6/ext/openssl/include -I/opt/php-5.2.6/ext/openssl/main -I/opt/php-5.2.6/ext/openssl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/php-5.2.6/ext/openssl/openssl.c -fPIC -DPIC -o .libs/openssl.o
/opt/php-5.2.6/ext/openssl/openssl.c:229: error: expected specifier-qualifier-list before 'LHASH'
/opt/php-5.2.6/ext/openssl/openssl.c:410: error: expected declaration specifiers or '...' before 'LHASH'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_config_check_syntax':
/opt/php-5.2.6/ext/openssl/openssl.c:416: error: 'config' undeclared (first use in this function)
/opt/php-5.2.6/ext/openssl/openssl.c:416: error: (Each undeclared identifier is reported only once
/opt/php-5.2.6/ext/openssl/openssl.c:416: error: for each function it appears in.)
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'add_oid_section':
/opt/php-5.2.6/ext/openssl/openssl.c:435: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:439: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_parse_config':
/opt/php-5.2.6/ext/openssl/openssl.c:485: error: 'struct php_x509_request' has no member named 'config_filename'
/opt/php-5.2.6/ext/openssl/openssl.c:485: error: 'struct php_x509_request' has no member named 'config_filename'
/opt/php-5.2.6/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:486: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:487: error: 'struct php_x509_request' has no member named 'global_config'
/opt/php-5.2.6/ext/openssl/openssl.c:488: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:488: error: 'struct php_x509_request' has no member named 'config_filename'
/opt/php-5.2.6/ext/openssl/openssl.c:490: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:495: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:506: error: 'struct php_x509_request' has no member named 'digest_name'
/opt/php-5.2.6/ext/openssl/openssl.c:506: error: 'struct php_x509_request' has no member named 'digest_name'
/opt/php-5.2.6/ext/openssl/openssl.c:506: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:506: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:508: error: 'struct php_x509_request' has no member named 'extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:508: error: 'struct php_x509_request' has no member named 'extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:508: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:508: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:510: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:510: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:510: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:510: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:512: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/opt/php-5.2.6/ext/openssl/openssl.c:512: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/opt/php-5.2.6/ext/openssl/openssl.c:512: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:512: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:515: error: 'struct php_x509_request' has no member named 'priv_key_type'
/opt/php-5.2.6/ext/openssl/openssl.c:515: error: 'struct php_x509_request' has no member named 'priv_key_type'
/opt/php-5.2.6/ext/openssl/openssl.c:518: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/opt/php-5.2.6/ext/openssl/openssl.c:520: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:520: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:522: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:522: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:525: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/opt/php-5.2.6/ext/openssl/openssl.c:527: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/opt/php-5.2.6/ext/openssl/openssl.c:532: error: 'struct php_x509_request' has no member named 'digest_name'
/opt/php-5.2.6/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'digest_name'
/opt/php-5.2.6/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:533: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:535: error: 'struct php_x509_request' has no member named 'digest_name'
/opt/php-5.2.6/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'digest'
/opt/php-5.2.6/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'md_alg'
/opt/php-5.2.6/ext/openssl/openssl.c:536: error: 'struct php_x509_request' has no member named 'digest_name'
/opt/php-5.2.6/ext/openssl/openssl.c:538: error: 'struct php_x509_request' has no member named 'md_alg'
/opt/php-5.2.6/ext/openssl/openssl.c:539: error: 'struct php_x509_request' has no member named 'md_alg'
/opt/php-5.2.6/ext/openssl/openssl.c:539: error: 'struct php_x509_request' has no member named 'digest'
/opt/php-5.2.6/ext/openssl/openssl.c:542: error: 'struct php_x509_request' has no member named 'extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:542: error: 'struct php_x509_request' has no member named 'config_filename'
/opt/php-5.2.6/ext/openssl/openssl.c:542: error: 'struct php_x509_request' has no member named 'extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:542: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:542: error: too many arguments to function 'php_openssl_config_check_syntax'
/opt/php-5.2.6/ext/openssl/openssl.c:545: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:545: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:551: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:551: error: 'struct php_x509_request' has no member named 'config_filename'
/opt/php-5.2.6/ext/openssl/openssl.c:551: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:551: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:551: error: too many arguments to function 'php_openssl_config_check_syntax'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_dispose_config':
/opt/php-5.2.6/ext/openssl/openssl.c:559: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:560: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:561: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:563: error: 'struct php_x509_request' has no member named 'global_config'
/opt/php-5.2.6/ext/openssl/openssl.c:564: error: 'struct php_x509_request' has no member named 'global_config'
/opt/php-5.2.6/ext/openssl/openssl.c:565: error: 'struct php_x509_request' has no member named 'global_config'
/opt/php-5.2.6/ext/openssl/openssl.c:567: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:568: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:569: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_x509_from_zval':
/opt/php-5.2.6/ext/openssl/openssl.c:862: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type
/usr/include/openssl/pem.h:417: note: expected 'void * (*)(void **, const unsigned char **, long int)' but argument is of type 'char * (*)()'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_make_REQ':
/opt/php-5.2.6/ext/openssl/openssl.c:1673: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:1673: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:1677: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:1681: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:1681: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:1685: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:1816: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_csr_sign':
/opt/php-5.2.6/ext/openssl/openssl.c:2044: error: 'struct php_x509_request' has no member named 'extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:2048: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:2049: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:2049: error: 'struct php_x509_request' has no member named 'extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:2055: error: 'struct php_x509_request' has no member named 'digest'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_csr_new':
/opt/php-5.2.6/ext/openssl/openssl.c:2110: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2111: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2115: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2118: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2127: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:2130: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:2130: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:2131: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:2133: error: 'struct php_x509_request' has no member named 'request_extensions_section'
/opt/php-5.2.6/ext/openssl/openssl.c:2137: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2137: error: 'struct php_x509_request' has no member named 'digest'
/opt/php-5.2.6/ext/openssl/openssl.c:2147: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2148: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2150: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2157: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_generate_private_key':
/opt/php-5.2.6/ext/openssl/openssl.c:2406: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/opt/php-5.2.6/ext/openssl/openssl.c:2408: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/opt/php-5.2.6/ext/openssl/openssl.c:2412: error: 'struct php_x509_request' has no member named 'req_config'
/opt/php-5.2.6/ext/openssl/openssl.c:2412: error: 'struct php_x509_request' has no member named 'section_name'
/opt/php-5.2.6/ext/openssl/openssl.c:2415: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2416: error: 'struct php_x509_request' has no member named 'priv_key_type'
/opt/php-5.2.6/ext/openssl/openssl.c:2418: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2418: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/opt/php-5.2.6/ext/openssl/openssl.c:2419: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2425: error: 'struct php_x509_request' has no member named 'priv_key_bits'
/opt/php-5.2.6/ext/openssl/openssl.c:2429: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2430: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2447: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2448: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_new':
/opt/php-5.2.6/ext/openssl/openssl.c:2521: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c:2523: error: 'struct php_x509_request' has no member named 'priv_key'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file':
/opt/php-5.2.6/ext/openssl/openssl.c:2564: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
/opt/php-5.2.6/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export':
/opt/php-5.2.6/ext/openssl/openssl.c:2615: error: 'struct php_x509_request' has no member named 'priv_key_encrypt'
make: *** [openssl.lo] Error 1
在网上查了好久,基本没有给出解决办法,就是让重新安装一个PHP。
有没有其它的不安装PHP的方法。
php-5.2.6安装,php5.2.6安装openssl.o扩展,make时报错?相关推荐
- 11.10/11.11/11.12 安装PHP5 11.13 安装PHP7
2019独角兽企业重金招聘Python工程师标准>>> 11.10/11.11/11.12 安装PHP5 PHP官网www.php.net 当前主流版本为5.6/7.1 安装前请安装 ...
- php5.6怎么安装,php5.6的安装
PHP官网:www.php.net 当前主流版本为5.6/7.1 安装php之前必须先安装好mysql和Apache 下载与解压 cd /usr/local/src/ wget http://cn2. ...
- suse 安装php5.4_SUSE LINUX 安装Apache2 + PHP5 (普通安装,不是yum)
1.安装JPEG6 jpegsrc.v6b.tar.gz # mkdir -p /usr/local/services/jpeg6 # mkdir -p /usr/local/services/jpe ...
- 宝塔无法安装php5,宝塔无法安装phpmyadmin怎么办
宝塔无法安装phpmyadmin? 在Linux系统里装上宝塔面板,安装phpmyadmin管理数据库的时候,发现phpmyadmin安装不了,试过很多方法,找了官网论坛都没有解决方案,百度上有人提出 ...
- 部署安装kubernetes client-python,执行pip install setup.py时报错
之前在本地安装过kubernetes的python库,安装下来一切正常,但今天换到测试机器上去部署,确保错了,具体步骤如下. 第一步,克隆代码,执行以下命令: # git clone --rec ...
- ambari hdfs 启动报错_Ambari 1.6 自动安装hadoop 2.2.0 在Ambari启动namenode时报错
展开全部 lib/ambari-agent/data/, ',587 - Modifying group nobody 2015-03-11 09;cache/:34:49;python2: Fals ...
- mac php5.6.30与php7共存,认识Homebrew以及在Mac上同时安装PHP5及PHP7
Homebrew几乎是Mac上必备的软件,用于下载安装和管理其他软件.尤其对于程序员,讲真,本人到现在仍然不知道在Mac上如何不借助Homebrew来搭建php-apache-mysql开发环境. 认 ...
- 安装PHP5,安装PHP7
笔记内容: 11.10/11.11/11.12 安装PHP5 11.13 安装PHP7 笔记日期:2017.9.28 11.10/11.11/11.12 安装PHP5 PHP主流版本是5.x/7.x, ...
- php5.6 php intl怎么安装,php5.6安装peb扩展
系统 centos6.8 准备工作 1.安装php5.6 2.安装erlang 步骤tar -xzvf peb-0.20b.tar.gz cd peb_release /usr/bin/phpize ...
最新文章
- python 数据分析学什么-python数据分析学什么?python数据分析入门
- 鸟哥的Linux私房菜(基础篇)-第四章、安装 CentOS 5.x 与多重开机小技巧
- index.html图片弹窗,原生javascript实现图片弹窗交互效果
- PHP 的魔术方法及其应用
- c语言串的存储操作完整,c语言中关于串的相关知识以及操作
- linux修改登录密码门,Linux更改用户密码
- 华云数据收购国际超融合软件厂商Maxta全部资产
- dlan android手机,电脑与手机远程互通八款DLNA安卓手机推荐
- 因Win10商店引起的卡死问题与解决方法
- 计算机通信技术【计算机网络】学习
- 机器人基础原理1_2——机器人分类与常见坐标系
- 中国大学慕课python答案 北京理工大学_中国大学MOOC慕课_Python语言程序设计_慕课答案...
- android studio jni.h 红色报错
- Spring Admin 入门
- 为什么许多计算机相关书籍都以动物做封面?
- t480s控制面板打开触摸板_ThinkPad T480s 用户指南V4.0--更换键盘部分
- 从史前到现在 三百八十年 计算机编年史(转)
- redis介绍命令性能数据及监控缓存穿透
- Kafka的ISR收缩机制
- spring boot 2.0.3.RELEASE 整合 shiro bug 记录
热门文章
- php如何禁用浏览器的缓存,php如何禁止浏览器使用缓存页面
- centos 远程安装java程序_centos7远程服务器中redis的安装与java连接
- rmi远程代码执行漏洞_fastjson远程代码执行漏洞复现
- python 对象锁_也许你对 Python GIL 锁的理解是 错的。
- c php乱码,php分割GBK中文乱码的解决方法
- doctrine find的对象转换成数组_「ES6基础」Array数组的新方法(上)
- NOIP模拟测试13「矩阵游戏·跳房子·优美序列」
- python学习笔记(10)--组合数据类型(序列类型)
- 【Egret】Wing3发布移动APP功能,打包APK流程以及会遇到的问题
- 《你的灯亮着吗》读后感1