CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Please help: Installing OpenFOAM-1.5-dev on Ubuntu 9.04

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 27, 2009, 19:47
Default Please help: Installing OpenFOAM-1.5-dev on Ubuntu 9.04
  #1
aat
New Member
 
Join Date: Oct 2009
Posts: 15
Rep Power: 16
aat is on a distinguished road
Hello everyone:

Would you be able to help me install OpenFOAM-1.5-dev on my machine? This machine runs Ubuntu 9.04 (64 bit) and is a quad-core machine.

Background: I am very new to using OpenFOAM, but I have compiled and used OpenFOAM 1.6.x using the installation script by MadsR (Thank you MadS!!). I want to install the 1.5 dev version in order to use GGI and also the alternateChemistry package. I am hoping that alternateChemistry module is more robust than the OpenFOAM-1.6.x version, also GGI is a HUGE plus)

Steps taken:
1. I downloaded the ThirdParty package from www.opencfd.co.uk and untarred it in ~/OpenFOAM
2. In the directory ~/OpenFOAM/ThirdParty/openmpi-1.2.6, I ran:
./configure
make all
sudo make install

(Note: As first attempt, I had tried to run ./Allwmake in ~/OpenFOAM/OpenFOAM-1.5-dev, but got repeated mpi related errors, one of them stating the system was not able to find mpi.h. After running make install in openmpi-1.2.6, I do not get this error)

3. settings.sh uses the System compiler (gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3) and "which gcc" reports /usr/bin/gcc

4. sourced ~/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc
5 sourced ~/.bashrc

6. Ran the Allwmake script in OpenFOAM-1.5-dev directory (via ./Allwmake)

The compilation runs and then while creating executables in the .../OpenFOAM-1.5-dev/applications/bin directory, it reports errors for all. I have pasted the tail of the compiler messages here:
Making dependency list for source file equilibriumCO.C
SOURCE=equilibriumCO.C ; g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=exported -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/equilibriumCO.o
g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=exported -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC Make/linux64GccDPOpt/equilibriumCO.o -L/home/amish/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/amish/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/equilibriumCO
/home/amish/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/openmpi-1.2.6/libPstream.so: undefined reference to `ompi_mpi_op_sum'
/home/amish/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/openmpi-1.2.6/libPstream.so: undefined reference to `ompi_mpi_byte'
/home/amish/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/openmpi-1.2.6/libPstream.so: undefined reference to `ompi_mpi_packed'
/home/amish/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/openmpi-1.2.6/libPstream.so: undefined reference to `ompi_mpi_comm_world'
/home/amish/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/openmpi-1.2.6/libPstream.so: undefined reference to `ompi_mpi_double'
collect2: ld returned 1 exit status
make[2]: *** [/home/amish/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/equilibriumCO] Error 1
make[1]: *** [equilibriumCO] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [thermophysical] Error 2
g++ -m64 -Dlinux64 -DDP -DFOAM_DEV_REVISION_NUMBER=exported -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/decompositionAgglomeration/decompositionMethods/lnInclude -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/meshTools/lnInclude -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/dynamicMesh/lnInclude -IlnInclude -I. -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/amish/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC Make/linux64GccDPOpt/redistributeMeshPar.o -L/home/amish/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt \
-lfiniteVolume -ldecompositionMethods -lmeshTools -ldynamicMesh -L/home/amish/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/openmpi-1.2.6 -lparMetisDecompositionMethod -lOpenFOAM -liberty -ldl -lm -o /home/amish/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/redistributeMeshPar
/usr/bin/ld: cannot find -ldecompositionMethods
collect2: ld returned 1 exit status
make[2]: *** [/home/amish/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/redistributeMeshPar] Error 1
make[1]: *** [redistributeMeshPar] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [parallelProcessing] Error 2
make: Target `application' not remade because of errors.
+ '[' '' = doc ']'


Summary:

From the error messages, it appears that the libPstream.o file is not built correctly, or perhaps I am missing some important step in this process. I have looked at previous posts, notably by Hy Yu on installing the dev version on Ubuntu 9.04, where he was asked to compile Metis, but the error messages looked different at first glance.

Sorry for the long post! Any help is most appreciated!

-AAT
aat is offline   Reply With Quote

 

Tags
installation, openfoam 1.5-dev


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 14:43
OpenFoam 1.6 Permissions in Ubuntu 9.04 AlanR OpenFOAM Installation 14 December 28, 2009 19:45
Trouble with installing OpenFOAM on Ubuntu Milos OpenFOAM Installation 16 November 16, 2009 02:44
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 06:59.