Anaconda init interfere with compiling freecad

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
shahram10715
Posts: 22
Joined: Sat Apr 20, 2019 7:09 am
Contact:

Anaconda init interfere with compiling freecad

Post by shahram10715 »

I have installed Anaconda on my Ubuntu machine, and I set it to init so that every time I start my bash I see a (Base) to the left of my prompt. When I execute the cmake command several of these warnings appear and after that I cannot execute make command:
CMake Warning at src/Mod/TechDraw/Gui/CMakeLists.txt:385 (add_library):
Cannot generate a safe runtime search path for target TechDrawGui because
files in some directories may conflict with libraries in implicit
directories:

runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/sh/anaconda3/lib
runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/sh/anaconda3/lib
runtime library [libpython3.7m.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/sh/anaconda3/lib

Some of these libraries may not be found correctly.


CMake Warning at src/Gui/CMakeLists.txt:1341 (add_library):
Cannot generate a safe runtime search path for target FreeCADGui 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/sh/anaconda3/lib
runtime library [libpython3.7m.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/sh/anaconda3/lib

Some of these libraries may not be found correctly.

The solution is to deactivate conda:

Code: Select all

conda config --set auto_activate_base false
And you can change it back by changing false to true.
I didn't know that if I should make an issue on GitHub or make a forum post. Finally I decided to post it here and help other avoid my mistake.
Post Reply