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

Installation of OpenFOAM 1.5-dev and its fitness for FSI?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2010, 07:35
Default
  #21
Senior Member
 
Herman
Join Date: Nov 2009
Posts: 122
Rep Power: 16
enry is on a distinguished road
Hi,
compile with the following instruction:

./Allwmake >&log

Open the log file and see if there is some errors. I think that you don't have some packages.
Regards.
Enry.
enry is offline   Reply With Quote

Old   March 12, 2010, 04:41
Default OpenFOAM-1.5-dev compilation errors
  #22
Member
 
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 16
aldo.iannetti is on a distinguished road
Dear OF users,
I'm trying to compile OF-1.5-dev on my ubuntu 8.10. The link (http://www.cfd-online.com/Forums/ope...m-1-5-dev.html)supplied by Enry has been useful but I need your last help to study the compilation's log. Now compilation of both Third Party and OF1.5-dev has been carried out but the foamInstallationTest outputs:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: aldo-laptop
OS: Linux version 2.6.27-16-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/aldo/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/aldo/OpenFOAM/aldo-1.5-dev yes no
$WM_THIRD_PARTY_DIR /home/aldo/OpenFOAM/ThirdParty 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/aldo/OpenFOAM/OpenFOAM-1.5-dev yes yes yes

$FOAM_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_USER_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR ...aldo/OpenFOAM/OpenFOAM-1.5-dev/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 ...OpenFOAM-1.5-dev/lib/linux64GccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...OAM/aldo-1.5-dev/lib/linux64GccDPOpt yes yes no
$MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : ../src/configure
4.3.2
Minimum required: 4.2.0

gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.20 /bin/tar
icoFoam 1.5-dev ...nFOAM-1.5-dev/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_aldo-laptop Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

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

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.


Trying a tutorial I had no problems but I'm afraid I will have in compiling applications (I read a gcc conflict problem)
Here attached my log...can someone have a look. Can you please help me to fix foaminsatllationtest problem?
Thanks
Attached Files
File Type: gz logOF15-dev.tar.gz (69.6 KB, 3 views)
aldo.iannetti is offline   Reply With Quote

Old   March 12, 2010, 10:50
Default
  #23
Senior Member
 
Herman
Join Date: Nov 2009
Posts: 122
Rep Power: 16
enry is on a distinguished road
Go to .../OpenFOAM-1.5-dev/etc/settings.sh and find :

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Try to replace the following line into /OpenFOAM-1.5-dev/etc/settings.sh

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | System
compilerInstall=OpenFOAM
# compilerInstall=System

instead of

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | System
# compilerInstall=OpenFOAM
# compilerInstall=System


I had your own problem and I solved It in this way. Somebody says to replace with

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilerInstall = OpenFOAM | System
# compilerInstall=OpenFOAM
# compilerInstall=System

but It doesn't work on my computer.
Good luck!
enry is offline   Reply With Quote

Old   November 16, 2010, 02:18
Default error compiling OpenFOAM
  #24
Member
 
Paul Reichl
Join Date: Feb 2010
Location: Melbourne, Victoria, Australia
Posts: 33
Rep Power: 16
preichl is on a distinguished road
Hi All,

I am having an issue compiling the source code as per the procedure given in InstallOF-1.5-dev.sh Thanks for this (I had to change it slightly as the ThirdParty files were downloaded as a file called "download" instead of "ThirdParty.General.gtgz").

After that everything worked well and most of the compilation works except that I see errors late in the compilation stage related to a missing -lOpenFOAM library.

After searching through the log the first error that I get is (snippet from log file)

+ wmake libso OpenFOAM
linux64GccDPOpt/options:14: *** missing separator. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created

I then get a number of errors (much later) as follows

/usr/bin/ld: cannot find -lOpenFOAM

I suspect the later errors are all related to the first one.

Does anyone have ideas for what I should try to get around this?

I have *not* tried using the line below yet but I will try this next.
compilerInstall=OpenFOAM

For the record my ~/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/Make/options file is listed below. I am not sure what if anything is wrong with it.

EXE_INC = \
-I$(WM_THIRD_PARTY_DIR)/zlib-1.2.3

LIB_LIBS = \
$(FOAM_LIBBIN)/libOSspecific.o \
-L$(FOAM_LIBBIN)/dummy -lPstream \
-lz

// Special rule for global/global.Cver:
// We force the recompilation so the revision number will always be up-to-date
$(OBJECTS_DIR)/global.o: FORCE

FORCE:

Thanks in advance for any suggestions,

Paul.
preichl is offline   Reply With Quote

Old   November 16, 2010, 17:39
Default
  #25
Member
 
Paul Reichl
Join Date: Feb 2010
Location: Melbourne, Victoria, Australia
Posts: 33
Rep Power: 16
preichl is on a distinguished road
I think that I have solved this problem.
All I needed to do was add a carriage return at the end of the last line so that the file was now 14 lines instead of 13 lines. (i.e. I just edited the file and hit return on the last line)

Hope this helps anyone else who encounters the same problem.

Cheers,

Paul.
preichl is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 12:32.