【发布时间】:2021-08-19 13:35:32
【问题描述】:
我正在尝试在我的 Mac OS 上安装 MySql 连接器 c++ 库,但是当我尝试这样配置它时:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/mysql/connector-c++-8.0
我在中间得到以下错误:
Configuring CDK as part of MySQL_CONCPP project
-- Looking for SSL library.
CMake Error at cdk/cmake/DepFindSSL.cmake:79 (message):
Cannot find appropriate system libraries for SSL. Make sure you've
specified a supported SSL version. Consult the documentation for WITH_SSL
alternatives
Call Stack (most recent call first):
cdk/cmake/DepFindSSL.cmake:354 (main)
cdk/cmake/dependency.cmake:42 (include)
cdk/CMakeLists.txt:96 (find_dependency)
-- Setting up Protobuf.
WITH_SSL 选项的文档建议我输入一个路径,但我不知道该输入什么
【问题讨论】:
-
也许只是 Mac 上的
sudo apt-get install libssl-dev等价物? -
嗨@pptaszni,在mac os上,libssl已经安装了。
标签: cmake openssl mysql-connector macos-big-sur