# gfortran command was not found when compiling some R package

**URL:** <https://forums.suse.com/t/gfortran-command-was-not-found-when-compiling-some-r-package/23178>\
**Category:** SLES Configure-Administer\
**Created:** [October 10, 2012, 5:25pm UTC](https://forums.suse.com/t/gfortran-command-was-not-found-when-compiling-some-r-package/23178 "2012-10-10T17:25:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidehs](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@davidehs](https://forums.suse.com/u/davidehs)\
**Post date:** [October 10, 2012, 5:25pm UTC](https://forums.suse.com/t/gfortran-command-was-not-found-when-compiling-some-r-package/23178/1 "2012-10-10T17:25:59Z")

</div>

I am trying to install some R packages for my data analysis. Most of them were installed successfully. But some issued the error messages “make: gfortran: Command not found”. Do you guys know where I can get the linux package including gfortran command?

I am running SLES11. Here is the output from SuSE-release file.  
cat /etc/SuSE-release  
SUSE Linux Enterprise Server 11 (x86\_64)  
VERSION = 11  
PATCHLEVEL = 1

I regularly update my system. Do not understand why gfortran package is not included in SUSE system?

Thanks very much for you guys help!

David

---

<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:** [October 10, 2012, 6:30pm UTC](https://forums.suse.com/t/gfortran-command-was-not-found-when-compiling-some-r-package/23178/2 "2012-10-10T18:30:22Z")

</div>

> [@davidehs](#):
>
> I am trying to install some R packages for my data analysis. Most of  
> them were installed successfully. But some issued the error messages  
> “make: gfortran: Command not found”. Do you guys know where I can get  
> the linux package including gfortran command?
> 
> I am running SLES11. Here is the output from SuSE-release file.  
> cat /etc/SuSE-release  
> SUSE Linux Enterprise Server 11 (x86\_64)  
> VERSION = 11  
> PATCHLEVEL = 1
> 
> I regularly update my system. Do not understand why gfortran package is  
> not included in SUSE system?
> 
> Thanks very much for you guys help!
> 
> David

Hi  
You need to add the SLE 11 SP1 SDK;  
[http://download.novell.com/Download?buildid=zzeQqpY9nK4~](http://download.novell.com/Download?buildid=zzeQqpY9nK4~)

Download the iso image and add this via YaST → Add on products.

```auto
zypper if gcc-fortran
Refreshing service 'nu_novell_com'.
Loading repository data...
Reading installed packages...

Information for package gcc-fortran:

Repository: SLE11-SDK-SP1-Pool
Name: gcc-fortran
Version: 4.3-62.198
Arch: i586
Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Support Level: unknown
Installed: No
Status: not installed
Installed Size: 0 B
Summary: The system GNU Fortran Compiler
Description:
The system GNU Fortran Compiler.
```

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
openSUSE 12.2 (x86\_64) Kernel 3.4.6-2.10-desktop  
up 1:24, 4 users, load average: 0.09, 0.29, 0.22  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

---

<div class="post-metadata">

**Author:** ![davidehs](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@davidehs](https://forums.suse.com/u/davidehs)\
**Post date:** [October 10, 2012, 10:50pm UTC](https://forums.suse.com/t/gfortran-command-was-not-found-when-compiling-some-r-package/23178/3 "2012-10-10T22:50:56Z")

</div>

Thanks very much, malcolmlewis. The problem was solved by following your suggestion. Really appreciate your help!

David
