Compile Couchbase PHP7.0 SDK On Ubuntu 16.04

I’m trying to compile the PHP7.0 SDK for Ubuntu 16.04 but I don’t have much luck as in the past on 14.04.

This is where I end up on make:

[/home/myuser/php-ext-couchbase]-[git master]
# make
/bin/bash /home/myuser/php-ext-couchbase/libtool --mode=compile cc  -I. -I/home/myuser/php-ext-couchbase -DPHP_ATOM_INC -I/home/myuser/php-ext-couchbase/include -I/home/myuser/php-ext-couchbase/main -I/home/myuser/php-ext-couchbase -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/myuser/php-ext-couchbase/apidecl.c -o apidecl.lo
libtool: compile:  cc -I. -I/home/myuser/php-ext-couchbase -DPHP_ATOM_INC -I/home/myuser/php-ext-couchbase/include -I/home/myuser/php-ext-couchbase/main -I/home/myuser/php-ext-couchbase -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/myuser/php-ext-couchbase/apidecl.c  -fPIC -DPIC -o .libs/apidecl.o
In file included from /home/myuser/php-ext-couchbase/apidecl.c:24:0:
/home/myuser/php-ext-couchbase/internal.h:53:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
compilation terminated.
Makefile:194: recipe for target 'apidecl.lo' failed
make: *** [apidecl.lo] Error 1

[04:00 AM]-[root@msp-myuser-dev-vm-01]-[/home/myuser/php-ext-couchbase]-[git master]

Does anyone have a clue in this or a complete tuturial for 16.04 at the moment with PHP7.0 ?

Would be great to get some direction.


You shouldn’t use, because it marked as deprecated. Please use

True, I saw something in Google about a deprecated repo but is was kinda late or early.

Thanks, I will try it out!