CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Installation without root access of OpenFOAM5.x in CentOS 7.6

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By palarcon

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2019, 09:04
Default 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
palarcon is on a distinguished road
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
palarcon is offline   Reply With Quote

Old   June 7, 2019, 17:30
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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".
__________________
wyldckat is offline   Reply With Quote

Old   June 11, 2019, 04:56
Default
  #3
Member
 
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 8
palarcon is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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".
Sorry for the late replay, but for some unknown reasons the notification email went to the spam folder.

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.
palarcon is offline   Reply With Quote

Old   June 16, 2019, 15:00
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 it only lists that ld and ld.gold exist, then it is necessary to get another GCC installation...

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
This will apply these changes: https://github.com/OpenFOAM/OpenFOAM...248257123aa255

Hopefully it will work as intended from this point onward.
wyldckat is offline   Reply With Quote

Old   June 18, 2019, 17:42
Default
  #5
Member
 
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 8
palarcon is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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 it only lists that ld and ld.gold exist, then it is necessary to get another GCC installation...

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
This will apply these changes: https://github.com/OpenFOAM/OpenFOAM...248257123aa255

Hopefully it will work as intended from this point onward.
Thank you for your answer, but lucky (and finally) the system administrator was able to install the software.
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.
wyldckat likes this.
palarcon is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 14:47.