如何在Windows上为Cassandra安装Datastax-PHP驱动程序?

时间:2016-01-02 17:29:01

标签: php cassandra install driver datastax

我正在尝试从here并根据these说明为Cassandra安装Datastax PHP驱动程序。
到目前为止,我已经安装了这些依赖项:Bison,CMake,Git,ActiveState Perl和Python。但是,当我运行说明(vc_build.bat)中提到的批处理文件时,它会报告下一个错误:

Update cpp-driver submodule ... FAILED

See D:\php-driver-master\php-driver-master\ext\\build\log\cpp-driver.log for more details

Bison Not Found in PATH: Bison is required to complete build

Ensure Bison is installed in C:\GnuWin32

此外,cpp-driver.log文件的内容为:

Update cpp-driver submodule 
fatal: Not a git repository (or any of the parent directories): .git

问题是我已经在{em> Path 系统变量中添加了C:\GnuWin32,方法是将;C:\GnuWin32附加到 Path 变量中关联的字符串中

可能是什么问题?

1 个答案:

答案 0 :(得分:0)

我认为vc_build.bat中的检查功能存在问题。只需注释掉BISON检查该文件,如下所示,您就可以使其正常工作。

REM Ensure additional build dependencies are installed
REM SET "PATH=!PATH!;!SYSTEMDRIVE!\GnuWin32\bin"
REM CALL :GETFULLPATH "!BISON!" BISON_FOUND
REM IF NOT DEFINED BISON_FOUND (
REM   ECHO Bison Not Found in PATH: Bison is required to complete build
REM   ECHO Ensure Bison is installed in !SYSTEMDRIVE!\GnuWin32
REM   ECHO.
REM   ECHO  !DOWNLOAD_URL_BISON!
REM   CHOICE /N /T 15 /D N /M "Would you like to download Bison now?"
REM   IF !ERRORLEVEL! EQU !YES! START !DOWNLOAD_URL_BISON!
REM   EXIT /B !EXIT_CODE_MISSING_BUILD_DEPENDENCY!
REM )