Centos5 can't get PHP client library , can't Install the PHP SDK

Centos5.9 x86_64 Two questions please

1.Get a Client Library

yum install -y libcouchbase2-libevent libcouchbase-devel , I got the errors:

couchbase | 2.9 kB 00:00
couchbase/primary_db | 7.5 kB 00:00
http://packages.couchbase.com/rpm/5.5/x86_64/repodata/b7083aece5181731f716f2788a176264bca0033ca64da87711c23de5fda2010f-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
couchbase/primary_db | 7.5 kB 00:00
http://packages.couchbase.com/rpm/5.5/x86_64/repodata/b7083aece5181731f716f2788a176264bca0033ca64da87711c23de5fda2010f-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/b7083aece5181731f716f2788a176264bca0033ca64da87711c23de5fda2010f-primary.sqlite.bz2 from couchbase: [Errno 256] No more mirrors to try.

Looks like the following reasons:

Rhel 6 repomd.xml file use sha256 as hash algorithm, sha is used by default in rhel 5 , so rhel5 reads repomd.xml in rhel 6 will get ‘Error performing checksum’.

Could you check it,ths.

2.Another way,use Standalone packages got another errors,the following is my steps

a.Download ‘libcouchbase-2.2.0_centos55_x86_64.tar’ and install

rpm -ivh libcouchbase2-bin-2.2.0-1.x86_64.rpm libcouchbase2-core-2.2.0-1.x86_64.rpm

b.Install the C Library

c.yum install php-pear

d.install php-pear This step got the follow errors:

