# Problem with installing Code\_Saturne on cluster (lgfortranbegin)

**URL:** <https://code-saturne.org/forum/t/problem-with-installing-code-saturne-on-cluster-lgfortranbegin/1807>\
**Category:** Installation issues\
**Created:** [November 14, 2019, 7:58am UTC](https://code-saturne.org/forum/t/problem-with-installing-code-saturne-on-cluster-lgfortranbegin/1807 "2019-11-14T07:58:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@Mohammad](https://code-saturne.org/forum/u/Mohammad)\
**Post date:** [November 14, 2019, 7:58am UTC](https://code-saturne.org/forum/t/problem-with-installing-code-saturne-on-cluster-lgfortranbegin/1807/1 "2019-11-14T07:58:18Z")

</div>

Hello,

I just installed code\_saturne 5.0.9 on a cluster.

When I run the “code\_saturne run” command it gives this error in compile.log file:

> /usr/bin/ld: cannot find -lgfortranbegin

I attached the compile.log file.  
[compile.log](https://code-saturne.org/forum/uploads/short-url/ndooFNUbAaswIVTDHhv7qnYQ0i5.log) (30.4 KB)  
Where is the problem?  
Please note that I don’t have permissions to install libraries on the cluster.

Regards,

Mohammad

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [November 14, 2019, 12:36pm UTC](https://code-saturne.org/forum/t/problem-with-installing-code-saturne-on-cluster-lgfortranbegin/1807/2 "2019-11-14T12:36:27Z")

</div>

Hello,

What is in config.log ?

Regards,

Yvan

---

<div class="post-metadata">

**Author:** ![Mohammad](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@Mohammad](https://code-saturne.org/forum/u/Mohammad)\
**Post date:** [November 14, 2019, 1:24pm UTC](https://code-saturne.org/forum/t/problem-with-installing-code-saturne-on-cluster-lgfortranbegin/1807/3 "2019-11-14T13:24:06Z")

</div>

Hello and thank you,

I attached the file.

Regards,

Mohammad  
[config.log](https://code-saturne.org/forum/uploads/short-url/f1ItecPWTh53YIMbe5cE0Jn5cm6.log) (254 KB)

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [November 14, 2019, 1:36pm UTC](https://code-saturne.org/forum/t/problem-with-installing-code-saturne-on-cluster-lgfortranbegin/1807/4 "2019-11-14T13:36:30Z")

</div>

Hello,

I’m not sure what is wrong here but MPI was not detected according to the config.log, so that is not a “true” cluster installation.  
You may try adding

> FCLIBS=“-L/usr/lib/gcc/x86\_64-redhat-linux/4.4.6 -L/usr/lib/gcc/x86\_64-redhat-linux/4.4.6/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/state/partition1/intel/composer\_xe\_2015.0.090/compiler/lib/intel64 -L/state/partition1/intel/composer\_xe\_2015.0.090/ipp/../compiler/lib/intel64 -L/state/partition1/intel/composer\_xe\_2015.0.090/ipp/lib/intel64 -L/state/partition1/intel/composer\_xe\_2015.0.090/mkl/lib/intel64 -L/state/partition1/intel/composer\_xe\_2015.0.090/tbb/lib/intel64/gcc4.4 -L/usr/lib/gcc/x86\_64-redhat-linux/4.4.6/../../.. -lgfortran -lm”

to the “configure” line (based on the autodetected FCLIBS variable in config.log, and removing lgfortranbegin, useful only when linking with Fortran, which is not the case here).

Also, you installation did not detect MPI, so will not run in parallel, which defeats the purpose of running on a cluster.

Did you check the installation documentation pdf ? It shows how to use “CC=mpicc” and such to ensure the MPI configuration is OK.

Regards,

Yvan

---

<div class="post-metadata">

**Author:** ![Mohammad](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@Mohammad](https://code-saturne.org/forum/u/Mohammad)\
**Post date:** [December 6, 2019, 7:09pm UTC](https://code-saturne.org/forum/t/problem-with-installing-code-saturne-on-cluster-lgfortranbegin/1807/5 "2019-12-06T19:09:25Z")

</div>

Hello,

Thanks a lot.

Regards,  
Mohammad
