CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Error in compiling openfoam on centos server (https://www.cfd-online.com/Forums/openfoam-installation/206832-error-compiling-openfoam-centos-server.html)

moeen_saberi September 15, 2018 03:57

Error in compiling openfoam on centos server
 
Hi All and thanks for your great forum
i want to compile openfoam on centos -7(server mode), i'v done this on ubuntu and every thing was fineو, but when i want to compile on centos, i receive this error:
/usr/bin/ld: cannot find -lengine
collect2: error: ld returned 1 exit status
os:centos-7(server)
arch:x86_64
note that there is no error before i get this error during compiling.
Thanks in advance for your help!

pbrady2013 September 18, 2018 01:50

More Information Please
 
Hi Moeen,


Can you post more information?


I run OpenFOAM exclusively on CentOS and have not really had any problems. My main issues focus on my mistyping or PEBKAC errors.


With a cannot find error two things spring to mind:
  1. Double check your paths so that the linker can search
  2. Was there an error previously in the compilation such that the engine library that can't be found was not actually compiled?
Good luck.
-pete

moeen_saberi September 23, 2018 09:11

Thanks
 
Thanks for your reply, i removed all i downloaded and re installed again, i followed:
https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL
and it's now running well.

pbrady2013 September 23, 2018 18:30

[solved]
 
Great news, have fun FOAMing!


-pete


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