正在关注 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/