pecl install cassandra
Run Code Online (Sandbox Code Playgroud)
产生错误:
configure:错误:无法加载libcassandra
错误:`/ tmp/pear/temp/cassandra/configure'失败
此错误消息是SO上的另一个问题,但尚未解决:在ubuntu上安装php datastax驱动程序
有人可以帮忙吗?
我正在尝试为Cassandra安装datastax php驱动程序,当我运行以下命令时:
pecl install ext/package.xml
Run Code Online (Sandbox Code Playgroud)
检查出git之后我得到以下消息:
configure: error: Unable to load libcassandra
ERROR: `/tmp/pear/temp/cassandra/configure' failed
Run Code Online (Sandbox Code Playgroud)
有人能指出我正确的方向,以成功安装此驱动程序吗?
我正在使用的cassandra版本是2.1.8所以也许驱动程序尚未更新以连接到最新版本的cassandra.
在所有节点上运行tpstats之后.我看到很多节点都有大量的ALL TIME BLOCKED NTR.我们有一个4节点集群,NTR ALL TIME BLOCKED的值是:
NODE 1:23953 NODE 2:2935 NODE 3:15229 NODE 4:5951
我知道所有时间都是坏的,因此担心我做错了什么.
今天是个好日子。
通常我只是在 *nix OS 中使用这个官方文档
但是现在我正在使用 MacO,而此说明无法正常工作。
如果pecl install cassandra我收到此消息:
checking for supported DataStax C/C++ driver version... awk: can't open file /include/cassandra.h
source line number 1
configure: error: not supported. Driver version 2.4.2+ required (found )
ERROR: `/private/tmp/pear/install/cassandra/configure --with-php-config=/usr/bin/php-config' failed
Run Code Online (Sandbox Code Playgroud)
我的逻辑告诉我,在这种情况下,我需要自己制作 DataStax C/C++ 驱动程序。在文件夹中,php-driver\lib我删除cpp-driver并使用此指令制作全新的 C/C++ 驱动程序,没有错误。
所以在官方文档中它说:
注意 install.sh 脚本还将编译并静态链接到扩展中的一个用于 Apache Cassandra 的 DataStax C/C++ 驱动程序的子模块版本。要使用系统上已有的 cpp 驱动程序版本,请运行 phpize、./configure 并进行安装。
但是当我尝试运行时./configure,php-drive/ext我得到了几乎相同的错误:
checking for supported DataStax C/C++ driver …Run Code Online (Sandbox Code Playgroud)