当前位置:网站首页>Solutions to errors in installing OpenSSL for CentOS 6.3 x64 PHP 5.2.6 extensions
Solutions to errors in installing OpenSSL for CentOS 6.3 x64 PHP 5.2.6 extensions
2022-06-30 23:25:00 【Brother Xing plays with the clouds】
Previously compiled php No, –with–openssl Now we're going to use openssl ,phpinze Extended installation , But in make Wrong time
I have been looking for this online for a long time today , The final conclusion should be php The problem with the version itself , The error is php After compiling , adopt phpize Add the contents that report errors separately
problem : /usr/local/src/php-5.2.6/ext/openssl/openssl.c:229: error: expected specifier-qualifier-list before ‘LHASH’ /usr/local/src/php-5.2.6/ext/openssl/openssl.c:410: error: expected declaration specifiers or ‘…’ before ‘LHASH’ /usr/local/src/php-5.2.6/ext/openssl/openssl.c: In function ‘php_openssl_config_check_syntax’: /usr/local/src/php-5.2.6/ext/openssl/openssl.c:416: error: ‘config’ undeclared (first use in this function) /usr/local/src/php-5.2.6/ext/openssl/openssl.c:416: error: (Each undeclared identifier is reported only once /usr/local/src/php-5.2.6/ext/openssl/openssl.c:416: error: for each function it appears in.) /usr/local/src/php-5.2.6/ext/openssl/openssl.c: In function ‘add_oid_section’: /usr/local/src/php-5.2.6/ext/openssl/openssl.c:435: error: ’struct php_x509_request’ has no member named ‘req_config’ /usr/local/src/php-5.2.6/ext/openssl/openssl.c:439: error: ’struct php_x509_request’ has no member named ‘req_config’
Solutions
php5.2.5 php5.2.6 php5.2.8 php5.3.0
php After installation, it shall be installed independently openssl There will be problems with the extension , Recommended php5.2.17 wget http://museum.php.net/php5/php-5.2.17.tar.gz
This is the result of the test
setup script : # Here is php Installation directory /usr/local/php5/bin/
# Switch to php Installation directory etx/openssl Catalog cd /php-5.2.17/ext/openssl
# see openssl There is a config0.m4, hold config0.m4 Renamed as config.m4. cp config0.m4 config.m4
# Execute sequentially : /usr/local/php5/bin/phpize
./configure –with-openssl –with-php-config=/usr/local/php5/bin/php-config
make && make install
# And then find php.ini The position of open extension_dir( If not, add it by yourself ), Simultaneous addition extension = “openssl.so”
# restart The server that will do
#openssl Check the method : /usr/local/php5/bin/php -m |grep openssl
边栏推荐
- CNN classic network model details -lenet-5 (pytorch Implementation)
- 在线客服系统代码_h5客服_对接公众号_支持APP_支持多语言
- leetcode 474. Ones and zeroes (medium)
- Fund clients and sales agencies
- Arthas debugging problem determination Toolkit
- 2022-06-30: what does the following golang code output? A:0; B:2; C: Running error. package main import “fmt“ func main()
- Advanced mathematical modeling
- 5G智慧建筑解决方案2021
- Ctfshow permission maintenance
- Dell r720 server installation network card Broadcom 5720 driver
猜你喜欢

未来十年世界数字化与机器智能展望

1. crawler's beautifulsoup parsing library & online parsing image verification code

Redis - 01 cache: how to use read cache to improve system performance?

Achieve secure data sharing among multiple parties and solve the problem of asymmetric information in Inclusive Finance

Jmeter跨线程参数关联无需脚本

In depth analysis of Apache bookkeeper series: Part 4 - back pressure

Ideal interface automation project

One revolution, two forces and three links: the "carbon reduction" road map behind the industrial energy efficiency improvement action plan

Esp8266 becomes client and server

In depth analysis of Apache bookkeeper series: Part 4 - back pressure
随机推荐
1175. 質數排列 / 劍指 Offer II 104. 排列的數目
唯一性索引与逻辑删除冲突问题解决思路
Software supply chain security risk pointing North for enterprise digitalization and it executives
Jmeter跨线程参数关联无需脚本
What are the contents and processes of software validation testing? How much does it cost to confirm the test report?
KubeVela 1.4:让应用交付更安全、上手更简单、过程更透明
Ms17-010 Eternal Blue vulnerability of MSF
MIT doctoral dissertation optimization theory and machine learning practice
Ctfshow permission maintenance
76页智慧物流园区综合解决方案2022(附下载)
Redis - 01 cache: how to use read cache to improve system performance?
DNS server setup, forwarding, master-slave configuration
As the public cloud market enters the deep water, can the calm Amazon cloud still sit still?
基金銷售行為規範及信息管理
C language array interception, C string by array interception method (c/s)
Fund managers' corporate governance and risk management
Doker's container data volume
8253A寄存器浅析
5G智慧建筑解决方案2021
Warmup preheating learning rate "suggestions collection"