-
-
Save goldsborough/d466f43e8ffc948ff92de7486c5216d6 to your computer and use it in GitHub Desktop.
# Instructions for installing GCC 4.9 on various platforms. | |
# The commands show instructions for GCC 4.9, but any higher version will also work! | |
# Ubuntu (https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu/581497#581497) | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install gcc-4.9 g++-4.9 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 | |
# CentOS (https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/) | |
sudo yum install centos-release-scl | |
sudo yum-config-manager --enable rhel-server-rhscl-7-rpms | |
sudo yum install devtoolset-3 | |
scl enable devtoolset-3 bash |
For those who don't have root access and are in a conda environment, do this:
conda install -c psi4 gcc-5
It works for me!!! Thanks!
# CentOS 7 sudo yum install centos-release-scl sudo yum install devtoolset-7-gcc* scl enable devtoolset-7 bash which gcc gcc --version
It works for me!!! Thanks!
CentOs 7.8
I've tried with:
conda https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
to install GCC-5.4.0
Hope it helps.
conda https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
That worked for me-- thanks!!
conda https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
to install GCC-5.4.0
I get:
$ conda https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
usage: conda [-h] [-V] command ...
conda: error: argument command: invalid choice: 'https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2' (choose from 'clean', 'compare', 'config', 'create', 'info', 'init', 'install', 'list', 'package', 'remove', 'rename', 'run', 'search', 'uninstall', 'update', 'upgrade', 'notices')
For those who don't have root access and are in a conda environment, do this:
conda install -c psi4 gcc-5
No working for our school HPC
conda https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
to install GCC-5.4.0
I get:
$ conda https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2 usage: conda [-h] [-V] command ... conda: error: argument command: invalid choice: 'https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2' (choose from 'clean', 'compare', 'config', 'create', 'info', 'init', 'install', 'list', 'package', 'remove', 'rename', 'run', 'search', 'uninstall', 'update', 'upgrade', 'notices')
conda install https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
This is the correct command and it works! If you are on remote system and you do not have sudo access then this command should help.
conda install https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
This command delete my gpu driver and other driver softweres
Just when i thought "i don know this channel tho..."
This is the correct command and it works! If you are on remote system and you do not have sudo access then this command should help.
conda install https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
It works for me, thank!
conda install https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
It works for me, thank you.
This is the correct command and it works! If you are on remote system and you do not have sudo access then this command should help.
conda install https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
This worked for me. Thanks for sharing!
it works!!!!! Thank you!!!!