当前位置:网站首页>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
边栏推荐
- Memory management summary
- What is the future of the booming intelligent Internet of things (aiot) in recent years?
- Usage of database functions "recommended collection"
- On the implementation plan of MySQL explain
- 压力、焦虑还是抑郁? 正确诊断再治疗
- 智能客服赛道:网易七鱼、微洱科技打法迥异
- MYSQL索引优化
- MySQL learning notes - data type (numeric type)
- Introduction of text mining tools [easy to understand]
- Unity脚本常用API Day03
猜你喜欢
Introduction to asynchronous task capability of function calculation - task trigger de duplication
Unity脚本常用API Day03
I plan to teach myself some programming and want to work as a part-time programmer. I want to ask which programmer has a simple part-time platform list and doesn't investigate the degree of the receiv
[differential privacy and data adaptability] differential privacy code implementation series (XIV)
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
How to handle exceptions in multithreading?
每周招聘|高级DBA年薪49+,机会越多,成功越近!
LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
Quick introduction to automatic control principle + understanding
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
随机推荐
智能客服赛道:网易七鱼、微洱科技打法迥异
C1 certification learning notes 3 -- Web Foundation
The performance of major mainstream programming languages is PK, and the results are unexpected
Partial modification - progressive development
odoo数据库主控密码采用什么加密算法?
Enter the width!
%s格式符
找数字
LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
Halcon knowledge: NCC_ Model template matching
案例分享|金融业数据运营运维一体化建设
Details of FPGA underlying resources
Width and alignment
干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧
IO流:节点流和处理流详细归纳。
UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
AI做题水平已超过CS博士?
Who the final say whether the product is good or not? Sonar puts forward performance indicators for analysis to help you easily judge product performance and performance
PXE网络
Is BigDecimal safe to calculate the amount? Look at these five pits~~