在 os x yosemite 中更新 Openssl


-- 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!

尝试使用"brew"和"mac端口"安装openssl最新版本1.0.2,但仍然没有运气。

还试图将路径作为"cmake"失败的前缀

将"openssl"和"libcrypto"的dylib替换为最新版本并使它们的别名失败

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

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

好的

,所以我解决了这个问题,我正在使用 http://ohmyz.sh,在zsh中更新"PATH"是一团糟。卸载zsh并使用"brew"重新安装所有内容后,可以解决问题。现在一切正常:)

最新更新