Compilation
This page explains how to manually compile the extension. Most users don't need to follow this procedure and should use the simple qdb\Installation() instructions.
Manual compilation from source on Linux
Assumptions:
php5,php5-dev,git,gccandlibpcre3-devare installed- qdb-capi is installed in
/usr/includeand/usr/lib
This has been tested on Ubuntu 14.04 LTS, please adapt to your configuration.
Instructions:
git clone https://github.com/bureau14/qdb-api-php.git cd qdb-api-php phpize ./configure --with-quasardb make sudo make install
Alternative:
If you don't want to install qdb_capi in /usr/include and /usr/lib, you can specify the path like this:
./configure --with-quasardb=/path/to/qdb_api
However, this will stop working if you change the location of qdb_capi and you'll need to do the compilation again.
That is why the global installation in /usr/include and /usr/lib is recommended.
Manual compilation from source on Windows
Assumptions:
- Visual Studio is installed
- PHP source code is decompressed in
C:\php-src\ qdb-capiis installed inC:\qdb-capiqdb-php-api.tar.gzhas been decompressed inC:\php-src\ext\qdb
Please adapt to your configuration.
Instructions:
Open a Visual Studio Developer Command Prompt (either x86 or x86) and type:
cd /d C:\php-src\ buildconf configure --with-quasardb=C:\qdb-capi nmake nmake install
You may want to customize configure's flags, for instance --enable-zts or --disable-zts to control thread-safety.
Also if qdb_api.dll is not available on the PATH, you'll need to copy it to C:\php\.