CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM CC Toolkits for Fluid-Structure Interaction (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/)
-   -   [solids4Foam] Installing solids4foam v2.0 with FE4.1 on Ubuntu 20.04 (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/247328-installing-solids4foam-v2-0-fe4-1-ubuntu-20-04-a.html)

Nicolas FORESTAL January 27, 2023 10:56

Installing solids4foam v2.0 with FE4.1 on Ubuntu 20.04
 
1 Attachment(s)
hello,

I have some issues to compile solids4Foam on my laptop. I use Ubuntu 20.04 and I compile FOAM-Extend with gfortran 7. The Allwmake says the compilation is complete but I don't have the solver solids4Foam.

I attached a log file to the comment.

I'm new in CFD and programming and I didn't no why it doesn't work.

Is there anyone who can give me some advice for my case.

Thanks,

iBatistic February 1, 2023 16:06

The compilation of the solver did not finish without error, read carefully log file, and you will find the problem in this line:
Code:

/usr/bin/ld*: ne peut trouver -lgfortran
collect2: error: ld returned 1 exit status

As a workaround, check the status of S4F_USE_GFORTRAN variable and set it to zero, then try compilation again.

Nicolas FORESTAL February 2, 2023 11:49

Thanks for your help. I set S4F_USE_GFORTRAN to zero but it didn't work. So I checked my gfortran compiler and installed gfortran-7, and now it's seem to work.


All times are GMT -4. The time now is 11:48.