CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Installation

OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 7, 2011, 11:22
Default
  #21
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi,

I think that
Code:
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu <maverick> main >> /etc/apt/sources.list"
should be
Code:
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu maverick main >> /etc/apt/sources.list"
Does that help?
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 7, 2011, 11:27
Default
  #22
New Member
 
Rogelio Chovet
Join Date: Feb 2011
Posts: 4
Rep Power: 5
chichovet is on a distinguished road
Quote:
Originally Posted by gwierink View Post
Hi,

I think that
Code:
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu <maverick> main >> /etc/apt/sources.list"
should be
Code:
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu maverick main >> /etc/apt/sources.list"
Does that help?
worked perfectly
Thank You very much
chichovet is offline   Reply With Quote

Old   February 7, 2011, 11:41
Default
  #23
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
That's good to hear!
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 21, 2011, 16:56
Default
  #24
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
nandiganavishal is on a distinguished road
Dear Foamers,

I am trying to install OF-1.7.1 on a RedHat cluster whose gcc version is 4.4.4 and it is a 64 bit machine. I was following the steps from the site but I get the following errors when I try to run ./Allwmake

make: *** [/turing/home/lee263/OpenFOAM/OpenFOAM-1.7.1/lib/linuxPPC64GccDPOpt/libdynamicMesh.so] Error 1
+ wmake libso dynamicFvMesh
/bin/sh: /turing/home/lee263/OpenFOAM/OpenFOAM-1.7.1/wmake/bin/linuxPPC64Gcc/wmkdep: No such file or directory
/bin/sh: /turing/home/lee263/OpenFOAM/OpenFOAM-1.7.1/wmake/bin/linuxPPC64Gcc/wmkdep: No such file or directory

Further I get the following error when I do a foamInstallation test.

Checking basic setup...
-------------------------------------------------------------------------------
Shell: tcsh
Host: turing-4.turing.cse.uiuc.edu
OS: Linux version 2.6.32.26-175.fc12.ppc64
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /turing/home/lee263/OpenFOAM yes yes
$WM_PROJECT_USER_DIR ...ng/home/lee263/OpenFOAM/lee263-1.7.1 no no
$WM_THIRD_PARTY_DIR ...ome/lee263/OpenFOAM/ThirdParty-1.7.1 yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR .../home/lee263/OpenFOAM/OpenFOAM-1.7.1 yes yes yes

$FOAM_APPBIN .../applications/bin/linuxPPC64GccDPOpt no yes
$FOAM_SITE_APPBIN ...AM/site/1.7.1/bin/linuxPPC64GccDPOpt no no
$FOAM_USER_APPBIN .../applications/bin/linuxPPC64GccDPOpt no no
$WM_DIR ...lee263/OpenFOAM/OpenFOAM-1.7.1/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...penFOAM-1.7.1/lib/linuxPPC64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...AM/site/1.7.1/lib/linuxPPC64GccDPOpt no no
$FOAM_USER_LIBBIN .../lee263-1.7.1/lib/linuxPPC64GccDPOpt no no
$MPI_ARCH_PATH ...latforms/linuxPPC64Gcc/openmpi-1.4.1 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.4 /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /turing/home/lee263/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxPPC64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

*** The foam installation contains 1 critical error(s)
*** Review the output for warning messages and consult
*** the installation guide for trouble shooting.

done.



Could you guys kindly help me out.

Thanks
nandiganavishal is offline   Reply With Quote

Old   February 22, 2011, 01:57
Default
  #25
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi Vishal,

Was the dynamicMesh error really the first one, or did you run into trouble earlier? Do you have a build log? If so, just look for "rror" and try to find the very first problem, this may be in ThirdParty already. Also, it seems you are using openmpi as provided in ThirdParty. On a cluster it's probably better to find the right MPI paths etc and use those. When I compiled on a cluster I found that I needed to use several local libraries instead of ThirdParty ones and also make my own wmake rules for the cluster's compiler. Have a look here, where I explain the steps that worked for me ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 22, 2011, 11:47
Default
  #26
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
nandiganavishal is on a distinguished road
Thanks for the reply. I will look into the link and would get back to you soon.
nandiganavishal is offline   Reply With Quote

