Cacti and Nagios Some summary "two"

Source: Internet
Author: User

Cacti of NPC in the middle of a picture

PHP warning:php startup:unable to load Dynamic Library '/usr/lib64/php/modules/json.so '-/usr/lib64/php/modules/json.s o:undefined symbol:zval_delref in Unknown on line 0

The original is because no PHP contains JSON module error

PHP JSON module compilation error

Reference http://blog.csdn.net/xkjcf/article/details/8952867

My system is the CentOS 6.4 version, using the Yum method to install httpd and PHP. However, the PHP installation does not support JSON extensions and requires manual installation. In the execution of make test, all the test scenarios fail, even if the force installation successfully found that the JSON module could not start, there will be an unknown zval_delref symbol error, due to the PHP version.

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

You need to add a sentence to the json_parser.c file.

#define ZVAL_DELREF z_delref_p  

Install again from the new compilation ~

Phpize is required, so installing Php-devel,phpize provides a compilation environment for PHP extensions. TAR-XF json-1.2.1.tgzcd json-1.2.1phpize./configuremakemake Installecho "; Enable JSON Extension Module ">>/etc/php.d/json.iniecho" extension=json.so ">/etc/php.d/json.ini

Reference

#if (php_major_version = = 5 && php_minor_version >= 3) | | (php_major_version >= 6) #undef zval_refcount#undef zval_addref#undef zval_delref#define ZVAL_REFCOUNT Z_REFCOUNT_P #define ZVAL_ADDREF Z_addref_p#define Zval_delref z_delref_p#endif

  

Cacti and Nagios Some summary "two"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.