[英]Cassandra C++ driver on MacOS High Sierra: make: no rule to make target
按照以下說明在MacOS High Sierra上安裝DataStax C ++驅動程序,這是為Cassandra安裝DataStax PHP驅動程序的先決條件。
一切運行良好,直到我到達“構建和安裝C / C ++驅動程序”部分中的“ make install”行。 那是我收到消息的地方:“ make:***沒有規則可以使目標`install'。停止。”
有人可以幫助我超越這一步嗎?
**解決了**一位朋友幫助我迷失了解決方案。 在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
一旦完成,您應該就可以開始了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.