【问题标题】:How do I install Datastax-PHP driver for Cassandra on Windows?如何在 Windows 上为 Cassandra 安装 Datastax-PHP 驱动程序?
【发布时间】:2016-04-06 17:41:02
【问题描述】:

我正在尝试从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

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

可能是什么问题?

【问题讨论】:

    标签: php cassandra installation driver datastax


    【解决方案1】:

    我认为 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 )
    

    【讨论】:

      猜你喜欢
      • 2023-03-17
      • 2018-06-19
      • 2015-10-28
      • 2016-02-27
      • 1970-01-01
      • 2015-12-27
      • 2016-05-18
      • 2016-10-03
      • 2016-03-16
      相关资源
      最近更新 更多