I'm not sure how exactly the packages relate, but I needed to install the gcc package to resolve some sort of load error. Given that gcc didn't produce any results, I ran a quick
Copy$ conda search gcc
Which yielded, among other things, gcc_linux-64. After
Copy$ conda install gcc_linux-64
My issue went away, despite the fact that which gcc still pointed to the system install 🤷♂️
I'm not sure how exactly the packages relate, but I needed to install the gcc package to resolve some sort of load error. Given that gcc didn't produce any results, I ran a quick
Copy$ conda search gcc
Which yielded, among other things, gcc_linux-64. After
Copy$ conda install gcc_linux-64
My issue went away, despite the fact that which gcc still pointed to the system install 🤷♂️
I had to install two conda packages to fix this issue:
Copy$ conda install gcc_linux-64
$ conda install gxx_linux-64
linux - GCC-11 installation error in centos 7 (environmental changes)? - Unix & Linux Stack Exchange
Is there a way to install GCC-11 in linux mint 20.3?
linux - How to make conda use its own gcc version? - Stack Overflow
Deprecated GCC install command on Linux 64-bit systems
I am not extremely adept in all things linux nor gcc, but after doing an apt search gcc-11 I get nothing, After doing an apt search gcc I do not see anything that shows an 11 version AFAICT, and when I try and follow what this link says it doesn't work because it doesn't find the package.
Thanks
Just to share, not sure it will help you. However it shows that in standard conditions it is possible to use the conda gcc as described in the documentation instead of the system gcc.
# system gcc
which gcc && gcc --version
# /usr/bin/gcc
# gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
# creating a conda env with gcc
conda create -n gcc gcc
# activate the environment
conda activating gcc
which gcc && gcc --version
# /opt/conda/envs/gcc/bin/gcc
# gcc (GCC) 11.2.0
Here is the list of packages installed on a fresh environment created with only gcc.
# packages in environment at /opt/conda/envs/gcc:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 1_gnu conda-forge
binutils_impl_linux-64 2.36.1 h193b22a_2 conda-forge
gcc 11.2.0 h702ea55_2 conda-forge
gcc_impl_linux-64 11.2.0 h82a94d6_11 conda-forge
kernel-headers_linux-64 2.6.32 he073ed8_15 conda-forge
ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge
libgcc-devel_linux-64 11.2.0 h0952999_11 conda-forge
libgcc-ng 11.2.0 h1d223b6_11 conda-forge
libgomp 11.2.0 h1d223b6_11 conda-forge
libsanitizer 11.2.0 he4da1e4_11 conda-forge
libstdcxx-ng 11.2.0 he4da1e4_11 conda-forge
sysroot_linux-64 2.12 he073ed8_15 conda-forge
In addition to the solution posted in this issue. I added symbolic-links that point to the conda installed gcc, which I was missing.
ln -s /home/envs/segmentation_base/bin/x86_64-conda_cos6-linux-gnu-cc gcc
ln -s /home/envs/segmentation_base/bin/x86_64-conda_cos6-linux-gnu-cpp g++