GCC in Anaconda
Sometimes, we may not have root access to install software packages. In this case, we can use Anaconda and specifically conda-forge to install the GCC compiler and other software packages we need.
Install GCC
To install the GCC compiler, we can use the following :
Check the version of the GCC compiler:
This should show the version of the GCC compiler installed in the conda environment.
Troubleshooting
version `GLIBCXX_3.4.XX' not found
- Check whether libstdc++ is installed in the conda environment:
If the library is not found, then follow Install GCC to install the GCC compiler.
- Check whether the symbolic link is pointing to the correct version:
If nothing there, we need to create a symbolic link:
This will create a symbolic link to the correct version of the library.