当前位置:网站首页>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
边栏推荐
- 让企业数字化砸锅和IT主管背锅的软件供应链安全风险指北
- 智慧路灯| 云计算点亮智慧城市的“星星之火”
- What does project management really manage?
- DNS server setup, forwarding, master-slave configuration
- Understand target detection in one article: r-cnn, fast r-cnn, fast r-cnn, Yolo, SSD "suggestions collection"
- shell 同时执行多任务下载视频
- Reason why wechat payment wxpaypubhelper V3 callback XML is empty
- 基金客户和销售机构
- Ctfshow framework reproduction
- During telecommuting, the project team punched in the wechat group | solicited papers from the community
猜你喜欢

Ride: get picture Base64

Achieve secure data sharing among multiple parties and solve the problem of asymmetric information in Inclusive Finance
![[NLP] [textcnn] text classification](/img/bb/c8fd9f1ed458a88a17b8d5c70d9ce2.png)
[NLP] [textcnn] text classification
![Cesiumjs 2022 ^ source code interpretation [6] - new architecture of modelempirical](/img/ce/519778cd731f814ad111d1e37abd10.png)
Cesiumjs 2022 ^ source code interpretation [6] - new architecture of modelempirical

Zero sample and small sample learning

Development of wireless U-shaped ultrasonic electric toothbrush
![[无线通信基础-13]:图解移动通信技术与应用发展-1-概述](/img/1d/62e55f1b5445d7349ec383879f4275.png)
[无线通信基础-13]:图解移动通信技术与应用发展-1-概述

Introduction to digital transformation solutions for enterprises going to sea

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

Redis - 01 cache: how to use read cache to improve system performance?
随机推荐
Zero sample and small sample learning
CNN classic network model details -lenet-5 (pytorch Implementation)
Detailed explanation of conv2d -- use in arrays and images
股票开户要如何办理呢?办理手机开户安全吗
2022-06-30: what does the following golang code output? A:0; B:2; C: Running error. package main import “fmt“ func main()
Shell multitasking to download video at the same time
Pycharm is very fast to learn from installation to full armament. There are so many pictures because it is too detailed!
基金客户和销售机构
Swift 5.0 - creation and use of swift framework
C language array interception, C string by array interception method (c/s)
理想中的接口自动化项目
电商秒杀系统
PS2 handle-1 "recommended collection"
Dataloader source code_ DataLoader
CentOS 6.3 x64 PHP 5.2.6 扩展安装OpenSSL出错的解决方法
flutter - sort List排序
shell 同时执行多任务下载视频
深入理解 Jetpack Compose 内核:SlotTable 系统
[golang] golang implements the string interception function substr
How to distinguish between platform security and online hype? What are the stop loss techniques for online speculation?