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

nagendra verma February 18, 2013 07:25

1 Attachment(s)
Dear sir,

while I am executing step-11 second line
./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.6.4/bin/qmake PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON
at the last I am getting following thing is there any issue.
I have completed all this steps.
I am attaching picture of step-11 second line command.
cd $WM_THIRD_PARTY_DIR ./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.6.4/bin/qmake PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers wmSET $FOAM_SETTINGS export PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.6.4/bin:$PATH ./Allwclean ./Allwmake

Thanks
nagendra

wyldckat February 18, 2013 07:32

Hi Nagendra,

Looks like Qt didn't build properly. Two details:
  1. Make sure that the "libX*" packages are installed, as documented on step #1 for CentOS 5.1: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.1
  2. Check if CMake was properly built, by running:
    Code:

    cmake --version
    It should show you the version "2.8.7". If not, do step #9 again.
  3. Check if Qt was properly built, by checking the contents of the file "mkqt.log" that should be in the folder "ThirdParty-2.1.x". Or by running:
    Code:

    $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.6.4/bin/qmake --version
    If not, do step #10 again.
Best regards,
Bruno

nagendra verma February 19, 2013 03:36

1 Attachment(s)
Thankyou sir,

After step-10 in mkqt file it showing.
Error building: Qt-4.6.4

In my system while I am trying to install its showing its already installed.

package libXext-devel-1.0.1-2.1 is already installed
package libXrender-devel-0.9.1-3.1 is already installed
package libXt-devel-1.0.2-3.2.el5 is already installed

I am attaching file mkqt please let me know what to do now.

Thanks
nagendra

wyldckat February 19, 2013 03:58

Hi Nagendra,

I don't have my CentOS 5.1 installation with me right now. But try the following steps:
  1. Find the folder "config.tests/x11/xlib/":
    Code:

    cd $WM_THIRD_PARTY_DIR/build
    find . -name xlib

  2. Go into that folder and run:
    Code:

    make
  3. It should indicate which library is still missing.
Best regards,
Bruno

nagendra verma February 19, 2013 04:19

1 Attachment(s)
thankyou sir,

After cd $WM_THIRD_PARTY_DIR/build
find . -name xlib
I have got

./linux64Gcc44/qt-everywhere-opensource-src-4.6.4/config.tests/x11/xlib

from this directory I have called make then I got following lines I have attached. now what I need to do.

Thanks
nagendra

wyldckat February 19, 2013 04:39

Hi Nagendra,

Ooops, I forgot to mention that the sed commands should be executed only once... Do the following:
Code:

cd $WM_THIRD_PARTY_DIR
 
#re-fix the defaults for Qt not to use gcc or g++ by default
sed -i -e 's/= gcc4444/= gcc44/' qt-everywhere-opensource-src-4.6.4/mkspecs/common/g++.conf
sed -i -e 's/= g++4444/= g++44/' qt-everywhere-opensource-src-4.6.4/mkspecs/common/g++.conf
 
./makeQt 4.6.4 > mkqt.log 2>&1

Best regards,
Bruno

nagendra verma February 19, 2013 06:12

2 Attachment(s)
Thankyou sir

This is again giving error.
This time mkqt.log file is approx 22MB so I have splited this into 4 part and sending 1st and last part of mkqt.log

Thanks
nagendra

wyldckat February 19, 2013 06:24

The file "ac" seems to have the answer why it did not build.

nagendra verma February 19, 2013 06:39

2 Attachment(s)
Dear Sir,

I have attached ab and ac files.



Thanks
nagendra

wyldckat February 19, 2013 08:31

Hi Nagendra,

I believe the problem is related to how your system is working, because there seems to be an existential issue of the files having a date defined in the future, which could also lead to them not yet being visible when their are needed 10 milliseconds after they were created.

So, to attempt and avoid this issue, try these steps:
Code:

cd $WM_THIRD_PARTY_DIR/build
cd linux64Gcc44/qt-everywhere-opensource-src-4.6.4
make > mkqt.log 2>&1

Check the "mkqt.log" file when it finishes. If it does not have any errors, then for finishing the Qt installation, run:
Code:

make install
source $WM_THIRD_PARTY_DIR/etc/tools/ThirdPartyFunctions
source $WM_THIRD_PARTY_DIR/etc/tools/QtFunctions
finalizeQt

Best regards,
Bruno

