the message in my command prompt are:
>131 source files, building
>WARNING: php_bin P:\\xampp\php\.\php.exe appears to have a suffix \.\php.exe, but config variable php_suffix does not match
>ERROR: The DSP cassandra.dsp does not exist
any suggestion?
below are command i used:
>git clone https://github.com/datastax/php-driver.git
>cd php-driver
>pecl install ext/package.xml
from: https://github.com/datastax/php-driver/blob/master/ext/README.md#installing-with-pecl
Thanks
The PECL installation instructions you referenced are for Linux; Windows has a different set of instructions. If you want to use the PECL DLLs for Windows you can navigate to https://pecl.php.net/package/cassandra and download the appropriate pre-compiled DLL for your PHP version installed. You can also download the DLL for Windows from the DataStax downloads site here http://downloads.datastax.com/php-driver/. NOTE: The DLLs may have variances between PECL and DataStax downloads since PECL maintains their own third party dependency versions (e.g. MPIR, libuv, ...etc).
To install the Windows PHP driver for Cassandra you will need to extract the php_cassandra.dll from the zip file you download into the directory where your php.exe file is located. You will also need to create (or add to) the php.ini file exetension=php_cassandra.dll in order for PHP to properly load the PHP driver.
~Fero
Halo Fero,
Thank for your explanation. I have extracted zip file that I have downloaded from datastax web then copied all the file to the php.exe's directory, include php_cassandra.dll. I also did your suggestion about add extension=php_cassandra.dll php.ini.
And when i tried to run php command in cmd, there still the same warning about cassandra.so can't fount (please check my attachments).
and also, i checked directory php/ext, and there is no cassandra.so file. my question is how to make/generate that file?
Thanks
~ikhsan~
--
You received this message because you are subscribed to the Google Groups "DataStax PHP Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-driver-us...@lists.datastax.com.
Looking through the output you supplied in a previous response on this thread it appears that XAMPP expects the extension/modules to be installed in the ext directory (e.g. P:\xampp\php\ext). You will want to check and see if the PHP included in XAMPP is TS (Thread Safety) or NTS (Non-Thread Safety) and also determine the architecture platform PHP was built for by running `php -i | findstr Safety` and `php -i | findstr Architecture`. It also appears that the XAMPP you installed utilizes PHP v5.6 so once you have determined TS/NTS and the architecture you will want to ensure the appropriate PHP Cassandra driver was download and the DLL is placed in the ext directory that XAMPP is expecting.
Here are four shortcuts for the PHP Cassandra driver v1.1.0 for PHP v5.6. You will want to download the appropriate version based on all the factors of your installed PHP version:
x86 (TS) - http://downloads.datastax.com/php-driver/1.1.0/cassandra-php-driver-1.1.0-5.6-ts-vc11-x86.zip
x64 (TS) - http://downloads.datastax.com/php-driver/1.1.0/cassandra-php-driver-1.1.0-5.6-ts-vc11-x64.zip
x86 (NTS) - http://downloads.datastax.com/php-driver/1.1.0/cassandra-php-driver-1.1.0-5.6-nts-vc11-x86.zip
x64 (NTS) - http://downloads.datastax.com/php-driver/1.1.0/cassandra-php-driver-1.1.0-5.6-nts-vc11-x64.zip
~Fero
--
You received this message because you are subscribed to a topic in the Google Groups "DataStax PHP Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lists.datastax.com/d/topic/php-driver-user/MTQmAwG6H58/unsubscribe.
To unsubscribe from this group and all its topics, send an email to php-driver-us...@lists.datastax.com.
~Fero
--
You received this message because you are subscribed to a topic in the Google Groups "DataStax PHP Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lists.datastax.com/d/topic/php-driver-user/MTQmAwG6H58/unsubscribe.
To unsubscribe from this group and all its topics, send an email to php-driver-us...@lists.datastax.com.