Old   February 24, 2011, 12:20
Default
  #27
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
nandiganavishal is on a distinguished road
Dear Gijsbert,

I did go through your .pdf file and you were right the first error was in Thirdparty and in choosing the MPI and flex command was not found.

Here are the first set of errors,

./Allwmake
gcc -m64 -mcpu=power5+ -Wall -O3 -fPIC dirToString.c -o /turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/wmake/bin/linuxPPC64Gcc/dirToString
flex wmkdep.l
make: flex: Command not found
make: *** [/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/wmake/bin/linuxPPC64Gcc/wmkdep] Error 127

========================================
Start ThirdParty Allwmake
========================================

========================================
Compile specific mpi libraries

+ cd openmpi-1.4.1
+ make distclean
+ rm -rf /turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/platforms/linuxPPC64Gcc/openmpi-1.4.1
+ unset mpiWith
+ '[' -n '' ']'
+ ./configure --prefix=/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/platforms/linuxPPC64Gcc/openmpi-1.4.1 --disable-mpirun-prefix-by-default --disable-orterun-prefix-by-default --enable-shared --disable-static --disable-mpi-f77 --disable-mpi-f90 --disable-mpi-cxx --disable-mpi-profile
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar

================================================== ==========================
== Configuring Open MPI
================================================== ==========================

The cluster supports MPICH-Mx and i was told MPICH_GM and MX are the same, so I changed in the cshrc and settings.csh the following things

in cshrc file

# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | MPI | QSMPI
WM_MPLIB = MPICH-GM

in settings.csh file


case MPICH-GM:
setenv MPI_ARCH_PATH /opt/mpich-mx-gcc-32/
setenv MPICH_PATH $MPI_ARCH_PATH
setenv GM_LIB_PATH /opt/mx/lib64

Still the same problem exits. Further, flex was installed in the cluster, still the same flex error was found. I want to know where should the flex be installed.

Thanks a lot for the help.

Regards

Vishal
nandiganavishal is offline   Reply With Quote

Old   February 24, 2011, 12:41
Default
  #28
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Dear Vishal,

Quote:
make: flex: Command not found
Clearly flex is a problem to deal with. So, you say it is installed on the system. But apparently OpenFOAM can't find it. One option I read here is to find out where flex lives using e.g. "which flex" and then add it to your PATH. On my laptop flex lives in /usr/bin/flex, so I would add the following to my .bashrc
Code:
export PATH=/usr/bin/flex:$PATH
alias flex++='flex -+'
Does that help any? Otherwise you could also compile flex in your own account, if you can do that on your cluster ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 24, 2011, 13:42
Default
  #29
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
nandiganavishal is on a distinguished road
Dear Gijsbert,

I did try which flex but couldn't see any file, hence I decided to download and install the same in my own account and added the path to the cshrc file and now compiled ./Allwmake. I didn't get any flex error. That problem is resolved, however, I get some errors regarding Thirdparty. Following were the first error that I observed. Can you give your comments for the same.

