当前位置:网站首页>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
边栏推荐
- 在线客服系统代码_h5客服_对接公众号_支持APP_支持多语言
- Solution to the conflict between unique index and logical deletion
- [NLP] [textcnn] text classification
- 什么是SRM系统,如何规范公司内部采购流程
- Fund managers' corporate governance and risk management
- What is SRM system and how to standardize the internal procurement process of the company
- How to distinguish between platform security and online hype? What are the stop loss techniques for online speculation?
- 1175. prime number arrangement / Sword finger offer II 104 Number of permutations
- 1175. 质数排列 / 剑指 Offer II 104. 排列的数目
- 未来十年世界数字化与机器智能展望
猜你喜欢

Swift 5.0 - creation and use of swift framework

Development of wireless U-shaped ultrasonic electric toothbrush

shell 同时执行多任务下载视频

MaxPool2d详解--在数组和图像中的应用
![[NLP] [textcnn] text classification](/img/bb/c8fd9f1ed458a88a17b8d5c70d9ce2.png)
[NLP] [textcnn] text classification

How to use dataant to monitor Apache APIs IX

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

理想中的接口自动化项目

Two way data binding in wechat applet

Software supply chain security risk pointing North for enterprise digitalization and it executives
随机推荐
CTFSHOW权限维持篇
In depth understanding of jetpack compose kernel: slottable system
6-1 exploit -ftp exploit
Schéma de transition asynchrone - générateur
How to use dataant to monitor Apache APIs IX
Analysis of 8253a register
lvm-snapshot:基于LVM快照的备份
Warmup preheating learning rate "suggestions collection"
35家巨头科技公司联合组成元宇宙标准论坛组织
五分钟搞懂探索式测试
基金銷售行為規範及信息管理
Netease cloud sign in lottery? That year I could sign in for 365 days. No? Look.
Redis' transaction and locking mechanism
CesiumJS 2022^ 源码解读[6] - 三维模型(ModelExperimental)新架构
In 2022, the latest JCR officially released the list of the latest global impact factors (top 600)
智慧路灯| 云计算点亮智慧城市的“星星之火”
C# /platform:anycpu32bitpreferred 只能与 /t:exe、/t:winexe 和 /t:appcontainerexe 一起使用
Error when starting PHP: [pool www] cannot get uid for user '@php_ fpm_ [email protected]’
Repetition is the mother of skill
Code de conduite pour la vente de fonds et la gestion de l'information