在os x yosemite中更新Openssl

时间:2015-03-13 13:27:39

标签: macos openssl homebrew 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!

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

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

更换" openssl"的dylib和" libcrypto"使用最新版本并制作其中的别名 FAILED

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

2 个答案:

答案 0 :(得分:7)

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

答案 1 :(得分:1)

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