make[2]: Entering directory `/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch'
gcc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_VERSION=\""5.1"\" dummysizes.c -o dummysizes -lz -lm -lrt
./dummysizes library.h scotch.h
./dummysizes libraryf.h scotchf.h
gcc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -c arch.c -o arch.o
gcc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -c arch_build.c -o arch_build.o
^Cmake[2]: *** wait: No child processes. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** wait: No child processes. Stop.
make[1]: *** [scotch] Error 2
make: *** [scotch] Interrupt


Thanks

Vishal
nandiganavishal is offline   Reply With Quote

Old   February 25, 2011, 03:35
Default
  #30
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Dear Vishal,

Good, so the flex issue is solved .

I see in your error message "^C". Did you press Ctrl+C because it got stuck or something?
For recompiling, did you clean up? Perhaps I'm a bit of a "compiling purist", but before (re)compiling I always do
Code:
rmdepall
wcleanLnIncludeAll
just to remove any weird traces of badly compiled code. So, perhaps you could do
Code:
cd $WM_THIRD_PARTY_DIR
rmdepall
wcleanLnIncludeAll
cd $WM_PROJECT_DIR
rmdepall
wcleanLnIncludeAll
and try again ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 25, 2011, 11:56
Default
  #31
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
nandiganavishal is on a distinguished road
Dear Gijsbert,

I did give Ctrl C when I saw the error in the first instant. However, I again compiled it to see what were other errors (didn't clean before compilation) and I created a make file for the same (using ./Allwmake >> make.log &). When I do this I see that along with the output displayed in the make file some error messages were also displayed in the terminal, I wonder why that is happening. I did try your command in the pdf file you had written for installation in cluster (./Allwmake >make.log 2>make.err &) but it gives me error. Anyways regarding other errors when I tried to build I find that in all
applications it gives the same error that is

make[2]: Leaving directory `/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/IFCLookUpTableGen
make[2]: Entering directory `/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[2]: Leaving directory `/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT'

Thanks
nandiganavishal is offline   Reply With Quote

Old   February 25, 2011, 12:44
Default
  #32
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi Vishal,

Strange that splitting the log doesn't work. But it doesn't matter really, it's just convenient. make leaving and entering directories is not an error, it should do that. Do you have anywhere in your log somewhere saying "Error"? Does your foamInstallationTest give any errors now? If so, I really suggest you clean the installation as I mentioned above and try again (after you made flex known to the installation ...).
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 25, 2011, 13:08
Default
  #33
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
nandiganavishal is on a distinguished road
Dear Gijsbert,

I am cleaning the entire thing and rebuilding it to see the errors using the commands you had mentioned by typing the following in the home directory.
rmdepall
wcleanLnIncludeAll

I would recompile once I finish cleaning them.


Just for your information, the errors I got from previous build

make[2]: *** [/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxPPC64GccDPOpt/IFCLookUpTableGen] Error 1
make[1]: *** [IFCLookUpTableGen] Error 2
Making dependency list for source file mixtureAdiabaticFlameT.C
could not open file ListI.H for source file mixtureAdiabaticFlameT.C
could not open file List.C for source file mixtureAdiabaticFlameT.C
could not open file SubList.H for source file mixtureAdiabaticFlameT.C
could not open file SLList.H for source file mixtureAdiabaticFlameT.C
could not open file parRun.H for source file mixtureAdiabaticFlameT.C
could not open file IStringStream.H for source file mixtureAdiabaticFlameT.C
could not open file sigFpe.H for source file mixtureAdiabaticFlameT.C
could not open file sigInt.H for source file mixtureAdiabaticFlameT.C
could not open file sigQuit.H for source file mixtureAdiabaticFlameT.C
could not open file sigSegv.H for source file mixtureAdiabaticFlameT.C
could not open file dictionary.H for source file mixtureAdiabaticFlameT.C
could not open file IFstream.H for source file mixtureAdiabaticFlameT.C
could not open file OSspecific.H for source file mixtureAdiabaticFlameT.C
could not open file specieThermo.H for source file mixtureAdiabaticFlameT.C
could not open file janafThermo.H for source file mixtureAdiabaticFlameT.C
could not open file perfectGas.H for source file mixtureAdiabaticFlameT.C
could not open file mixture.H for source file mixtureAdiabaticFlameT.C
/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[2]: *** [/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxPPC64GccDPOpt/mixtureAdiabaticFlameT] Error 1
make[1]: *** [mixtureAdiabaticFlameT] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.


and when I did do a foamInstallation test from my previous build and got 1 critical error.

Here is test results

Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: tcsh
Host: turing-4.turing.cse.uiuc.edu
OS: Linux version 2.6.32.26-175.fc12.ppc64
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /turing/home/nandiga1/OpenFOAM yes yes
$WM_PROJECT_USER_DIR ...ome/nandiga1/OpenFOAM/nandiga1-1.7.1 no no
$WM_THIRD_PARTY_DIR ...e/nandiga1/OpenFOAM/ThirdParty-1.7.1 yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR ...ome/nandiga1/OpenFOAM/OpenFOAM-1.7.1 yes yes yes

$FOAM_APPBIN .../applications/bin/linuxPPC64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...AM/site/1.7.1/bin/linuxPPC64GccDPOpt no no
$FOAM_USER_APPBIN .../applications/bin/linuxPPC64GccDPOpt no no
$WM_DIR ...ndiga1/OpenFOAM/OpenFOAM-1.7.1/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...penFOAM-1.7.1/lib/linuxPPC64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...AM/site/1.7.1/lib/linuxPPC64GccDPOpt no no
$FOAM_USER_LIBBIN ...andiga1-1.7.1/lib/linuxPPC64GccDPOpt no no
$MPI_ARCH_PATH ...latforms/linuxPPC64Gcc/openmpi-1.4.1 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.4 /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxPPC64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

*** The foam installation contains 1 critical error(s)
*** Review the output for warning messages and consult
*** the installation guide for trouble shooting.

done.

Thanks

Vishal
nandiganavishal is offline   Reply With Quote

Old   February 25, 2011, 13:26
Default
  #34
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
nandiganavishal is on a distinguished road
Dear Gijsbert,

I am building it again after cleaning everything, the first error I get is this


[nandiga1@turing-4 OpenFOAM-1.7.1]$ ./Allwmake >> make.log &
[1] 6144
[nandiga1@turing-4 OpenFOAM-1.7.1]$ + cd scotch_5.1/src
+ mkdir -p /turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/lib/linuxPPC64GccDPOpt/openmpi-1.4.1
+ make ptscotch
/usr/bin/ld: skipping incompatible /turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/platforms/linuxPPC64Gcc/openmpi-1.4.1/lib/libmpi.so when searching for -lmpi
/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status
make[2]: *** [dummysizes] Error 1
make[1]: *** [ptscotch] Error 2
make: *** [ptscotch] Error 2
+ cd metis-5.0pre2
+ cpMakeFiles metis
+ set +x


I would like to say that the cluster I use support MPICH-MX. Could you suggest how to resolve the following error.

Thanks

Vishal
nandiganavishal is offline   Reply With Quote

Old   February 26, 2011, 03:17
Default
  #35
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Dear Vishal,

I think it is best to make your own wmake rules, as I explain in the document I shared with you. For MPI in particular, you need to find out where the MPI libraries live and make those paths known by adjusting the WM_MPLIB and MPICH_PATH in $WM_PROJECT_DIR/etc/bashrc, as explained on p.5 and in Appendix A of my notes.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 27, 2011, 07:38
Default install problems
  #36
New Member
 
Tobias
Join Date: Feb 2011
Posts: 2
Rep Power: 0
podracer is on a distinguished road
Dear all,

I'm a newbie on openfoam. I tried to install it on ubuntu 10.10 according to the instructions. Now when I write:

ecoFoam -help

I receive how to start (with -parallel etc)

Then I try to start

ecoFoam

but receive the message
Code:
--> FOAM FATAL IO ERROR: 
cannot open file

file: /home/tobias/system/controlDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 61.

FOAM exiting
I have checked and it seems like the install has not created any files in my home directory. Could it be my user configuration that has failed for some reason and how can I fix it?
podracer is offline   Reply With Quote

Old   February 27, 2011, 09:16
Default
  #37
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings to all! Tobias, welcome to the forum!

I think you skipped an important section of the installation instructions: Getting Started
Also, refer to the user guide as stated in that section, to start learning how to use OpenFOAM. It's not as easy as simply running the solver

Best regards and good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   February 28, 2011, 20:34
Default
  #38
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
nandiganavishal is on a distinguished road
Dear Gijsbert

I have followed your document and incorporated changes to the settings.csh and cshrc file to the following to include the MPI parth as that was the first error

Here is the modified changes to settings.csh file


# Communications library
# ~~~~~~~~~~~~~~~~~~~~~~

unsetenv MPI_ARCH_PATH MPI_HOME

switch ("$WM_MPLIB")
case MPT:
setenv MPI_ARCH_PATH /opt/mpich-mx-gcc-32
setenv MPICH_PATH $MPI_ARCH_PATH
setenv GM_LIB_PATH /opt/mpich-mx-gcc-32/lib

_foamAddPath $MPI_ARCH_PATH/bin
_foamAddLib $MPI_ARCH_PATH/lib
_foamAddLib $GM_LIB_PATH

and the cshrc file


# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | MPI | QSMPI
setenv WM_MPLIB MPT

But I get the same error.


-DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_PTSCOTCH" CC="mpicc" SCOTCHLIB=ptscotch \
scotch.h \
scotchf.h \
libptscotch.so \
libptscotcherr.so \
libptscotcherrexit.so
make[2]: Entering directory `/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch'
mpicc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=\""5.1"\" dummysizes.c -o dummysizes -lz -lm -lrt
/usr/bin/ld: skipping incompatible /turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/platforms/linuxPPC64Gcc/openmpi-1.4.1/lib/libmpi.so when searching for -lmpi
/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status
make[2]: *** [dummysizes] Error 1
make[2]: Leaving directory `/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch'
make[1]: *** [ptscotch] Error 2
make[1]: Leaving directory `/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch'
make: *** [ptscotch] Error 2


Kindly let me know your suggestion.

Thanks

Vishal
nandiganavishal is offline   Reply With Quote

Old   March 1, 2011, 02:08
Default
  #39
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi Vishal,

If your MPI lives in /opt/mpich-mx-gcc-32, then it looks alright. But the system still can't find mpi.h or similar, so did you make new wmake rules for your own compiler? One needs to specify new rules and paths in $WM_PROJECT_DIR/wmake/rules. I called the compiler crayxt, so I made a directory $WM_PROJECT_DIR/wmake/rules/crayxt, where I specified the files in Appendix B of my report (p.18-22). In particular, if you use the MPT library, you need to specify what that means for the compiler, i.e. you need to create $WM_PROJECT_DIR/wmake/rules/crayxt/mplibMPT in that case. Just follow the recipe in Section 3.3 and Appendix B. Then you also need to make sure that these paths are added in settings.sh and bashrc in $WM_PROJECT_DIR/etc (with the paths and names for your system of course).
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   July 1, 2014, 08:55
Default
  #40
New Member
 
Jens
Join Date: Apr 2014
Posts: 16
Rep Power: 2
jensi_t is on a distinguished road
I had a similar problem with foam-ext-3.1 on OpenSuse 13.1. I think just adding

export OPENMPI_DIR=/usr/lib64/mpi/gcc/openmpi (installation directory of openmpi)
export OPENMPI_BIN_DIR= \$OPENMPI_DIR\/bin

to foam-extend-3.1/etc/prefs.sh

and running foam-extend-3.1/src/Pstream/Allwmake solved the problem.
jensi_t is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7 installation on Redhat linux maxims OpenFOAM Installation 2 November 30, 2012 05:29
Compiling OpenFOAM 1.7.1 on Ubuntu 10.10 samiam1000 OpenFOAM Installation 4 November 24, 2010 09:00
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 13:01.