CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   problem in installation in OpenFOAM-2.1.x on Red Hat (https://www.cfd-online.com/Forums/openfoam-installation/112715-problem-installation-openfoam-2-1-x-red-hat.html)

nagendra verma February 4, 2013 02:16

problem in installation in OpenFOAM-2.1.x on Red Hat
 
1 Attachment(s)
Dear former,

I am installing OpenFOAM-2.1.x
on Red Hat Enterprise Linux Server release 5.1
after calling ./Allwmake after 2 hour 1o min I have got error
Target `application' not remade because of errors.
please tell me what I should to do.

Thanks in Advance
nagendra

wyldckat February 4, 2013 05:16

Greetings Nagendra and welcome to the forum!

OK, there are at least two issues:
  1. The files seem to be in the future. You can fix this warning by updating all files to the latest date-time:
    Code:

    cd $WM_PROJECT_DIR/..
    find OpenFOAM-2.1.x ThirdParty-2.1.x | xargs touch

  2. The error given to you at the end doesn't give us the real reason why things haven't worked properly. Run Allwmake like this:
    Code:

    cd $WM_PROJECT_DIR
    ./Allwmake > make.log 2>&1

    Then search for the first error that appears inside "make.log"
Best regards,
Bruno

nagendra verma February 6, 2013 07:00

Recompilation of OpenFOAM
 
1 Attachment(s)
Thankyou for your reply

I have use command you tell me
cd $WM_PROJECT_DIR/.. find OpenFOAM-2.1.x ThirdParty-2.1.x | xargs touch
cd $WM_PROJECT_DIR ./Allwmake > make.log 2>&1
but sir I am not getting what cause error .
I am quite new sir please help me.
I have attached make.log file please check it .
please tell me is there any dependency for installing openfoam on Red Hat Enterprise Linux Server release 5.1.
I am using Gcc 4.1.2
please tell me now what I need to do.


Thanks&Regards
nagendra

wyldckat February 6, 2013 17:39

Hi Nagendra,

You can try following these instructions: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.8 - they were tested with CentOS 5.8, so I don't know if they will work with RHEL 5.1, but they should with RHEL 5.8.

In essence, it's not possible to build OpenFOAM 2.1.1/x with Gcc 4.1.2, at least not as it is usually distributed. You need to get a more recent version of Gcc, any version between Gcc 4.3.3 and 4.7.x should work. The instructions above rely on Gcc 4.4 that should be available through RHEL's package management system.

The other possibility is to find what needs to be modified for OpenFOAM to build with Gcc 4.1.2. You'll have to search this forum for more information on this.

But I still think the best solution would be to ask your system's administrator to install Gcc 4.4.

Best regards,
Bruno

nagendra verma February 8, 2013 06:33

Error in Installation of OpenFOAM on RedHat5.1
 
1 Attachment(s)
Thanks for your reply

what you had sent me link I have followed

I have try following instructions: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.8 -


But still I am getting some Error,I am sending make4.log file please let me know about error and what I should to do now.

Thanks&Regards
nagendra

wyldckat February 10, 2013 06:06

Hi Nagendra,

It looks like you still have two problems:
  1. The files are still defined as being in the future.
  2. You're still trying to use Gcc 4.1.2, which won't work for building OpenFOAM.
A couple of questions:
  • Did you install Gcc 4.4 as instructed in the wiki page?
  • Did you do step #4, which is to start a new terminal?
Beyond those two questions, I suggest that you try these steps as well:
  1. Go into the folder OpenFOAM-2.1.x through the command line (just as if you were to run Allwmake once again) and run:
    Code:

    wcleanAll
  2. Then run:
    Code:

    find . | xargs touch
    If this command gives you any error messages, please let me know.
  3. Make sure you've done the last 2 lines from step #6 from the wiki page.
  4. Run Allwmake once again, as instructed in step #7.
Best regards,
Bruno

nagendra verma February 12, 2013 01:30

problem in Installation of OpenFOAM-2.1.1 on RHEL Server release 5.1
 
2 Attachment(s)
Thanks for your contineous help...

I am still getting the same error , I am sending all the steps what I have done and sending log file also.
I have installed gcc44 version 4.4.7 on my system /usr/bin.

Step 1- yum groupinstall 'Development Tools'

Error: Unable to satisfy dependencies
Error: Package rpm-devel needs rpm = 4.4.2-47.el5, this is not available.
Error: Package rpm-libs needs rpm = 4.4.2-47.el5, this is not available.
Error: Package elfutils-libelf conflicts with elfutils-libs > 0.125-3.el5.
Error: Package python-devel needs python = 2.4.3-19.el5, this is not available.
Error: Package elfutils-libelf conflicts with elfutils > 0.125-3.el5.
Step 2- yum install gcc44 gcc44-c++ openmpi openmpi-devel zlib-devel Instead of gcc44-c++ I am having g++44 Step 3 – my SYSTEMOPENMPI is openmp-1.2.8 Step 4- exit and open new terminal Step 6- I have added these 7 lines in ~/.bashrc file. Then source ~/.bashrc Then wcleanAll
find . | xargs touch
this command does not give any error.
Step -7 now running ./Allwmake > make.log 2>&1
Is there any rpm file for OpenFOAM2.1.1 available for RHEL 5.1

please help me what I shoult to do now.

When I was using same process for OpenFOAM-2.1.x then its using gcc44 but giving same error I am attaching make2.log for OpenFOAM-2.1.x

Thanks & Regards
nagendra

wyldckat February 12, 2013 05:06

Hi Nagendra,

Did you do the commands in step #6 with success? You can confirm by running the following commands:
  1. Check if the necessary environment variables are properly defined:
    Code:

    echo $WM_CC
    echo $WM_CXX

    It should show:
    Code:

    gcc44
    g++44

  2. Check if the compiler option is properly set:
    Code:

    echo $WM_COMPILER
  3. Check the contents of "OpenFOAM-2.1.1/wmake/rules/linuxGcc44/c" and "OpenFOAM-2.1.1/wmake/rules/linuxGcc44/c++" and see if you can find the string "gcc" or "g++":
    Code:

    grep gcc "OpenFOAM-2.1.1/wmake/rules/linuxGcc44/c"
    grep "g++" "OpenFOAM-2.1.1/wmake/rules/linuxGcc44/c++"

Best regards,
Bruno

wyldckat February 12, 2013 05:09

OK, onward to the second log file:
  1. Go to the "ThirdParty-2.1.1" folder:
    Code:

    foam3rdParty
  2. Clean all:
    Code:

    ./Allclean
  3. Back to the main folder "OpenFOAM-2.1.1":
    Code:

    foam
  4. Clean all as well:
    Code:

    wcleanAll
  5. And now run Allwmake as before.

nagendra verma February 12, 2013 07:33

Thankyou for giving your precious time...


echo $WM_CC giving gcc44
echo $WM_CXX giving g++44
echo $WM_COMPILER giving Gcc44

grep gcc "OpenFOAM-2.1.1/wmake/rules/linuxGcc44/c"
giving message no such file or directory

grep "g++" "/OpenFOAM-2.1.1/wmake/rules/linuxGcc44/c++"
giving message no such file or directory

BUT,
grep gcc "$HOME//OpenFOAM/OpenFOAM-2.1.1/wmake/rules/linuxGcc44/c"
nothing message appear

grep "g++" "$HOME/OpenFOAM/OpenFOAM-2.1.1/wmake/rules/linuxGcc44/c++"
nothing message appear

************************************************** ***


In OpenFOAM-2.1.x I have done following steps but getting same output.
  1. Go to the "ThirdParty-2.1.1" folder:
    Code:
    foam3rdParty
  2. Clean all:
    Code:
    ./Allclean
  3. Back to the main folder "OpenFOAM-2.1.1":
    Code:
    foam
  4. Clean all as well:
    Code:
    wcleanAll
  5. And now run Allwmake as before.
now what I should to do.
Thanks & Regards
nagendra

wyldckat February 12, 2013 07:44

Please attach the latest log file, the same way as you've done before.

I'll try to test this on CentOS 5.1 at the end of today, which will be in about 9h from now.

edited 9h later: sorry, I tried to give it a shot, but I ended up downloading only the livecd and now I'm too tired to stay awake :( I'll try again tomorrow night.

nagendra verma February 12, 2013 23:33

log file for OpenFOAM-2.1.x Installation on RHEL 5.1
 
1 Attachment(s)
sorry I could not sent yesterday...
I am attaching the latest log file.
In OpenFOAM-2.1.x
I have done following steps but getting same output.
  1. Go to the "ThirdParty-2.1.1" folder:
    Code:
    foam3rdParty
  2. Clean all:
    Code:
    ./Allclean
  3. Back to the main folder "OpenFOAM-2.1.1":
    Code:
    foam
  4. Clean all as well:
    Code:
    wcleanAll
  5. And now run Allwmake as before.
Thanks &Regards
nagendra

wyldckat February 13, 2013 04:46

Hi Nagendra,

I think I've spotted the issue you're having. You have RHEL 5.1 x86_64, but you're following the instructions for building the 32bit build of OpenFOAM. Look at the installation instructions again and follow the steps that specifically say "For x86_64".

You probably will have to edit the file "$HOME/.bashrc" manually and remove "WM_ARCH_OPTION=32" from this line:
Code:

source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_COMPILER=Gcc44 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32
So it should be this instead:
Code:

source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4  WM_COMPILER=Gcc44 WM_MPLIB=SYSTEMOPENMPI
edit: Don't forget to start a new terminal!!

Good luck!
Bruno

nagendra verma February 15, 2013 06:15

general query In Installation of OpenFOAM on RHEL5.1
 
Dear sir,


In this step yum install gcc44 gcc44-c++ openmpi openmpi-devel zlib-devel

instead of gcc44-c++ I am having g++44 installed on my system Is it ok or need to install
gcc44-c++.


Thanks&Regards
nagendra

wyldckat February 15, 2013 07:22

Hi Nagendra,

The package names probably changed between RHEL 5.1 and 5.8. What matters is what the following two commands output:
Code:

which gcc44
which g++44

If both return valid paths, then all is OK.
Like I wrote in the previous post, the problem seems to be that you were following the instructions for the 32bit installation (i386 or i686), instead of the 64bit installation (x86_64).

Best regards,
Bruno

wyldckat February 17, 2013 10:01

Hi Nagendra,

I'm currently testing the instructions on a CentOS 5.1 x86_64 and I've already detected an error in the instructions. Run the following commands:
Code:

cd ~/OpenFOAM
sed -i -e 's=gcc=$(WM_CC)=' OpenFOAM-2.1.1/wmake/rules/linux64Gcc44/c
sed -i -e 's=g++=$(WM_CXX)=' OpenFOAM-2.1.1/wmake/rules/linux64Gcc44/c++

Then continue from step #7 from here: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.8

I hope by the end of the day to have sorted out the problems in the instructions.

edit: Done testing. Page is up-to-date and added section specifically for CentOS 5.1: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.1

Best regards,
Bruno

nagendra verma February 18, 2013 02:01

problem in Installation of OpenFOAM-2.1.1 on RHEL Server release 5.1
 
2 Attachment(s)
Thankyou sir,

whatever you have mension its taking g++44 with 64 bit but after certain line its comiplation stops automatic without any intruption.
I have run two time but at same point it stops
first log file is make.log second is make1.log
after first compilation I have done the following commands and again run
wcleanAll
find . | xargs touch
./Allwmake > make1.log 2>&1
I am sending these two log files.


Thanks
nagendra

wyldckat February 18, 2013 04:19

Hi Nagendra,

I think it is now all built properly. There are no error messages, although there are still warnings about "skew clock time".

After a bit of searching, it looks like this clock issue is possibly due to your system using NFS (or similar) for storing your OpenFOAM files.

It should now all be working properly!

Best regards,
Bruno

nagendra verma February 18, 2013 06:35

1 Attachment(s)
Thankyou Sir,

while I am executing the foamInstallationTest script (in the OpenFOAM-2.1.x/bin directory)

flex /usr/bin//flex

ERROR: gcc version is too old for this release of OpenFOAM
User version : 4.1.2
Minimum required: 4.3.2

gcc 4.1.2 /usr/bin//gcc
gzip 1.3.5 /usr/bin//gzip
tar 1.15.1 /bin/tar
icoFoam 2.1.x ...OpenFOAM-2.1.x/platforms/linux64Gcc44DPOpt/bin/icoFoam

Sir why it is giving gcc 4.1.2
I am attaching a make file generated by command foamInstallationTest running in directory OpenFOAM-2.1.x/bin.

Thanks&Regards
nagendra

wyldckat February 18, 2013 06:41

Hi Nagendra,

No need to worry about it. foamInstallationTest is a basic testing script and assumes that only the default "gcc" name is used, which you used gcc44:
Code:

gcc44 --version
What's important is that icoFoam was detected with success!

Best regards,
Bruno


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