当前位置:网站首页>Solve the error of JSON module in PHP compilation and installation under CentOS 6.3
Solve the error of JSON module in PHP compilation and installation under CentOS 6.3
2022-07-04 15:15:00 【Brother Xing plays with the clouds】
When I was setting up the monitoring system JSON Module installation failed ,PHP5.3 System CentOS 6.3, install json Report errors ZVAL_DELREF Unknown symbol error ... # Warning: PHP Startup: Unable to load dynamic library '/home/json/json-1.2.1/modules/json.so' - /home/json/json-1.2.1/modules/json.so: undefined symbol: ZVAL_DELREF in Unknown on line 0
After checking, it is because php Version caused , Here's the solution :
# tar xf json-1.2.1.tgz # cd json-1.2.1 # pwd /root/ desktop /json-1.2.1 # vim JSON_parser.c #define ZVAL_DELREF Z_DELREF_P //rpm install PHP5.3 This symbol is not supported , You need to add symbols manually , Then compile and install , Ahead # No. don't remove it , Just add it directly to the front of the file .
# phpize // without phpize command , Then use yum To install php-devel package # ./configure # make && make install # find / -name *json.so // Check to see if there is json modular /usr/lib64/php/modules/json.so # vim /etc/php.ini // Add the following lines extension=json.so # vim /etc/php.d/json.ini // establish json.ini file , Add the following two lines ; Enable snmp extension module extension=json.so
test php Whether to load json modular : 1) Use php -m Command to see if php Already loaded json modular # php -m json // Check the printed module
2) Use php Test page view verification
# vim/var/www/html/index.php // establish php Browse page , Add the following
<?php phpinfo(); ?>
Browser login http://127.0.0.1/index.php The following content also proves that the installation and loading are successful
边栏推荐
猜你喜欢
都在说DevOps,你真正了解它吗?
Ffprobe common commands
深度学习 神经网络案例(手写数字识别)
The performance of major mainstream programming languages is PK, and the results are unexpected
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination
TechSmith Camtasia studio 2022.0.2 screen recording software
案例分享|金融业数据运营运维一体化建设
31年前的Beyond演唱会,是如何超清修复的?
Five minutes per day machine learning: use gradient descent to complete the fitting of multi feature linear regression model
Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?
随机推荐
Halo effect - who says that those with light on their heads are heroes
LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
The per capita savings of major cities in China have been released. Have you reached the standard?
Details of FPGA underlying resources
lnx 高效搜索引擎、FastDeploy 推理部署工具箱、AI前沿论文 | ShowMeAI资讯日报 #07.04
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
重排数组
PLC模拟量输入 模拟量转换FC S_ITR (CODESYS平台)
MySQL学习笔记——数据类型(2)
flutter 报错 No MediaQuery widget ancestor found.
深度学习 神经网络案例(手写数字识别)
LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
Deep learning network regularization
Ffprobe common commands
Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?