如何解决与anaconda库冲突的CMake警告?

时间:2018-09-08 14:28:36

标签: ubuntu cmake anaconda

我正在使用CMake来安装 Gym Retro ,但是每次我运行命令

PISM_INSTALL_PREFIX=~/pism PATH=$NOCONDA_PATH cmake .

我收到警告:

CMake Warning at src/ui/CMakeLists.txt:35 (add_executable):
Cannot generate a safe runtime search path for target gym-retro-integration
because files in some directories may conflict with libraries in implicit
directories:

runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/username/anaconda3/lib

Some of these libraries may not be found correctly.

如您所见,我使用了一个名为 NOCONDA_PATH 的PATH变量,它消除了PATH变量中的conda并看起来像这样:

/home/username/bin:/home/username/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

根据其他教程,像这样从PATH变量中删除conda应该可以解决问题,但是我仍然收到相同的警告消息。 关于如何解决此问题的任何想法?

0 个答案:

没有答案