[root@ay_web01 couch]# pecl install couchbase
Did not download optional dependencies: pecl/igbinary, use --alldeps to download automatically
pecl/couchbase can optionally use package "pecl/igbinary"
downloading couchbase-1.2.1.tgz …
Starting to download couchbase-1.2.1.tgz (84,857 bytes)
…done: 84,857 bytes
49 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
building in /var/tmp/pear-build-root4uAzJS/couchbase-1.2.1
running: /var/tmp/couchbase/configure
checking for egrep… grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ANSI C… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-redhat-linux-gnu
checking host system type… x86_64-redhat-linux-gnu
checking target system type… x86_64-redhat-linux-gnu
checking for PHP prefix… /usr
checking for PHP includes… -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory… /usr/lib64/php/modules
checking for PHP installed headers prefix… /usr/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… gawk
checking for Couchbase support… yes, shared
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking libcouchbase/couchbase.h usability… no
checking libcouchbase/couchbase.h presence… no
checking for libcouchbase/couchbase.h… no
checking zlib.h usability… yes
checking zlib.h presence… yes
checking for zlib.h… yes
checking ext/igbinary/igbinary.h usability… no
checking ext/igbinary/igbinary.h presence… no
checking for ext/igbinary/igbinary.h… no
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognise dependent libraries… pass_all
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking for g77… no
checking for f77… no
checking for xlf… no
checking for frt… no
checking for pgf77… no
checking for fort77… no
checking for fl32… no
checking for af77… no
checking for f90… no
checking for xlf90… no
checking for pgf90… no
checking for epcf90… no
checking for f95… no
checking for fort… no
checking for xlf95… no
checking for ifc… no
checking for efc… no
checking for pgf95… no
checking for lf95… no
checking for gfortran… no
checking whether we are using the GNU Fortran 77 compiler… no
checking whether accepts -g… no
checking the maximum length of command line arguments… 32768
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no
configure: creating libtool
appending configuration tag “CXX” to libtool
appending configuration tag “F77” to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root4uAzJS/couchbase-1.2.1/libtool --mode=compile cc -I. -I/var/tmp/couchbase -DPHP_ATOM_INC -I/var/tmp/pear-build-root4uAzJS/couchbase-1.2.1/include -I/var/tmp/pear-build-root4uAzJS/couchbase-1.2.1/main -I/var/tmp/couchbase -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/couchbase/apidecl.c -o apidecl.lo
mkdir .libs
cc -I. -I/var/tmp/couchbase -DPHP_ATOM_INC -I/var/tmp/pear-build-root4uAzJS/couchbase-1.2.1/include -I/var/tmp/pear-build-root4uAzJS/couchbase-1.2.1/main -I/var/tmp/couchbase -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/couchbase/apidecl.c -fPIC -DPIC -o .libs/apidecl.o
In file included from /var/tmp/couchbase/apidecl.c:24:
/var/tmp/couchbase/internal.h:57:36: error: libcouchbase/couchbase.h: No such file or directory
In file included from /var/tmp/couchbase/apidecl.c:24:
/var/tmp/couchbase/internal.h:148: error: expected specifier-qualifier-list before 'lcb_t’
In file included from /var/tmp/couchbase/apidecl.c:24:
/var/tmp/couchbase/internal.h:334: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:449: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:452: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:455: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:458: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:461: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:464: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:467: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:470: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:473: error: expected ‘)’ before ‘handle’
/var/tmp/couchbase/internal.h:476: error: expected ‘)’ before 'handle’
In file included from /var/tmp/couchbase/internal.h:487,
from /var/tmp/couchbase/apidecl.c:24:
/var/tmp/couchbase/apidecl.h:65: error: expected declaration specifiers or ‘…’ before ‘lcb_storage_t’
/var/tmp/couchbase/apidecl.h:71: error: expected declaration specifiers or ‘…’ before ‘lcb_storage_t’
In file included from /var/tmp/couchbase/internal.h:488,
from /var/tmp/couchbase/apidecl.c:24:
/var/tmp/couchbase/simple_observe.h:27: error: expected specifier-qualifier-list before ‘lcb_error_t’
/var/tmp/couchbase/simple_observe.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘simple_observe’
/var/tmp/couchbase/simple_observe.h:44: error: expected ‘)’ before ‘instance’
/var/tmp/couchbase/apidecl.c: In function ‘zim_couchbase_add’:
/var/tmp/couchbase/apidecl.c:705: error: ‘LCB_ADD’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:705: error: (Each undeclared identifier is reported only once
/var/tmp/couchbase/apidecl.c:705: error: for each function it appears in.)
/var/tmp/couchbase/apidecl.c:705: error: too many arguments to function ‘php_couchbase_store_impl_oo’
/var/tmp/couchbase/apidecl.c: In function ‘zim_couchbase_set’:
/var/tmp/couchbase/apidecl.c:710: error: ‘LCB_SET’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:710: error: too many arguments to function ‘php_couchbase_store_impl_oo’
/var/tmp/couchbase/apidecl.c: In function ‘zim_couchbase_prepend’:
/var/tmp/couchbase/apidecl.c:720: error: ‘LCB_PREPEND’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:720: error: too many arguments to function ‘php_couchbase_store_impl_oo’
/var/tmp/couchbase/apidecl.c: In function ‘zim_couchbase_append’:
/var/tmp/couchbase/apidecl.c:725: error: ‘LCB_APPEND’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:725: error: too many arguments to function ‘php_couchbase_store_impl_oo’
/var/tmp/couchbase/apidecl.c: In function ‘zim_couchbase_replace’:
/var/tmp/couchbase/apidecl.c:730: error: ‘LCB_REPLACE’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:730: error: too many arguments to function ‘php_couchbase_store_impl_oo’
/var/tmp/couchbase/apidecl.c: In function ‘zim_couchbase_getResultCode’:
/var/tmp/couchbase/apidecl.c:788: error: ‘php_couchbase_res’ has no member named ‘rc’
/var/tmp/couchbase/apidecl.c: In function ‘zif_couchbase_add’:
/var/tmp/couchbase/apidecl.c:937: error: ‘LCB_ADD’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:937: error: too many arguments to function ‘php_couchbase_store_impl’
/var/tmp/couchbase/apidecl.c: In function ‘zif_couchbase_set’:
/var/tmp/couchbase/apidecl.c:942: error: ‘LCB_SET’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:942: error: too many arguments to function ‘php_couchbase_store_impl’
/var/tmp/couchbase/apidecl.c: In function ‘zif_couchbase_set_multi’:
/var/tmp/couchbase/apidecl.c:947: error: ‘LCB_SET’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:947: error: too many arguments to function ‘php_couchbase_store_impl’
/var/tmp/couchbase/apidecl.c: In function ‘zif_couchbase_prepend’:
/var/tmp/couchbase/apidecl.c:952: error: ‘LCB_PREPEND’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:952: error: too many arguments to function ‘php_couchbase_store_impl’
/var/tmp/couchbase/apidecl.c: In function ‘zif_couchbase_append’:
/var/tmp/couchbase/apidecl.c:957: error: ‘LCB_APPEND’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:957: error: too many arguments to function ‘php_couchbase_store_impl’
/var/tmp/couchbase/apidecl.c: In function ‘zif_couchbase_replace’:
/var/tmp/couchbase/apidecl.c:962: error: ‘LCB_REPLACE’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:962: error: too many arguments to function ‘php_couchbase_store_impl’
/var/tmp/couchbase/apidecl.c: In function ‘zif_couchbase_get_result_code’:
/var/tmp/couchbase/apidecl.c:1022: error: ‘php_couchbase_res’ has no member named ‘rc’
/var/tmp/couchbase/apidecl.c: In function ‘zm_startup_couchbase’:
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_SUCCESS’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_AUTH_CONTINUE’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_DELTA_BADVAL’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_E2BIG’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_EBUSY’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_EINTERNAL’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_EINVAL’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_ENOMEM’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_ERROR’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_ETMPFAIL’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_KEY_EEXISTS’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_KEY_ENOENT’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_NETWORK_ERROR’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_NOT_MY_VBUCKET’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_NOT_STORED’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_NOT_SUPPORTED’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_UNKNOWN_COMMAND’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_UNKNOWN_HOST’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_REPLICA_FIRST’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_REPLICA_ALL’ undeclared (first use in this function)
/var/tmp/couchbase/apidecl.c:1312: error: ‘LCB_REPLICA_SELECT’ undeclared (first use in this function)
make: *** [apidecl.lo] Error 1
ERROR: `make’ failed

Question 2 have been solved, my mistake is not install devel

Question 1 please check it , tks