CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   Error while running Allwmake (

Indrajit April 9, 2012 03:06

Error while running Allwmake
Dear All,

I finding error below while running Allwmake.
I trying install OpenFAOM 2. on RedHat Linux 5.1.19 64bit ------------------------------------------------------------------------------------------
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/root/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam] Error 1
make[2]: Leaving directory `/root/OpenFOAM/OpenFOAM-2.1.0/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[1]: *** [solidEquilibriumDisplacementFoam] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/root/OpenFOAM/OpenFOAM-2.1.0/applications/solvers/stressAnalysis'
make: *** [stressAnalysis] Error 2
make: Target `application' not remade because of errors.
[root@localhost OpenFOAM-2.1.0]#

Thanks In Advance,

wyldckat April 9, 2012 05:03

Greetings Indrajit,

  • What gcc and g++ versions are you using?

    gcc --version
    gcc --version

    Anything below 4.3.3 will not work.
  • The first error is usually the one to blame. Run:

    ./Allwmake > make.log 2>&1
    This way you'll get the whole output in the file "make.log". Then pack the file and attach on your next post.
    For packing the file, you can sue this command:

    tar -czf make.log.tar.gz make.log
    And then attach the file "make.log.tar.gz".
And why aren't you using CentFOAM?

Best regards,

Indrajit April 9, 2012 06:11

Thanks Bruno
Thank you Bruno for your quick reply.

You are right i am using old version of gcc (4.1)

I have downloaded new one 4.4, but i don't know how to install it.

please guide me.

I don't know about CentFOAM , can you guide .


wyldckat April 9, 2012 08:14

Here you go, CentFOAM's wiki page that explains it all:

Here on the forum other people have detailed a bit how to install OpenFOAM on CentOS, RHEL and SL, but usually the best is to use CentFOAM.

All times are GMT -4. The time now is 09:50.