Phpredisigbinary compilation and installation problems
Source: Internet
Author: User
Php uses the following statement $ redis-& gt; setOption (Redis: OPT_SERIALIZER, Redis: SERIALIZER_IGBINARY). This error always occurs, it should be because igbinaryFatalerr phpredis igbinary is not enabled during compilation.
Use the following statement in php:
$ Redis-> setOption (Redis: OPT_SERIALIZER, Redis: SERIALIZER_IGBINARY );
This error always occurs. it should be because igbinary is not enabled during compilation.
Fatal error: Undefined class constant 'serializer _ IGBINARY'
The first installed phpredis is not added with -- enable-redis-igbinary, and then igbinary is installed, and then the phpredis is re-compiled as follows:
./Configure -- enable-redis-igbinary-with-php-config =/usr/local/php/bin/php-config
After compilation is successful, extensions are added in php. ini. after restart, how can the above error be reported?
Unfamiliar with compilation, who knows how to compile to make phpredis support igbinary
------ Solution --------------------
Igbinary is not required. you have not specified a serialization tool.
When configure is used -- with-serializer
Configure -- help should have
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.