Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: library
-
Security Level: Public
-
Labels:None
-
Environment:Hidecentos 6.3 x86_64
php 5.4 from remi repository ( http://blog.famillecollet.com/en )
# rpm -q php-fpm
php-fpm-5.4.6-1.el6.remi.x86_64
# uname -a
Linux dhcppc0 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Showcentos 6.3 x86_64 php 5.4 from remi repository ( http://blog.famillecollet.com/en ) # rpm -q php-fpm php-fpm-5.4.6-1.el6.remi.x86_64 # uname -a Linux dhcppc0 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Description
Affects Versions:
1.0.6-1
1.1.0dp9-1
Here are steps to reproduce error in version 1.0.6-1, (version 1.1.0dp9-1 is similar):
1. create file /etc/yum.repos.d/couchbase.repo
[couchbase]
name = Couchbase package repository
# baseurl = http://packages.couchbase.com/rpm/6.2/x86_64
baseurl = http://packages.couchbase.com/preview/rpm/5.5/x86_64
gpgcheck=0
2. yum install libcouchbase1
3.
# wget http://packages.couchbase.com/clients/php/php-ext-couchbase-1.0.5-centos62-x86_64.tar.gz
# tar xzf php-ext-couchbase-1.0.5-centos62-x86_64.tar.gz
# cp php-ext-couchbase/couchbase.so /usr/lib64/php/modules/
4. add the following line to /etc/php.d/json.ini:
extension=couchbase.so
5. # service php-fpm restart
Stopping php-fpm: [ OK ]
Starting php-fpm: [10-Sep-2012 17:42:45] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/couchbase.so' - /usr/lib64/php/modules/couchbase.so: undefined symbol: php_json_decode in Unknown on line 0
[ OK ]
1.0.6-1
1.1.0dp9-1
Here are steps to reproduce error in version 1.0.6-1, (version 1.1.0dp9-1 is similar):
1. create file /etc/yum.repos.d/couchbase.repo
[couchbase]
name = Couchbase package repository
# baseurl = http://packages.couchbase.com/rpm/6.2/x86_64
baseurl = http://packages.couchbase.com/preview/rpm/5.5/x86_64
gpgcheck=0
2. yum install libcouchbase1
3.
# wget http://packages.couchbase.com/clients/php/php-ext-couchbase-1.0.5-centos62-x86_64.tar.gz
# tar xzf php-ext-couchbase-1.0.5-centos62-x86_64.tar.gz
# cp php-ext-couchbase/couchbase.so /usr/lib64/php/modules/
4. add the following line to /etc/php.d/json.ini:
extension=couchbase.so
5. # service php-fpm restart
Stopping php-fpm: [ OK ]
Starting php-fpm: [10-Sep-2012 17:42:45] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/couchbase.so' - /usr/lib64/php/modules/couchbase.so: undefined symbol: php_json_decode in Unknown on line 0
[ OK ]
the solution thanhbv offered worked although all tested failed !
i did:
make install
mv /etc/php.d/json.ini /etc/php.d/0json.ini
then phpinfo();
[root@null ~]# php phpinfo.php | grep couch
/etc/php.d/couchbase.ini,
couchbase
couchbase support => enabled
couchbase.compression_factor => 1.3 => 1.3
couchbase.compression_threshold => 2000 => 2000
couchbase.compressor => none => none
couchbase.durability_default_poll_interval => 100000 => 100000
couchbase.durability_default_timeout => 40000000 => 40000000
couchbase.serializer => php => php
couchbase.view_timeout => 75 => 75
OLDPWD => /root/php-ext-couchbase
_SERVER["OLDPWD"] => /root/php-ext-couchbase
Using the compiled one from the site did not work.