![install gfortran in ubuntu install gfortran in ubuntu](https://4.bp.blogspot.com/-7JW00JpDNWw/UfJVO7RG4dI/AAAAAAAABX0/1F-ih9FEY0I/s1600/Screen+Shot+2013-07-26+at+3.01.26+PM.png)
#Install gfortran in ubuntu manual
Update-alternatives: using /usr/bin/gcc-5 to provide /usr/bin/gcc (gcc) in manual gcc -version Press to keep the current choice, or type selection number: 1 There are 3 choices for the alternative gcc (providing /usr/bin/gcc). Update-alternatives: updating alternative /usr/bin/gcc-6 because link group gcc has changed slave sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-5 50 -slave /usr/bin/g++ g++ /usr/bin/g++-5 -slave /usr/bin/gfortran gfortran sudo update-alternatives -config gcc Update-alternatives: error: alternative path /usr/bin/gcc-6.5 doesn't sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-6 100 -slave /usr/bin/g++ g++ /usr/bin/g++-6 -slave /usr/bin/gfortran gfortran /usr/bin/gfortran-6 Update-alternatives: error: unknown argument sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-6.5 100 -slave /usr/bin/g++ g++ /usr/bin/g++-6.5 -slave /usr/bin/gfortran gfortran /usr/bin/gfortran-6.5 Update-alternatives: error: unknown argument sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-6.5 100 -slave /usr/bin/g++ g++ /usr/bin/g++-6.5 /usr/bin/gfortran gfortran /usr/bin/gfortran-6.5 This resolved the installation issues.įollowing are the steps to use a specific version of compiler sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-6.5 100 /usr/bin/g++ g++ /usr/bin/g++-6.5 /usr/bin/gfortran gfortran /usr/bin/gfortran-6.5 To lower version for gcc and g++ (both to 5.5).
#Install gfortran in ubuntu install
Now there were multiple gcc and g++ versions in my system, to perform proper install I had to switch This installed gfortran 5.5 on my system. Here, the issue came up due to different version of gfortran(5.5) from gcc and g++ (both 6.5)
![install gfortran in ubuntu install gfortran in ubuntu](https://i.ytimg.com/vi/X7M57rhFhc4/hqdefault.jpg)
Under the terms of the GNU General Public License.įor more information about these matters, see the file named COPYING You may redistribute copies of GNU Fortran GNU Fortran comes with NO WARRANTY, to the extent permitted by law. Warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR gfortran -version Warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR gcc -version This is free software see the source for copying conditions.