热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

php5.2.6安装openssl.o扩展,make时报错?

问题:调试支付宝支付时报错:Fatalerror:Calltoundefinedfunctionopenssl_get_privatekey()`

问题:
调试支付宝支付时报错:Fatal error: Call to undefined function openssl_get_privatekey()`



在网上查了 说是没有安装openssl.so扩展。

通过 phpize安装扩展,但是make时报错:



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/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的方法。


   



推荐阅读
  • 本文介绍了闭包的定义和运转机制,重点解释了闭包如何能够接触外部函数的作用域中的变量。通过词法作用域的查找规则,闭包可以访问外部函数的作用域。同时还提到了闭包的作用和影响。 ... [详细]
  • Spring特性实现接口多类的动态调用详解
    本文详细介绍了如何使用Spring特性实现接口多类的动态调用。通过对Spring IoC容器的基础类BeanFactory和ApplicationContext的介绍,以及getBeansOfType方法的应用,解决了在实际工作中遇到的接口及多个实现类的问题。同时,文章还提到了SPI使用的不便之处,并介绍了借助ApplicationContext实现需求的方法。阅读本文,你将了解到Spring特性的实现原理和实际应用方式。 ... [详细]
  • http:my.oschina.netleejun2005blog136820刚看到群里又有同学在说HTTP协议下的Get请求参数长度是有大小限制的,最大不能超过XX ... [详细]
  • Python正则表达式学习记录及常用方法
    本文记录了学习Python正则表达式的过程,介绍了re模块的常用方法re.search,并解释了rawstring的作用。正则表达式是一种方便检查字符串匹配模式的工具,通过本文的学习可以掌握Python中使用正则表达式的基本方法。 ... [详细]
  • 个人学习使用:谨慎参考1Client类importcom.thoughtworks.gauge.Step;importcom.thoughtworks.gauge.T ... [详细]
  • Html5-Canvas实现简易的抽奖转盘效果
    本文介绍了如何使用Html5和Canvas标签来实现简易的抽奖转盘效果,同时使用了jQueryRotate.js旋转插件。文章中给出了主要的html和css代码,并展示了实现的基本效果。 ... [详细]
  • 解决nginx启动报错epoll_wait() reported that client prematurely closed connection的方法
    本文介绍了解决nginx启动报错epoll_wait() reported that client prematurely closed connection的方法,包括检查location配置是否正确、pass_proxy是否需要加“/”等。同时,还介绍了修改nginx的error.log日志级别为debug,以便查看详细日志信息。 ... [详细]
  • JDK源码学习之HashTable(附带面试题)的学习笔记
    本文介绍了JDK源码学习之HashTable(附带面试题)的学习笔记,包括HashTable的定义、数据类型、与HashMap的关系和区别。文章提供了干货,并附带了其他相关主题的学习笔记。 ... [详细]
  • 本文讨论了如何在codeigniter中识别来自angularjs的请求,并提供了两种方法的代码示例。作者尝试了$this->input->is_ajax_request()和自定义函数is_ajax(),但都没有成功。最后,作者展示了一个ajax请求的示例代码。 ... [详细]
  • 本文介绍了pack布局管理器在Perl/Tk中的使用方法及注意事项。通过调用pack()方法,可以控制部件在显示窗口中的位置和大小。同时,本文还提到了在使用pack布局管理器时,应注意将部件分组以便在水平和垂直方向上进行堆放。此外,还介绍了使用Frame部件或Toplevel部件来组织部件在窗口内的方法。最后,本文强调了在使用pack布局管理器时,应避免在中间切换到grid布局管理器,以免造成混乱。 ... [详细]
  • Oracle seg,V$TEMPSEG_USAGE与Oracle排序的关系及使用方法
    本文介绍了Oracle seg,V$TEMPSEG_USAGE与Oracle排序之间的关系,V$TEMPSEG_USAGE是V_$SORT_USAGE的同义词,通过查询dba_objects和dba_synonyms视图可以了解到它们的详细信息。同时,还探讨了V$TEMPSEG_USAGE的使用方法。 ... [详细]
  • 模板引擎StringTemplate的使用方法和特点
    本文介绍了模板引擎StringTemplate的使用方法和特点,包括强制Model和View的分离、Lazy-Evaluation、Recursive enable等。同时,还介绍了StringTemplate语法中的属性和普通字符的使用方法,并提供了向模板填充属性的示例代码。 ... [详细]
  • Whatsthedifferencebetweento_aandto_ary?to_a和to_ary有什么区别? ... [详细]
  • 本文讨论了在VMWARE5.1的虚拟服务器Windows Server 2008R2上安装oracle 10g客户端时出现的问题,并提供了解决方法。错误日志显示了异常访问违例,通过分析日志中的问题帧,找到了解决问题的线索。文章详细介绍了解决方法,帮助读者顺利安装oracle 10g客户端。 ... [详细]
  • GreenDAO快速入门
    前言之前在自己做项目的时候,用到了GreenDAO数据库,其实对于数据库辅助工具库从OrmLite,到litePal再到GreenDAO,总是在不停的切换,但是没有真正去了解他们的 ... [详细]
author-avatar
珠珠VS胖胖
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有