Installation of OpenFOAM 2.3.0 / 2.3.x on RHEL 5.8 without root permissions
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 |
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 |
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 |
1 Attachment(s)
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 In the logfile the first entry is: Code:
flex wmkdep.l.l Code:
... 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 |
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 |
flex error solved, new errors while mesh utilities are compiled
1 Attachment(s)
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:
... Again thank you a lot for your kind help! Best regards, Nicolas |
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 |
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 |
All times are GMT -4. The time now is 12:19. |