libgcc-ng, libstdcxx-ng do exist in conda-forge. But they're for Linux only, not for macOS, Windows.
- conda-forge/libgcc-ng
- conda-forge/libstdcxx-ng
These two packages include libraries for gcc. For macOS, install gcc with homebrew. They are contained by the gcc package already.
brew install gcc
Answer from Simba on Stack Overflowpython - PackagesNotFoundError: The following packages are not available from current channels (libgcc-ng and libstdcxx-ng) - Stack Overflow
python - Snakemake/miniforge: Nothing provides libgcc-ng >=12 needed by freebayes-1.3.6-hbfe0e7f_2 - Stack Overflow
pymol-open-source -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
Installation Issue: MOOSE Installation Fails on Linux Ubuntu 22.04.3 as libgcc-ng >=12 does not exist
libgcc-ng, libstdcxx-ng do exist in conda-forge. But they're for Linux only, not for macOS, Windows.
- conda-forge/libgcc-ng
- conda-forge/libstdcxx-ng
These two packages include libraries for gcc. For macOS, install gcc with homebrew. They are contained by the gcc package already.
brew install gcc
As @Simba correctly points out those packages are for linux-* platforms only. If your goal is simply to have a C/C++ compiler (not specifically GCC), consider instead using
conda install -c conda-forge compilers
This will install a platform-appropriate compiler on each platform, and populates the environment variables CC, CXX and GFORTRAN with paths to the respective compilers.
Bioconda as a channel depends on Conda Forge and so specifying bioconda as the only channel is incorrect. Instead, a proper specification for using the bioconda channel is
name: freebayes
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- freebayes=1.3.6
See the channel configuration in the Usage section.
If this helps, I can recreate the issue with:
conda config --set channel_priority strict
mamba env create --file freebayes.yaml
...
Looking for: ['freebayes=1.3.6']
Encountered problems while solving:
- package freebayes-1.3.6-h346b5cb_1 requires htslib >=1.14,<1.15.0a0, but none of the providers can be installed
I can fix it by setting:
conda config --set channel_priority flexible
mamba env create ... # Ok now
Once done, you may want to reset it:
conda config --set channel_priority strict
since at the time of this writing bioconda recommends strict priority.