c++ - MacOS High Sierra : make: no rule to make target 上的 Cassandra C++ 驱动程序

标签 c++ cassandra macos-high-sierra datastax-php-driver

正在关注 these instructions在 MacOS High Sierra 上安装 DataStax C++ 驱动程序,这是为 Cassandra 安装 DataStax PHP 驱动程序的先决条件。

一切都运行良好,直到我到达“构建和安装 C/C++ 驱动程序”部分中的“make install”行。这就是我收到消息的地方:“制作:*** 没有规则来制作目标‘安装’。停止。”

有人可以帮助我通过这一步吗?

最佳答案

** 已解决 ** 一位 friend 帮助我偶然发现了解决方案。在 MacOS High Sierra 上安装时要记住两件事:

1.) 您需要运行 cpp-driver 的安装(这不是问题中引用的 DataStax 说明中的一个步骤),然后

2.) 您必须完全限定 cmake .. 命令以指向 OpenSSL 安装。

以下是对我有用的修改说明:

   # Datastax C++ driver dependencies
   brew install libuv cmake
   brew install openssl
   brew link --force openssl

   # Install git if you dont have it
   brew install git

   # Retrieve the cpp 
   git clone https://github.com/datastax/cpp-driver.git --depth=1
   mkdir cpp-driver/build
   cd cpp-driver/build

   # Build with qualified path to OpenSSL location
   cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib ..
   make
   make install

   # Install pecl driver
   pecl install cassandra

一旦完成,您就可以开始了。

关于c++ - MacOS High Sierra : make: no rule to make target 上的 Cassandra C++ 驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51214270/

相关文章:

c++ - 类设计与 IDE : Are nonmember nonfriend functions really worth it?

c++ - 获取指向迭代器引用的 STL 容器的指针?

c++ - 在可变扩展中排序

objective-c - NSCollectionView 不会滚动项目超过初始可见矩形

ios - Codesign 在 High Sierra 中返回了 errSecInternalComponent

c++ makefile缺少分隔符问题

java - 从 Cassandra 读取 timeuuid 值 - 使用 DataStax 连接器

Java驱动程序按时间戳删除分区

java - 为什么 Cassandra Node js 驱动程序比 java 慢

在 MacOs High Sierra 中运行的 MongoDB 写入操作非常慢