我是一名 Ubuntu 新手,正在尝试安装免费的 RDP 软件。我按照建议的编译步骤进行操作(FreeRDP 站点)。首先,我克隆了存储库并安装了基本依赖项,没有任何问题。但是,在执行 cmake 时:
$ cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON .
我收到此警告:
CMake Warning at client/common/CMakeLists.txt:58 (add_library):
Cannot generate a safe runtime search path for target freerdp-client
because files in some directories may conflict with libraries in implicit
directories:
runtime library [libgstreamer-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/anymyos/anaconda3/lib
runtime library [libgstbase-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/anymyos/anaconda3/lib
runtime library [libgstapp-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/anymyos/anaconda3/lib
runtime library [libgstvideo-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/anymyos/anaconda3/lib
Some of these libraries may not be found correctly.
-- Generating done
-- Build files have been written to: /home/anymyos/FreeRDP
如果我忽略警告并继续“make”,最后会出现以下错误:
[ 96%] Linking C executable generate_argument_docbook
/usr/bin/ld: warning: libpcre.so.1, needed by
//home/anymyos/anaconda3/lib/libglib-2.0.so.0, not found (try using -rpath or -rpath-link)
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_exec'
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_study'
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_dfa_exec'
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_fullinfo'
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_get_stringnumber'
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_compile2'
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_get_stringtable_entries'
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_free'
//home/anymyos/anaconda3/lib/libglib-2.0.so.0: undefined reference to `pcre_config'
collect2: error: ld returned 1 exit status
client/X11/CMakeFiles/generate_argument_docbook.dir/build.make:97: recipe for target 'client/X11/generate_argument_docbook' failed
make[2]: *** [client/X11/generate_argument_docbook] Error 1
CMakeFiles/Makefile2:3514: recipe for target 'client/X11/CMakeFiles/generate_argument_docbook.dir/all' failed
make[1]: *** [client/X11/CMakeFiles/generate_argument_docbook.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
我以前安装过 Anaconda Python,通过查看错误(该目录已添加到 PATH),似乎此错误是由于与 python 库目录发生冲突而导致的。有什么建议可以解决吗?
答案1
正如我所想,问题在于 Anaconda python 被添加为 的第一个条目PATH
,从中删除 AnacondaPATH
解决了这个问题。我按照如下方式操作:
export PATH="/usr/local/sbin:/usr/local/bin:\ /usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
我找到了解决方案这里