在os x yosemite中更新Openssl

Ham*_*hah 3 macos homebrew openssl macports

-- Build of crashreporter disabled.
-- Found Qt5 core, checking for further dependencies...
-- Using Qt 5!
-- GIT_SHA1 40cdbda31285d9090d8109b10b244aa4740a5891
-- Using Qt 5.4.x
-- We would not require Neon in this setup, compile without!
CMake Error at /usr/local/Cellar/cmake/3.1.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR: Found unsuitable version "0.9.8zc", but
required is at least "1.0.0" (found
/usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.1.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.1.3/share/cmake/Modules/FindOpenSSL.cmake:318  (find_package_handle_standard_args)
CMakeLists.txt:146 (find_package)

-- Configuring incomplete, errors occurred!
Run Code Online (Sandbox Code Playgroud)

尝试使用"brew"安装openssl最新版本1.0.2并使用"mac ports"但仍然没有运气.

还尝试将路径作为"cmake" FAILED的前缀

用最新版本替换"openssl"和"libcrypto"的dylib并使其别名失败

所以任何人都有解决方案??? 我正在尝试构建 https://github.com/owncloud/client

Tim*_*ith 7

为什么不接受cmake给你的建议?在运行cmake之前,请export OPENSSL_ROOT_DIR=$(brew --prefix openssl)在同一个终端会话中运行.