我正在尝试在我的 Linux 服务器上从源代码安装最新的 Fatrat 下载管理器,但无法处理依赖关系。
有一个包含最新版本 Fatrat 的 GIT 存储库(http://git.dolezel.info/?p=fatrat.git;a=summary)此处的最后一次提交提到了 PION,这是安装 Fatrat 所需的依赖项之一(https://github.com/cloudmeter/pion)。
PION 本身有一些依赖项,因此我安装了最新的 CMAKE 和 BOOST C++ 库(http://www.boost.org/)
但 PION 安装仍然因以下错误而结束:
root@debian:/home/lukas/fatrat-source/pion# cmake .
EXECUTABLE_OUTPUT_PATH = /home/lukas/fatrat-source/pion/Bin/
>>> Building Pion version: 5.0.4
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- thread
-- system
-- filesystem
-- regex
-- unit_test_framework
-- 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)
-- Could NOT find Log4cplus (missing: LOG4CPLUS_LIBRARIES)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
PLUGIN_PATH = /home/lukas/fatrat-source/pion/Bin/; EXECUTABLE_OUTPUT_PATH = /home/lukas/fatrat-source/pion/Bin/
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENSSL_CRYPTO_LIBRARY (ADVANCED)
linked by target "pion" in directory /home/lukas/fatrat-source/pion/src
OPENSSL_SSL_LIBRARY (ADVANCED)
linked by target "pion" in directory /home/lukas/fatrat-source/pion/src
-- Configuring incomplete, errors occurred!
See also "/home/lukas/fatrat-source/pion/CMakeFiles/CMakeOutput.log".
See also "/home/lukas/fatrat-source/pion/CMakeFiles/CMakeError.log".
root@debian:/home/lukas/fatrat-source/pion#
但是OpenSSL也肯定已经安装了。
当尝试安装 Fatrat 时,它的 CMAKE 以以下内容结束(可能是因为缺少 PION):
...
[ 99%] Building CXX object CMakeFiles/fatrat.dir/qrc_resources.cxx.o
Linking CXX executable fatrat
/usr/bin/ld: cannot find -licui18n
/usr/bin/ld: cannot find -licuuc
/usr/bin/ld: cannot find -licudata
/usr/bin/ld: cannot find -lboost_regex-mt
/usr/bin/ld: cannot find -lboost_signals-mt
/usr/bin/ld: cannot find -lboost_iostreams-mt
collect2: error: ld returned 1 exit status
make[2]: *** [fatrat] Error 1
make[1]: *** [CMakeFiles/fatrat.dir/all] Error 2
make: *** [all] Error 2
root@debian:/home/lukas/Downloads/fatrat-1.2.0_beta2#
下一步我应该做什么来解决这个依赖关系?
答案1
对于 Debian,请参阅以前 fatrat 版本的“Build-Depends”:
你可以使用一个命令获取构建依赖项:
apt-get build-dep fatrat