在编译ownCloud客户端时出错“无法找到OpenSSL”

时间:2015-04-05 18:14:54

标签: openssl ubuntu-14.04 owncloud

我正在尝试在桌面上编译ownCloud-client。但它给出了以下错误:

cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_PREFIX_PATH=/usr/bin/openssl ../client
    -- Build of crashreporter disabled.
    -- Could not find Qt5, searching for Qt4 instead...
    -- GIT_SHA1 71e8910e0261dca4933792b4e38f7d649409d6df
    -- If possible compile me with Qt 5.4 which is much faster/better.
    -- neon-config executable: /usr/bin/neon-config
    -- libneon has not been compiled with LFS support, rely on OS
    CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
      Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
      system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
      OPENSSL_INCLUDE_DIR) (Required is at least version "1.0.0")
    Call Stack (most recent call first):
      /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
      /usr/share/cmake-2.8/Modules/FindOpenSSL.cmake:313 (find_package_handle_standard_args)
      CMakeLists.txt:146 (find_package)


    -- Configuring incomplete, errors occurred!

操作系统是Ubuntu 14.04,openssl安装在地址/usr/bin/openss中。 我也运行cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_PREFIX_PATH=/usr/bin/openssl ../client,但没有任何改变。

我如何解决云问题?

1 个答案:

答案 0 :(得分:9)

尝试使用

安装libssl-dev软件包
apt-get install libssl-dev