Problems in Installing OpenFOAM-4.0 on CentOS SL RHEL
Hello, everyone. I am an MPhil student doing CFD. I encountered A LOT OF questions when I am trying to install OpenFOAM-4.0 on the computer cluster managed by the university. I followed the instructions given by the following website:
https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL The main problem is, I do not have the permission to access the cluster as root, in other words, I cannot install the libraries by simply typing the commands like “sudo”. Is it possible for me to install every libraries, OpenFOAM itself and Thirdparty software in my home directory? Besides, is it possible to get rid of the “root” problem if I do not install the Thirdparty software like Paraview, or if I install OpenFOAM® v1606+ ?? Or can I just install the OpenFOAM on the cluster, and do post-processing on my desktop computer? I just know a little about linux, I don’t know what I can do if I cannot install OpenFOAM on the cluster. :confused: :confused: FYI, the general information of the computer cluster Operating System: CentOS 6.6 64-bit Architecture: x86_64 Open MPI: v2.0.0 Python: v2.6.6 bison (GNU Bison): v2.4.1 flex: v2.5.35 GCC (GNU Compiler Collection): v4.4.7 |
Quick answer: You can simply try starting from step #4, namely you can try skipping the first 3 steps and see if it works: https://openfoamwiki.net/index.php/I...HEL#CentOS_6.8
If you have problems with the wget commands, then you can download manually the files with your Internet browser and then place the files where needed. And yes, I do advise you to skip trying to build ParaView on the cluster, at least for now. In addition, if your cluster is very well administered, you can try and check what other software packages are already available in it, but running: Code:
module avail |
Thanks for your reply.
I would like to ask if I do not install ParaView on the cluster, but OpenFOAM4.0 only, I believe it requires updating CMake and GCC 4.8.5, but how about Qt and GNU binutils? What I am asking is, any steps on the website https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL I can skip in order to install OpenFOAM Only, but not ParaView. Besides, I just checked the available packages using PHP Code:
1. texinfo 2. gstreamer-plugins-base-devel 3. libGLU-devel 4. libXinerama-devel 5. libXrandr-devel 6. libXi-devel 7. libXcursor-devel Do these packages matter for installing OpenFOAM? or just for ParaView? And If I really need to install these 7 packages, is it possible for me to download the packages in https://rpmfind.net/linux/rpm2html/s...os&arch=x86_64 and install them in my HOME directory? |
Quick answers:
Quote:
Code:
module avail Quote:
|
Sorry for late reply, because the cooling system of the computer cluster was not going well last week, and the university spent about 6 days to fix the problem, eventually it is back to normal now.
Here is the response for the command Code:
module avail PHP Code:
PHP Code:
|
As I know, official repositories of Redhat EL is 4.4.7 for gcc but it is possible to upgrade it from unofficial repositories but I am not sure if it is possible to do it.
I have installed OpenFOAM 4.0 on HPC running RHEL 5 and 6 without root access by using OpenFOAMWiki post. Also, you can install gcc on your local folder using this post: http://stackoverflow.com/questions/9...t-shared-libra What is the exact problem by installing gcc and binutils by using ThirdParty folder? |
1 Attachment(s)
I have tried to install OpenFOAM v4.0 again following http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL and since I do not have the root access, I skipped the first 3 steps, and started from step #4.
Until step #10, after I entered the command Code:
./makeGcc -no-multilib > log.makeGcc 2>&1 I have no idea why the errors exist, is it something wrong with my account, or I didn't clean everything that I left in the previous installation process? Thank you |
Yes, if you clean it before you start it might be better. And also, according to log file, you do not have isl. it might be required to build gcc, I guess.
Quote:
|
Quick answer:
Quote:
This also means that you only need to do a small change to the instructions. In step #7, it tells you to use something like this: Code:
source $HOME/OpenFOAM/OpenFOAM-4.0/etc/bashrc WM_COMPILER_TYPE=ThirdParty FOAMY_HEX_MESH=yes Code:
of40 The you can skip steps #10 and #11. Next... are you going to need foamyHexMesh? I ask this because I have no idea if MPFR and GMP are already available on that machine. If you need it, then we need to figure out if we need to use the custom build of MPFR and GMP that was built with makeGcc. Please run the following command to see if there is any installed in the same stack as GCC 4.9.2: Code:
find /opt/rh/devtoolset-3 -name "libmpfr*" |
I think I have installed OpenFOAM successfully, as it gives exactly the same output when I typed
Code:
icoFoam -help Thank you everyone ! |
All times are GMT -4. The time now is 08:26. |