# GFORTRAN install

**URL:** <https://forums.suse.com/t/gfortran-install/30100>\
**Category:** SLES Configure-Administer\
**Created:** [July 28, 2017, 3:21pm UTC](https://forums.suse.com/t/gfortran-install/30100 "2017-07-28T15:21:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vial213](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@vial213](https://forums.suse.com/u/vial213)\
**Post date:** [July 28, 2017, 3:21pm UTC](https://forums.suse.com/t/gfortran-install/30100/1 "2017-07-28T15:21:09Z")

</div>

Hullo, I’m working on a SLES 11 SP3 system, with the gfortran 4.7 compiler.

I’d like to update gfortran to one of the latest releases (6 or 7).

Could anyone tell me step by step what I should do for the installation, and all the related dependencies issues?

Thank you very much.

Alessandro

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [July 28, 2017, 5:17pm UTC](https://forums.suse.com/t/gfortran-install/30100/2 "2017-07-28T17:17:34Z")

</div>

On 28/07/17 13:24, vial213 wrote:  
[color=blue]

> Hullo, I’m working on a SLES 11 SP3 system, with the gfortran 4.7  
> compiler.
> 
> I’d like to update gfortran to one of the latest releases (6 or 7).
> 
> Could anyone tell me step by step what I should do for the installation,  
> and all the related dependencies issues?
> 
> Thank you very much.[/color]

Firstly please note that SLES11 SP3 is no longer supported by SUSE with  
the latest SLES11 release SLES11 SP4 and the latest SLES release being  
SLES12 SP2.

Checking my test servers I believe the latest version of GNU Fortran  
available for SLES11 SP3 is 4.7 (or 4.8 for later releases) through the  
corresponding Software Development Kit (SDK).

However with SLES12 SUSE introduced the Modules and Extensions with one  
being the Toolchain Module precisely to provide later versions of  
compilers - see  
[https://www.suse.com/communities/blog/suse-linux-enterprise-server-12-toolchain-module-released/](https://www.suse.com/communities/blog/suse-linux-enterprise-server-12-toolchain-module-released/)  
.. This provides GNU Fortran 5.3.1 and 6.2.1 and I expect in due course  
will provide 7.x.

Basically if you want a later and supported version of GNU Fortran you  
should upgrade your server to SLES12 SP2.

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [July 28, 2017, 5:26pm UTC](https://forums.suse.com/t/gfortran-install/30100/3 "2017-07-28T17:26:00Z")

</div>

Hi  
Not possible to look at updating the whole system to a supported release?

There is a build on OBS, totally unsupported etc at;  
[https://build.opensuse.org/package/binaries/devel:languages:go/gcc6?repository=SLE\_11\_SP3](https://build.opensuse.org/package/binaries/devel:languages:go/gcc6?repository=SLE_11_SP3)

Repository here;  
[http://download.opensuse.org/repositories/devel:/languages:/go/SLE\_11\_SP3/](http://download.opensuse.org/repositories/devel:/languages:/go/SLE_11_SP3/)

Backup your system before adding this repo and installing gcc6, fortran etc.

---

<div class="post-metadata">

**Author:** ![vial213](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@vial213](https://forums.suse.com/u/vial213)\
**Post date:** [July 28, 2017, 5:32pm UTC](https://forums.suse.com/t/gfortran-install/30100/4 "2017-07-28T17:32:58Z")

</div>

[QUOTE=malcolmlewis;38899]Hi  
Not possible to look at updating the whole system to a supported release?

There is a build on OBS, totally unsupported etc at;  
[https://build.opensuse.org/package/binaries/devel:languages:go/gcc6?repository=SLE\_11\_SP3](https://build.opensuse.org/package/binaries/devel:languages:go/gcc6?repository=SLE_11_SP3)

Repository here;  
[http://download.opensuse.org/repositories/devel:/languages:/go/SLE\_11\_SP3/](http://download.opensuse.org/repositories/devel:/languages:/go/SLE_11_SP3/)

Backup your system before adding this repo and installing gcc6, fortran etc.[/QUOTE]

Hullo Malcom, thanks for your replay.  
For the moment I don’t have the possibility to update the OS.  
But… which of these rpm packages should I install (and in which order)…?

A.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [July 28, 2017, 6:25pm UTC](https://forums.suse.com/t/gfortran-install/30100/5 "2017-07-28T18:25:53Z")

</div>

[QUOTE=vial213;38900]Hullo Malcom, thanks for your replay.  
For the moment I don’t have the possibility to update the OS.  
But… which of these rpm packages should I install (and in which order)…?

A.[/QUOTE]  
Hi  
If you add the repository via YaST (or zypper) then install gcc6-fortran it will pull in dependencies.

For example via zypper;

```auto
zypper ar -f -g -n "SLE-11-SP3-gcc6" http://download.opensuse.org/repositories/devel:/languages:/go/SLE_11_SP3/ repo-gcc6
zypper ref
zypper -vvvv in gcc6-fortran
```

The -vvvv will add verbosity so you can see what it’s going to do, then can make a choice to accept, any potential errors etc…

---

<div class="post-metadata">

**Author:** ![vial213](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@vial213](https://forums.suse.com/u/vial213)\
**Post date:** [July 31, 2017, 10:40am UTC](https://forums.suse.com/t/gfortran-install/30100/6 "2017-07-31T10:40:19Z")

</div>

[QUOTE=malcolmlewis;38906]Hi  
If you add the repository via YaST (or zypper) then install gcc6-fortran it will pull in dependencies.

For example via zypper;

```auto
zypper ar -f -g -n "SLE-11-SP3-gcc6" http://download.opensuse.org/repositories/devel:/languages:/go/SLE_11_SP3/ repo-gcc6
zypper ref
zypper -vvvv in gcc6-fortran
```

The -vvvv will add verbosity so you can see what it’s going to do, then can make a choice to accept, any potential errors etc…[/QUOTE]

Thank you very much Malcom.  
The last step with zypper gave me an error, but I was finally able to install gfortran-6 using yast.
