wmake error when installing on RHEL 6.5
Hi All,
I am a new OpenFOAM user and currently study to learn build wave model by using waves2Foam and OLAFoam. And I have installed the OpenFOAM/2.4.0 in the cluster linux system, which is Red Hat Enterprise Linux Server release 6.5 (RHEL). However, when I try to install OLAFoam as a example, the terminal reports wmake error as bellow. Code:
<command-line>:0:1: error: macro names must be identifiers For this issue, I think this error might cause by rule formatting in the file from linux64Gcc49 folder. So, I enclose the file: /OpenFOAM-2.4.0/wmake/rules/linux64Gcc49/general below. Code:
CPP = cpp -traditional-cpp I really look forward to having some helps from you. Cheers! zuodong |
Quick answer: We need the following information:
|
Hi Zuodong,
from what you say, not being even able to compile interFoam indicates that there is something wrong in the OpenFOAM global installation. Maybe you can provide the log file for the complete installation (the output from the allMake file). Once OpenFOAM is correctly installed, I assure you that olaFoam will compile without any errors. Best, Pablo |
2 Attachment(s)
Hi! @Bruno Santos, thanks for quick reply and your sugguestions. According to your advice and following your steps to test our RHEL 6.5 linux system, the outcomes are shown below:
(1) Code:
which cpp Code:
/sw/gcc/4.9.0/bin/cpp Code:
cpp --version Code:
cpp (GCC) 4.9.0 Code:
wclean solvers/olaFoamOF240 (4) Code:
gzip < solvers/olaFoamOF240/Make/linux*/options > options.gz Thanks for considering my problems and I am looking forward to your reply. Best regards, zuodong |
Hi @Pablo! Firstly thanks for your work that making a good OLAFoam for generating wave. Now, I have installed the OLAFoam in a laptop with Fedora 24 Linux system, in which the OF30X installed. However, the simulation of large modelling case have to run in the Cluster System. I run the command
Code:
./allMake > log.allMake 2>&1 Code:
<command-line>:0:1: error: macro names must be identifiers Thanks for your time and help! Cheers! zuodong |
Greetings to all!
@Zuodong: From what I can figure out, something very wrong is going on with cpp. Please run the following commands: Code:
cpp -traditional-cpp -D$WM_ARCH -DWM_$WM_PRECISION_OPTION solvers/olaFoamOF240/Make/options > options.test 2>&1 Another thing that comes to mind is regarding the installation itself... please run the following command and let us know what it gives you: Code:
which blockMesh Bruno |
1 Attachment(s)
Hi! @Bruno Santos good to see you !
First, I run the below command: Code:
cpp -traditional-cpp -D$WM_ARCH -DWM_$WM_PRECISION_OPTION solvers/olaFoamOF240/Make/options > options.test 2>&1 Then, run Code:
which blockMesh Code:
/sw/OpenFoam/OpenFOAM-2.4.0/platforms/linux64Gcc49DPOpt/bin/blockMesh Code:
module load OpenFoam/2.4.0 Best regards, zuodong |
Quote:
Code:
echo $WM_ARCH Please inform your system's administrator that the module is incomplete, because at least "WM_ARCH" is undefined, although "WM_PRECISION_OPTION" might also be undefined, which are necessary when building custom source code. In your case, the quick fix is to run: Code:
export WM_ARCH=linux64 The reason why I'm stating this is because the command I asked you to run with cpp gave this warning at the start of the command: Code:
<command-line>:0:0: error: macro names must be identifiers Code:
cpp -traditional-cpp -D path/to/file |
installing OpenFOAM-2.4.0 on HPC (RHEL6.5)
Hi All,
I am a new OpenFOAM user and currently study to learn build wave model by using waves2Foam and OLAFoam. And I have installed the OpenFOAM/2.4.0 in the cluster linux system, which is Red Hat Enterprise Linux Server release 6.5 (RHEL). However, when I try to install OLAFoam as a example, the terminal reports wmake error as bellow. Code: <command-line>:0:1: error: macro names must be identifiers linux64Gcc49DPOpt/options:6: *** missing separator. Stop. wmake error: file 'Make/linux64Gcc49DPOpt/objectFiles' could not be created olaFoam compilation failed Additionally, I even though can not re compile a default solver (such as interFoam) by typing the wmake command, then it still has the same error as mention above. For this issue, I think this error might cause by rule formatting in the file from linux64Gcc49 folder. So, I enclose the file: /OpenFOAM-2.4.0/wmake/rules/linux64Gcc49/general below. Code: CPP = cpp -traditional-cpp PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard include $(RULES)/c include $(RULES)/c++ Does anyone have a same problem with mine ? I really look forward to having some helps from you. Cheers! zuodong Hello zuodong, i wann to install openfoam-2.4.0 on RHEL 6.5, but i am not getting the OpenFOAM-2.4.0 package for RHEL 6.5. I am new to OpenFOAM. I need help from you for installing openfoam-2.4.0 on HPC (RHEL 6.5). cheers! sudhakar singh |
Hello zuodong,
i wann to install openfoam-2.4.0 on RHEL 6.5, but i am not getting the OpenFOAM-2.4.0 package for RHEL 6.5. I am new to OpenFOAM. I need help from you for installing openfoam-2.4.0 on HPC (RHEL 6.5). cheers! sudhakar singh |
Solved
@Bruno Santos @Pablo Thanks for your help! Now, I can install the OF2.3.0 in RHL 6.5 and successfully compile the olaFoam solver with it.
Hi!@sudhakar singh. Good to see you here since we are using the same Cluster system. As for my way to solve this problem. I have installed the Version of 2.3.0 OF in the RHL 6.5 system. Please follow the instruction step by step: Link:https://openfoamwiki.net/index.php/I...HEL#CentOS_6.5 Please note that, to install the OF in the RHL 6.5, you need to be in the sudo list for some root behaviors. Otherwise, you have to let the system administrator to do so. Also, as for me, the cluster is not allow user to do some visual operations, i.e. I can not use the paraview to check simulation results. Therefore, I just finished all the installation until the step No.17. Also, I suggest you to install OpenFOAM in the root folder rather in your personal path. After the installation, using the bashrc file to module load the OF for your simulation. Cheers! Zuodong |
All times are GMT -4. The time now is 14:18. |