如何解决此错误,
警告:/etc/php/7.1/mods-available下的模块cassandra ini文件不存在
使用deb软件包为cassandra libraray安装php驱动程序时出现此错误。
http://downloads.datastax.com/php-driver/ubuntu/16.04/cassandra/v1.3.2/
cannot open /include/cassandra.h (No such file or directory) configure: error: not supported. Driver version 2.7.0+ required (found ) ERROR: `/tmp/pear/temp/cassandra/configure --with-php-con
答案 0 :(得分:0)
我重试并能够解决它。
这里的一个窍门:
to avoid error
(cannot open /include/cassandra.h (No such file or directory) configure: error: not supported. Driver version 2.7.0+ required (found ) ERROR: `/tmp/pear/temp/cassandra/configure --with-php-con
) is I executed all command at '/' directory not in home or any other directory.
###################
sudo git clone https://github.com/datastax/php-driver.git
cd php-driver/
git submodule update --init
sudo chmod -R 777 /php-driver/
cd ext
sudo ./install.sh
sudo phpize
sudo ./configure
sudo make install
之后将其添加到php.ini
; DataStax PHP Driver for Apache Cassandra
extension=cassandra.so
然后使用重新启动apache2
sudo service apache2 restart
并检查了usnig的php模块
php -m //it reflects cassandra module