|
[Sponsors] |
[OpenFOAM.org] Installation of OpenFOAM 2.3.0 / 2.3.x on RHEL 5.8 without root permissions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 4, 2014, 12:04 |
Installation of OpenFOAM 2.3.0 / 2.3.x on RHEL 5.8 without root permissions
|
#1 |
New Member
Nicolas B.
Join Date: Jul 2014
Location: Munich, Germany
Posts: 5
Rep Power: 12 |
Hi all,
I would like to install OpenFOAM 2.3.0 / 2.3.x on my RHEL 5.8 Workstation. As I do not have root access I cannot install the necessary packages as suggested here. Is there a workaround for non-root users on RHEL 5.8? I found a precompiled CentOS version of OF 2.2.x (centFOAM) but this one is also not working on my system (my system gcc is 4.1.2) and I would need OF 2.3.x or at least 2.3.0 anyway. Best Regards Nicolas |
|
December 14, 2014, 14:10 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Nicolas,
It's really hard to create instructions for building OpenFOAM from source code without root permissions, because it really depends on which packages are already installed the system you're using. Honestly, beyond CentFOAM, there are 3 other sort-of simple ways for you to do this:
Bruno
__________________
|
|
December 19, 2014, 10:51 |
|
#3 |
New Member
Nicolas B.
Join Date: Jul 2014
Location: Munich, Germany
Posts: 5
Rep Power: 12 |
Hello Bruno,
thank you for your answer! The first option is unfortunately not possible in my case. The second option sounds good to me. But I do not yet understand how to copy the packages that are installed by the package manager in the virtual machine. Do I just have to browse to the system directories in the virtual machine, copy all necesssary folders, put them in e.g. "./OpenFOAM/tools" on my native RHEL 5.8 and then load all the excecutables into the environment? Mabye this question sounds a little silly, but I do not have a very strong linux background... I will save the last option in case option two fails. Thanks for your help! Best Regards, Nicolas |
|
December 23, 2014, 09:52 |
|
#4 |
New Member
Nicolas B.
Join Date: Jul 2014
Location: Munich, Germany
Posts: 5
Rep Power: 12 |
Hello Bruno,
in the meantime I started to compile OF 2.3.x without root permission. I followed your advice and skipped the first steps of the installation instructions in the wiki for CentOS 5.10. Out of the list of necessary packages, these were already installed on my workstation:
Code:
mpirun (Open MPI) 1.4 Report bugs to http://www.open-mpi.org/community/help/ In the logfile the first entry is: Code:
flex wmkdep.l.l flex: fatal internal error, exec failed make: *** [/net/capc187/fs1/proj/openfoam-1/OpenFOAM/OpenFOAM-2.3.x/wmake/platforms/linux64Gcc48/wmkdep] Broken pipe Code:
... collect2: error: ld returned 1 exit status ... I also followed the second way you propsed and set up centOS 5.8 in a virtual machine. On the fresh OS I reproduced the situation as it is on my RHEL 5.8 workstation. That means I only installed the above listened packages before I started the installation instructions for OpenFOAM. Surprisingly I could compile OF without any problems here. Could the first error at the beginning of logfile have somesthing to do with my flex version? "flex --version" shows "2.5.35" for RHEL 5.8 and "2.5.4" in the VM. Any further suggestions would be greatly appreciated! Best regards, Nicolas |
|
December 30, 2014, 07:21 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Nicolas,
I've finally managed to look into this, but haven't managed to do the necessary tests to reproduce the same error . Let's see:
Best regards, Bruno |
|
January 7, 2015, 14:01 |
flex error solved, new errors while mesh utilities are compiled
|
#6 |
New Member
Nicolas B.
Join Date: Jul 2014
Location: Munich, Germany
Posts: 5
Rep Power: 12 |
Hi Bruno,
thank you for your advice. In terms of the RHEL 5.8 virtual machine, I did not do any updates and could thus create the archives and transfer them to my workstation. But so far I did not yet test whether they work in the new environment. As I will have to do the same procedure on a cluster (also without admin access and with a different OS) my focus is still on the direct compilation on my workstation. I found out that the different versions of flex were indeed the reason for the mentioned error. There was a bug in this specific version. As soon as I compiled flex 2.5.39 from source, I was able to build a large part of the OF excecutables without errors. But there are still some new errors which are all related to mesh utilities (see attached log file): Code:
... lnInclude/CGALTriangulation3DKernel.H:36:43: fatal error: CGAL/Delaunay_triangulation_3.h: No such file or directory ... Again thank you a lot for your kind help! Best regards, Nicolas |
|
January 10, 2015, 17:06 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Nicolas,
About CGAL: cmake wasn't built with success or something happened that led it to not be seen on the command line: Code:
./makeCGAL: line 265: cmake: command not found Best regards, Bruno |
|
January 12, 2015, 04:43 |
|
#8 |
New Member
Nicolas B.
Join Date: Jul 2014
Location: Munich, Germany
Posts: 5
Rep Power: 12 |
Hello Bruno,
my bad, I have no idea why it did not work for OF 2.3.1 ... but it worked perfectly with OF 2.3.x. That's why I guess I made a mistake during the 2.3.1 compilation. To summarize for those who need to install OpenFOAM without admin rights:
Bruno, thanks again for your kind help! Best regards, Nicolas |
|
Tags |
2.3.x, non-root, rhel 5.8 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Installation notes: OpenFOAM 2.3.x (git repo) on OSX 10.9 | opedrofunk | OpenFOAM Installation | 7 | July 1, 2015 14:51 |
Openfoam installation error RHEL | hcs129 | OpenFOAM Installation | 3 | March 6, 2014 22:44 |
OpenFOAM-1.7.0 for CentOS/RHEL/SL 5.x 64bit released | linnemann | OpenFOAM Installation | 66 | October 26, 2013 14:04 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |