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 🤷‍♂️

Answer from dsfbmmg on Stack Overflow
🌐
Anaconda.org
anaconda.org › conda-forge › gcc
gcc - conda-forge | Anaconda.org
conda-forge/gcc · Community · GNU C native compiler (symlinks) Copied fromcf-post-staging / gcc · Overview · Files 797 · Labels 5 · Badges · Versions · 15.2.0 · To install this package, run one of the following: $conda install conda-forge::gcc · Monthly · Downloads Updates ·
Discussions

linux - GCC-11 installation error in centos 7 (environmental changes)? - Unix & Linux Stack Exchange
I installed the latest version of GCC 11.2V using conda, conda install -c conda-forge gcc" in my linux server (Centos7). After I try to login into my server, after login it shows some weird ... More on unix.stackexchange.com
🌐 unix.stackexchange.com
April 12, 2022
Is there a way to install GCC-11 in linux mint 20.3?
Have you tried manually initiating a repo and package upgrade using sudo apt update && sudo apt upgrade -y It may be that you added the repo, but did not update apt to get the packages from that repo, which is why apt can't find anything. It knows that the next time you update, it needs to pull from the new repo, but it has not yet done that, and therefore can't show packages from that repo (such as gcc-11). That's my guess based on the information you gave. More on reddit.com
🌐 r/linuxquestions
8
7
September 16, 2022
linux - How to make conda use its own gcc version? - Stack Overflow
# Name Version Build Channel ... zlib 1.2.11 h7b6447c_3 zstd 1.4.9 haebb681_0 ... I see that you have only the gcc_impl_linux-64 and not the gcc package unlike in the package list from a fresh environment. Have you tried to install the gcc package in your conda ... More on stackoverflow.com
🌐 stackoverflow.com
Deprecated GCC install command on Linux 64-bit systems
The instruction “Run conda install gcc make⏎ to install GCC and GNU Make” in the MFIX documentation (https://mfix.netl.doe.gov/doc/mfix/20.4.0/getting_started/install-linux.html) seems to be deprecated since Anaconda v5. Could the tutorial be updated to suggest trying “conda install ... More on mfix.netl.doe.gov
🌐 mfix.netl.doe.gov
2
0
January 11, 2021
🌐
GitHub
github.com › conda-forge › ctng-compiler-activation-feedstock › issues › 52
Installing gcc does not add it in the PATH of the conda environment · Issue #52 · conda-forge/ctng-compiler-activation-feedstock
September 5, 2021 - conda create --name gcc11 conda activate gcc11 conda config --add channels conda-forge conda config --set channel_priority strict conda install gcc_linux-64 (installs gcc11) gcc --version (prints 9.3, my system gcc, since it's calling /usr/bin/gcc) ...
Author   conda-forge
🌐
conda-forge
conda-forge.org › blog › 2025 › 11 › 21 › gcc-macos
gcc, g++ builds on macos | conda-forge | community-driven packaging for conda
November 21, 2025 - Today, we announce the availability of gcc, g++ compilers on macos. You can install them using:
🌐
Stack Exchange
unix.stackexchange.com › questions › 698886 › gcc-11-installation-error-in-centos-7-environmental-changes
linux - GCC-11 installation error in centos 7 (environmental changes)? - Unix & Linux Stack Exchange
April 12, 2022 - I could solve it this ways: remove gcc (and gxx if you have it in your current env) ... I would highly recommend mamba since it's super fast! ... *ERROR:* This cross-compiler package contains no program /home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc
🌐
Anaconda.org
anaconda.org › conda-forge › gcc_linux-64
gcc_linux-64 - conda-forge
View packages from the conda-forge channel on Anaconda.org.
🌐
Conda
docs.conda.io › projects › conda-build › en › latest › resources › compiler-tools.html
Anaconda compiler tools — conda-build 0.0.0.dev0+placeholder documentation
The compiler packages can be installed with conda. Because they are designed with (pseudo) cross-compiling in mind, all of the executables in a compiler package are "prefixed." Instead of gcc, the executable name of the compiler you use will be something like x86_64-conda_cos6-linux-gnu-gcc.
🌐
Atlassian
harvardmed.atlassian.net › wiki › spaces › O2 › pages › 2557575188
GCC within Conda - HMS IT RC O2 - Confluence
Firstly, the packages to conda install are actually gcc_linux-64 and gxx_linux-64. You will (probably) need both packages. You can specify versions if you’d like, such as gcc_linux-64=9; make sure that if you do so, you specify the same version for both.
Find elsewhere
🌐
Prefix.dev
prefix.dev › channels › conda-forge › packages › gcc
gcc - conda-forge
pixi add gcc · conda install -c https://prefix.dev/conda-forge gcc · gcc package does not contain a description · Loading chart data... 15.2.0 · BSD-3-Clause · linux-64 · linux-aarch64 · linux-ppc64le · osx-64 · osx-arm64 · win-64 ...
🌐
Narkive
conda.continuum.narkive.com › QB7lx2xd › using-the-gcc-package
[conda] Using the gcc package
The recipe is at https://github.com/conda/conda-recipes/tree/master/gcc-4.8. To answer your question, post install scripts are possible with conda, but it's highly preferable to avoid them if possible, as they add a high degree of potential for breakage to the package install process. Aaron Meurer · Post by Stuart Berg Thanks Floris and Aaron, for your informative responses. I've now created my own CentOS 5.11 VM in which I can build my own C++ conda packages using the conda-provided gcc binary.
🌐
GitHub
github.com › sherpa › sherpa › issues › 1325
building with conda and gcc 11 for linux · Issue #1325 · sherpa/sherpa
October 18, 2021 - % conda install gcc_linux-64 gxx_linux-64 gfortran_linux-64
Author   sherpa
🌐
Anaconda.org
anaconda.org › conda-forge › gcc › files
gcc - conda-forge
Install gcc with Anaconda.org. GNU C native compiler (symlinks)
🌐
Anaconda.org
anaconda.org › conda-forge › gcc › files
11.4.0
GNU C native compiler (symlinks) copied from cf-post-staging / gcc · Conda · Files · Labels · Badges · No files were selected × · Filters · Type: All · All · conda · Version: 11.4.0 · All · 15.2.0 · 15.1.0 · 14.3.0 · 14.2.0 · 14.1.0 · 13.4.0 · 13.3.0 ·
🌐
Google Groups
groups.google.com › g › sage-devel › c › CkcF-cqQA_s › m › eQVQd4VtDgAJ
Source Build Fails on GCC-10
Disable conda, since we don’t need it to do any package management for sage. ... Point it to system gcc-10 and fortran-10 for compilation. It can’t use gcc-11 as of the time of this writing.
Top answer
1 of 2
2

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
2 of 2
0

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++
🌐
Doe
mfix.netl.doe.gov › forum › t › deprecated-gcc-install-command-on-linux-64-bit-systems › 2475
Deprecated GCC install command on Linux 64-bit systems - MFiX - NETL Flow Science Software Support
January 11, 2021 - The instruction “Run conda install gcc make⏎ to install GCC and GNU Make” in the MFIX documentation (https://mfix.netl.doe.gov/doc/mfix/20.4.0/getting_started/install-linux.html) seems to be deprecated since Anaconda v5.…