Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Unable to compile libcouchbase for PHP couchbase.so extension in Ubuntu 12

4 replies [Last post]
  • Login or register to post comments
Fri, 06/08/2012 - 22:10
kk_loke86
Offline
Joined: 04/01/2012
Groups: None

Hi, is it possible to compile couchbase.so in Ubuntu 12? I try to compile it but failed at the step to include libcouchbase headers and files. Can someone guide me through? Thanks.

Top
  • Login or register to post comments
Fri, 06/08/2012 - 22:17
mikew
Offline
Joined: 03/14/2011
Groups:

I can help. Can you paste the output of commands you have run into the forum?

Top
  • Login or register to post comments
Fri, 06/08/2012 - 23:12
kk_loke86
Offline
Joined: 04/01/2012
Groups: None

This is the error when I try to compile php-ext source code in Ubuntu 12

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... 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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /opt/lampp
checking for PHP includes... -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib
checking for PHP extension directory... /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /opt/lampp/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
checking for gawk... gawk
checking for couchbase support... yes, shared
checking whether to enable json serializer support... yes, shared
checking for ZLIB... no
checking for FastLZ... no
checking for libcouchbase files in default path... not found

configure: error: couchbase support requires libcouchbase. Use --with-couchbase= to specify the prefix where libcouchbase headers and library are located
root@kkloke86:/home/kkloke86/Downloads/couchbase-php-ext-couchbase-4609e2a# ./configure --with-php-config=/opt/lampp/bin/php-config > /home/kkloke86/Desktop/compile.txt
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: error: couchbase support requires libcouchbase. Use --with-couchbase= to specify the prefix where libcouchbase headers and library are located

With that, I try to compile libcouchbase myself, however I cannot run make on the source code, it is written to be compile with nmake. Not sure how to use nmake to compile. Any idea?

Top
  • Login or register to post comments
Wed, 06/13/2012 - 02:59
atm188
Offline
Joined: 06/06/2012
Groups: None

Did you install the following packages from couchbase repo?
- libcouchbase
- libcouchbase-devel
- libvbucket
- libvbucket-devel

Top
  • Login or register to post comments
Wed, 06/13/2012 - 10:44
mikew
Offline
Joined: 03/14/2011
Groups:

Also if you are on a machine that alrady has Couchbase Server installed try pointing --with-couchbase to the install directory. It should be /opt/couchbase

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker