|
[Sponsors] |
[OpenFOAM.org] Installation without root access of OpenFOAM5.x in CentOS 7.6 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 3, 2019, 09:04 |
Installation without root access of OpenFOAM5.x in CentOS 7.6
|
#1 |
Member
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 8 |
Good afternoon
I'm having a lot of troubles installing OpenFOAM 5.x in a server with CentOS 7.6 where I don't have root access. I tried following the instructions of wyldckat in his forum http://openfoamwiki.net/index.php/In...7.4_.281708.29 but I can't complete the build of Gcc 4.8.5 in step 11. At the end of the log file I have the following: rm gcc.pod make[3]: Leaving directory `/home/users/p/a/palarcon/OpenFOAM/ThirdParty-5.x/build/linux64/gcc-4.8.5/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/users/p/a/palarcon/OpenFOAM/ThirdParty-5.x/build/linux64/gcc-4.8.5' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/users/p/a/palarcon/OpenFOAM/ThirdParty-5.x/build/linux64/gcc-4.8.5' make: *** [all] Error 2 Error building: gcc-4.8.5 Any idea of what can I do? Thank you all in advance |
|
June 7, 2019, 17:30 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick question: But the step 11 that you are mentioning is for CentOS 6.9 and not 7.6...
The link you provided should work with CentOS 7.6, although it depends on what's already pre-installed in the system you are using. Nonetheless, please try first scrolling down to the correct section of the page, namely section "2.2 CentOS 7.4 (1708)" and not using section "2.1 CentOS 6.9".
__________________
|
|
June 11, 2019, 04:56 |
|
#3 | |
Member
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 8 |
Quote:
After I posted this question I realized that I was on the wrong section, wo then I started from scratch using the correct section. Nonetheless the problem persist, mainly due to a problem with a linker /opt/cecisw/arch/easybuild/2018b/software/binutils/2.30-GCCcore-7.3.0/bin/ld.gold: error: --add-needed is not supported but is required for libopen-rte.so.40 in /opt/cecisw/arch/easybuild/2018b/software/OpenMPI/3.1.1-GCC-7.3.0-2.30/lib/libmpi.so I looked over the internet and it seems that solving that problem is not "that difficult" if you have root access, because is necessary to change the symbolic link of the gold linker to the bfd one, but in this case I don't have root access. I contacted the system administrator of my cluster, and they also are having troubles compiling OpenFOAM, they did a first try on friday and didn't work, we will see if today goes better. |
||
June 16, 2019, 15:00 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: Check what the following command gives you:
Code:
ls -l /opt/cecisw/arch/easybuild/2018b/software/binutils/2.30-GCCcore-7.3.0/bin/ld* If ld.bfd is listed in that folder, then... mmm... "-fuse-ld=bfd" can be used... ah, this was already done in OpenFOAM 6 and OpenFOAM-dev... OK, do the following commands with the OpenFOAM 5.x environment active: Code:
foam wget https://github.com/OpenFOAM/OpenFOAM-dev/commit/5e8593c1716490a4e74fe8136c248257123aa255.patch patch -p1 < 5e8593c1716490a4e74fe8136c248257123aa255.patch Hopefully it will work as intended from this point onward. |
|
June 18, 2019, 17:42 |
|
#5 | |
Member
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 8 |
Quote:
According to him wasn't "that difficult" so it seems that it took that long only because he didn't have the time to help me with the installation before. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFoam installation on CentOs 6.5 without root access | arsalan.dryi | OpenFOAM Installation | 28 | March 6, 2021 11:31 |
[OpenFOAM.org] blockMesh issue on openfoam6 startup - ubuntu 16.04 | bjdarrer | OpenFOAM Installation | 7 | August 25, 2020 19:15 |
[OpenFOAM.org] Installation without root access | Chris_DSMC | OpenFOAM Installation | 17 | May 31, 2020 17:06 |
OpenFOAM-1.7.0 for CentOS/RHEL/SL 5.x 64bit released | linnemann | OpenFOAM Installation | 66 | October 26, 2013 13:04 |
missing vtf3.h BPatch.h papi.h | linch | OpenFOAM Installation | 41 | July 24, 2012 14:45 |