当前位置:网站首页>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
边栏推荐
- Unity脚本常用API Day03
- Decimal, exponential
- LeetCode 58. 最后一个单词的长度
- 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
- 力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
- Introduction to asynchronous task capability of function calculation - task trigger de duplication
- 暑期复习,一定要避免踩这些坑!
- 文本挖掘工具的介绍[通俗易懂]
- Redis的4种缓存模式分享
- Intelligent customer service track: Netease Qiyu and Weier technology play different ways
猜你喜欢

IO flow: node flow and processing flow are summarized in detail.

Techsmith Camtasia Studio 2022.0.2屏幕录制软件

AI做题水平已超过CS博士?

Introduction to modern control theory + understanding

数据湖治理:优势、挑战和入门

Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作

产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现

Luo Gu - some interesting questions 2

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

Kubernets pod exists finalizers are always in terminating state
随机推荐
Halo effect - who says that those with light on their heads are heroes
hexadecimal
Flutter reports an error no mediaquery widget ancestor found
重排数组
Unity脚本API—GameObject游戏对象、Object 对象
Optimization method of deep learning neural network
.Net之延迟队列
Unity预制件Prefab Day04
LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
每周招聘|高级DBA年薪49+,机会越多,成功越近!
Redis 發布和訂閱
%s格式符
MP3是如何诞生的?
Decimal, exponential
在芯片高度集成的今天,绝大多数都是CMOS器件
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
MySQL learning notes - data type (numeric type)
Unity update process_ Principle of unity synergy
IO流:节点流和处理流详细归纳。