nagendra verma February 19, 2013 23:04

1 Attachment(s)
thankyou sir,

After exexcuting these commands
cd $WM_THIRD_PARTY_DIR/build cd linux64Gcc44/qt-everywhere-opensource-src-4.6.4 make > mkqt.log 2>&1 I am getting some error,I am attaching mkqt.log file.
now what I will have to do.

Thanks
nagendra

wyldckat February 20, 2013 02:34

Hi Nagendra,

What do these commands output?
Code:

ls -l /home/others/trainee/OpenFOAM/ThirdParty-2.1.x/build/linux64Gcc44/qt-everywhere-opensource-src-4.6.4

ls -l /home/others/trainee/OpenFOAM/ThirdParty-2.1.x/build/linux64Gcc44/qt-everywhere-opensource-src-4.6.4/lib

Best regards,
Bruno

nagendra verma February 20, 2013 03:31

2 Attachment(s)
Dear Sir,

Output generated by these two commands I am sending.
out1.log and out2.log
Sir all these commands previous or current I am not runing in root mode.

Thanks
nagendra

wyldckat February 20, 2013 04:29

Hi Nagendra,

That file system is clearly giving us some headaches... OK, try this:
Code:

cd $WM_THIRD_PARTY_DIR/build
cd linux64Gcc44/qt-everywhere-opensource-src-4.6.4
make clean
make > mkqt.log 2>&1

It will make Qt rebuild and hopefully this time it will find said files.

Best regards,
Bruno

nagendra verma February 20, 2013 06:07

4 Attachment(s)
Dear sir,


Again its giving some Error.
I am attaching mkqt.log file in four parts.
now what I need to do.

Thanks
nagendra

wyldckat February 20, 2013 06:20

Hi Nagendra,

Try these commands:
Code:

cd $WM_THIRD_PARTY_DIR/build
cd linux64Gcc44/qt-everywhere-opensource-src-4.6.4
cd lib

unlink libQtCLucene.so
cp libQtCLucene.so.4.6.4 libQtCLucene.so

unlink libQtCLucene.so.4
cp libQtCLucene.so.4.6.4 libQtCLucene.so.4

unlink libQtCLucene.so.4.6
cp libQtCLucene.so.4.6.4 libQtCLucene.so.4.6

cd ..
make > mkqt.log 2>&1

This basically replaces the links with the real file, for said missing library.

Best regards,
Bruno

nagendra verma February 20, 2013 06:42

1 Attachment(s)
Dear Sir,
Again Error giving I am attaching file mkqt.log
Now what I need to do.


Thanks
nagendra

wyldckat February 20, 2013 06:51

Looks like the problem wasn't what I thought.
Try this:
Code:

ln -s $WM_THIRD_PARTY_DIR/build/linux64Gcc44/qt-everywhere-opensource-src-4.6.4 $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4

cd $WM_THIRD_PARTY_DIR/build
cd linux64Gcc44/qt-everywhere-opensource-src-4.6.4

make > mkqt.log 2>&1

It will create a symbolic link to the final folder available ahead of time.
If this let things build properly, let me know.

nagendra verma February 20, 2013 07:19

1 Attachment(s)
Dear Sir,

mkqt.log having not any Error I think it succeed
I am attaching mkqt.log file.

On running following code
$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.6.4/bin/qmake --version

I am getting.

QMake version 2.01a
Using Qt version 4.6.4 in /home/others/trainee/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc44/qt-4.6.4/lib

Now what I need to do.

Thanks
nagendra

wyldckat February 20, 2013 08:03

Hi Nagendra,

OK, next steps:
Code:

unlink $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4

cd $WM_THIRD_PARTY_DIR/build
cd linux64Gcc44/qt-everywhere-opensource-src-4.6.4
make install

source $WM_THIRD_PARTY_DIR/etc/tools/ThirdPartyFunctions
source $WM_THIRD_PARTY_DIR/etc/tools/QtFunctions
prefixDIR=$installBASE/qt-4.6.4
finalizeQt

This should be enough for finishing the installation of Qt.

Then for building ParaView, start a new terminal, just in case. Then:
Code:

cd $WM_THIRD_PARTY_DIR
./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin/qmake PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON
 
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
wmSET $FOAM_SETTINGS
export PATH=$WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin:$PATH
./Allwclean
./Allwmake

Best regards,
Bruno


All times are GMT -4. The time now is 02:27.