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

Installation problem with GCC

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 28, 2005, 11:26
Default I downloaded OpenFOAM 1.0.2 a
  #1
Norma McKee (Mckee)
Guest
 
Posts: n/a
I downloaded OpenFOAM 1.0.2 along with the third party binaries for LINUX. There seems to be a problem with gcc-3.4.3 that was downloaded. When trying to run the tutorial examples:
blockMesh . cavity
I get the following messages:
lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /home/OpenFOAM/linux/gcc-3.4.3/lib/libstdc++.so.6)
lib/i686/libc.so.6: version `GLIBC_2.3.2' not found (required by /home/OpenFOAM/OpenFOAM-1.0.2/src/lam-7.1.1/platforms/)
lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /home/OpenFOAM/OpenFOAM-1.0.2/src/lam-7.1.1/platforms/li)
lib/i686/libpthread.so.0: version `GLIBC_2.3.2' not found (required by /home/OpenFOAM/OpenFOAM-1.0.2/src/lam-7.1.1/plat)
  Reply With Quote

Old   January 28, 2005, 11:37
Default What Linux version are your u
  #2
Henry Weller (Henry)
Guest
 
Posts: n/a
What Linux version are your using? The binaries we have shipped were compiled on SuSE 9.1 which uses glibc-2.3 as do other recent versions of Linux. If your Linux version does not use glibc-2.3 then you will either have to upgrade your OS or compile OpenFOAM from sources to be compatible with the glibc version you are using.
  Reply With Quote

Old   February 4, 2007, 00:08
Default Dear all, I am a brand new
  #3
New Member
 
JZ
Join Date: Mar 2009
Location: PBC, Florida, USA
Posts: 14
Rep Power: 7
jack2000 is on a distinguished road
Dear all,

I am a brand new OpenFoam user. I can successfully followe the instruction to install the OpenFoam-1.3 and ran the icoFoam and other cases in the tutorials. However, when I try to follow the use guide to re-compile the tubFoam source code. I got a long errors message. I have no idea what wrong with my installation.
Could anybody give me some help? Thank you very much in advance.
I install OpenFoam in SUSE Linux 10.1. The following is the message when I ran the foamInstallationTest



Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-8va9
OS: Linux version 2.6.16.13-4-smp
User: jizeng
User_config: /home/jizeng/.bashrc
Foam_config: /home/jizeng/.OpenFOAM-1.3/bashrc sourced correctly.
-------------------------------------------------------------------------------

Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/jizeng/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/jizeng/OpenFOAM/jizeng-1.3 yes no
$FOAM_JOB_DIR /home/jizeng/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------

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

$FOAM_USER_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes no
$FOAM_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes yes
$WM_DIR /home/jizeng/OpenFOAM/OpenFOAM-1.3/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH .../jizeng/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH ...mico-2.3.11/platforms/linuxGcc4DPOpt yes yes yes
$LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------

Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...FOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt yes yes yes
$FOAM_USER_LIBBIN ...enFOAM/jizeng-1.3/lib/linuxGcc4DPOpt yes yes no
$LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes
-------------------------------------------------------------------------------

Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.0 /home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/gcc
java 1.4.2_05 /home/jizeng/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.3.5 /usr/bin/gzip
tar 1.3.5 /bin/tar
icoFoam ...M/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/icoFoam
-------------------------------------------------------------------------------

Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------

Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_linux-8va9 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 Foam enviroment.

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

Base configuration ok.

Critical systems ok.



The following is the message when I try to re-compile turFoam (I delete the repeated message in order make the message shorter)


rbFoam> wmake
make: Nothing to be done for `allFiles'.
Making dependency list for source file turbFoam.C

SOURCE_DIR=.
SOURCE=turbFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/turbulenceModels -I/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/transportModels -I/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/turbFoam.o
In file included from /home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/inc lude/syslimits.h:7,
from /home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/inc lude/limits.h:11,
from /home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/climits:50,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/label.H:38,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/labelList.H:36,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Pstream.H:45,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/OPstream.H:37,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/parRun.H:4,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvCFD.H:4,
from turbFoam.C:33:
/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/inc lude/limits.h:122:61: error: limits.h: No such file or directory
In file included from /home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/i686-pc-linux-gnu/bits/c++config.h:35,
from /home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cstdlib:50,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/label.H:39,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/labelList.H:36,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Pstream.H:45,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/OPstream.H:37,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/parRun.H:4,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvCFD.H:4,
from turbFoam.C:33:

******************* I have deleted similar error message here *************************

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cmath:409: error: '::tan' has not been declared
/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cmath:424: error: '::tanh' has not been declared

/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(float, long int)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/doubleFloat.H:83: error: '::pow' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/doubleFloat.H: In function 'double Foam::pow(long int, float)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/doubleFloat.H:84: error: '::pow' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::atan2(Foam::floatScalar, Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:100: error: '::atan2' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::mag(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:105: error: '::fabs' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::sqrt(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:181: error: '::sqrt' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::exp(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:182: error: '::exp' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::log(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:183: error: '::log' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::log10(Foam::floatScalar)':

******************* I have deleted similar error message here *************************

/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::sinh(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:191: error: '::sinh' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::cosh(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:192: error: '::cosh' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::tanh(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:193: error: '::tanh' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::asinh(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:194: error: '::asinh' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::acosh(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:195: error: '::acosh' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::floatScalar Foam::atanh(Foam::floatScalar)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H:201: error: '::erfc' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Scalar.H: In function 'Foam::doubleScalar Foam::lgamma(Foam::doubleScalar)':



******************* I have deleted similar error message here *************************

/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/clock.H:56: error: 'time_t' does not name a type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/clock.H:59: error: 'time_t' does not name a type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/clock.H:62: error: 'time_t' does not name a type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/clock.H:79: error: 'time_t' does not name a type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/clock.H:91: error: 'time_t' does not name a type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/clock.H:94: error: 'time_t' does not name a type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/cpuTime.H:57: error: field 'startTime_' has incomplete type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/cpuTime.H:58: error: field 'lastTime_' has incomplete type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/cpuTime.H:59: error: field 'newTime_' has incomplete type
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/VectorSpaceI.H: In function 'Foam::scalar Foam::mag(const Foam::VectorSpace<form,>&)':
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/VectorSpaceI.H:349: error: '::sqrt' has not been declared
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/mathematicalConstants. H: At global scope:
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/mathematicalConstants. H:47: error: 'M_PI' was not declared in this scope
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/mathematicalConstants. H:48: error: 'M_E' was not declared in this scope
turbFoam.C: In function 'int main(int, char**)':
turbFoam.C:116: error: 'class Foam::Time' has no member named 'elapsedClockTime'/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686- pc-linux-gnu/4.1.0/../../../../include/c++/4.1.0/streambuf: In member function 'typename _Traits::pos_type std::basic_streambuf<_chart,>::seekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]':
/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/streambuf:252: instantiated from 'typename _Traits::pos_type std::basic_streambuf<_chart,>::pubseekpos(typename _Traits::pos_type, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]'
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/OStringStream.H:104: instantiated from here
/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/streambuf:599: error: no type named 'off_type' in 'struct std::char_traits<char>'
make: *** [Make/linuxGcc4DPOpt/turbFoam.o] Error 1
jizeng@linux-8va9:~/OpenFOAM/OpenFOAM-1.3/applications/solvers/incompressible/turbFoam>



Regards!

Jack


jack2000 is offline   Reply With Quote

Old   February 5, 2007, 08:44
Default Obviously something is wrong w
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,862
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Obviously something is wrong with your gcc-installation. Check if the file the compiler complains about (/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/in c lude/limits.h) exists. Check for the directories that contain it.

One suspicion: did you install the Foam-Stuff and are you now using it as jizeng? Maybe you don't have read-access to the include-file.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is online now   Reply With Quote

Old   February 7, 2007, 16:37
Default Hi, Bernhard, Thank you for y
  #5
New Member
 
JZ
Join Date: Mar 2009
Location: PBC, Florida, USA
Posts: 14
Rep Power: 7
jack2000 is on a distinguished road
Hi, Bernhard,
Thank you for your answer.
You are absolute right that the compiler complains losting limits.h, it also complains losting other library files. They are shown below. However, when I check them, I can find them in corresponding place: ../lib/gcc/i686-pc-linux-gnu/4.1.0/include/

Actually, I followed the instructions in the release notes, and I haven't found any problems during the installation. So far I can run icoFoam and other cases in the tutorials with binary code in(/home/jizeng/OpenFOAM/jizeng-1.3/run/tutorials
It is in "/home/jizeng/OpenFOAM/OpenFOAM-1.3/applications/solvers", I try to compile turbFoam.c. I have no idea why the compiler can not link limits.h and other library files.

Do you think this problem is because SUSE 10.1 platform ang pre-compiled GNU gcc/G++ 4.1.0 doesn't not match? Could you give me some hint on how to solve this problem. Thank you very much!


Best Regards!


Jack

The compiling error are listed below:


/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/inc lude/limits.h:122:61: error: limits.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/i686-pc-linux-gnu/bits/os_defines.h:39:22: error: features.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cstdlib:71:20: error: stdlib.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cstring:52:20: error: string.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cstdio:53:19: error: stdio.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/clocale:50:20: error: locale.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/i686-pc-linux-gnu/bits/c++locale.h:44:38: error: langinfo.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/i686-pc-linux-gnu/bits/c++locale.h:45:56: error: iconv.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/i686-pc-linux-gnu/bits/c++locale.h:46:39: error: libintl.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/i686-pc-linux-gnu/bits/gthr-default.h:43:21: error: pthread.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/i686-pc-linux-gnu/bits/gthr-default.h:44:20: error: unistd.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cctype:51:19: error: ctype.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/ctime:52:18: error: time.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cwchar:55:19: error: wchar.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/bits/postypes.h:49:35: error: stdint.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cwctype:53:20: error: wctype.h: No such file or directory

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../ ../../../include/c++/4.1.0/cmath:53:18: error: math.h: No such file or directory

/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/OSspecific.H:40:23: error: sys/types.h: No such file or directory
In file included from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Time.H:47,
from /home/jizeng/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude/fvCFD.H:6,
from turbFoam.C:33:
/home/jizeng/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/cpuTime.H:40:23: error: sys/times.h: No such file or directory

jack2000 is offline   Reply With Quote

Old   February 7, 2007, 20:06
Default Hi, Short answer: make sure t
  #6
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
Hi,
Short answer: make sure the glibc-devel package (and other relevant development packages) is installed on your system.

What the message

/home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/inc lude/limits.h:122:61: error: limits.h: No such file or directory

tells is that compiler did find /home/jizeng/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/inc lude/limits.h but it couldn't find the system limits.h which is included from the line 121 of /home/jizeng/.../limits.h:

#include_next <limits.h> /* recurse down to the real one */

here #include_next means "include the next file in search paths with this name."

And in my openSUSE 10.2 doing
rpm -qf /usr/include/limits.h
returns
glibc-devel-2.5-25
so maybe the same package is required also on SUSE 10.1.

Hope this helps,
Takuya
7islands is offline   Reply With Quote

Old   February 8, 2007, 00:25
Default Hi, Takuya, Thank you very mu
  #7
New Member
 
JZ
Join Date: Mar 2009
Location: PBC, Florida, USA
Posts: 14
Rep Power: 7
jack2000 is on a distinguished road
Hi, Takuya,
Thank you very much for your answer.
Could you tell me more details where I should run:
rpm -qf /usr/include/limits.h

In usr/include, correct? Because I can not find limits.h file there.

Also, should I add the line
#include_next <limits.h> /* recurse down to the real one */

into the turbFOAM.C?

I am new user of SUSE Linux, Maybe these are stupid questions.

Thank you very much in advance.


Best Regards!

Jack
jack2000 is offline   Reply With Quote

Old   February 8, 2007, 19:34
Default Sorry I wrote too many unneces
  #8
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
Sorry I wrote too many unnecessary things

Just install glibc-devel from
YaST -> Software -> Software Management.

Takuya
7islands is offline   Reply With Quote

Old   February 8, 2007, 23:52
Default Yes, it work perferly! Thank y
  #9
New Member
 
JZ
Join Date: Mar 2009
Location: PBC, Florida, USA
Posts: 14
Rep Power: 7
jack2000 is on a distinguished road
Yes, it work perferly! Thank you very much indeed!

Jack
jack2000 is offline   Reply With Quote

Old   March 3, 2007, 11:58
Default hi all > it is my first time
  #10
New Member
 
aksouh mohamed
Join Date: Mar 2009
Location: Algiers - Algeria
Posts: 3
Rep Power: 7
aksmed is on a distinguished road
hi all
> it is my first time to use openfoam. After install
> openfoam on my computer (linux- Redhat 9.0), i run
> FoamX. but i have some problem, i hope that you help
> me for resolve them :
>
>
>
> 1. firstly i test my installation
> [root@pc-astro-am bin]# ./foamInstallationTest
> Executing ./foamInstallationTest:
>
>
> Checking basic setup...
>
---------------------------------------------------------------------------
>---- Shell: bash
> Host: pc-astro-am
> OS: Linux version 2.4.21-4.ELsmp
> User: root
> User_config: /root/.bashrc
> Foam_config: /root/.OpenFOAM-1.3/bashrc sourced
> correctly.
>
---------------------------------------------------------------------------
>----
>
>
> Checking main FOAM env variables...
>
---------------------------------------------------------------------------
>---- Environment_variable Set_to_file_or_directory
> Valid Crit
>
---------------------------------------------------------------------------
>---- $WM_PROJECT_INST_DIR /root/OpenFOAM
> yes yes
> $WM_PROJECT_USER_DIR /root/OpenFOAM/root-1.3
> yes no
> $FOAM_JOB_DIR /root/OpenFOAM/jobControl
> no yes
>
---------------------------------------------------------------------------
>----
>
>
> Checking the FOAM env variables set on the PATH...
>
---------------------------------------------------------------------------
>---- Environment_variable Set_to_file_or_directory
> Valid Path Crit
>
---------------------------------------------------------------------------
>---- $WM_PROJECT_DIR /root/OpenFOAM/OpenFOAM-1.3
> yes yes yes
>
> $FOAM_USER_APPBIN
> ...-1.3/applications/bin/linuxGcc4DPOpt yes yes no
> $FOAM_APPBIN
> ...-1.3/applications/bin/linuxGcc4DPOpt yes yes yes
> $WM_DIR /root/OpenFOAM/OpenFOAM-1.3/wmake
> yes yes yes
> $FOAMX_PATH
> ...ations/utilities/preProcessing/FoamX yes no yes
> $CEI_HOME /usr/local/ensight/CEI
> no no
>
> $JAVA_PATH
> /root/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
> $MICO_ARCH_PATH
> ...mico-2.3.11/platforms/linuxGcc4DPOpt yes yes yes
> $LAM_ARCH_PATH
> ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes
> $MPICH_ARCH_PATH --------- env variable not set
> --------- no
>
---------------------------------------------------------------------------
>----
>
>
> Checking the FOAM env variables set on the
> LD_LIBRARY_PATH...
>
---------------------------------------------------------------------------
>---- Environment_variable Set_to_file_or_directory
> Valid Path Crit
>
---------------------------------------------------------------------------
>---- $FOAM_LIBBIN
> ...FOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt yes yes yes
> $FOAM_USER_LIBBIN
> ...OpenFOAM/root-1.3/lib/linuxGcc4DPOpt yes yes no
> $LAM_ARCH_PATH
> ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes
>
---------------------------------------------------------------------------
>----
>
>
> Software versions
>
---------------------------------------------------------------------------
>---- Software Version Location
>
---------------------------------------------------------------------------
>---- gcc 4.1.0
> /root/OpenFOAM/linux/gcc-4.1.0/bin/gcc
> java 1.4.2_05
> /root/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
> gzip 1.3.3 /bin/gzip
> tar 1.3.3 /bin/tar
> icoFoam
> ...M/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/icoFoam
>
---------------------------------------------------------------------------
>----
>
>
> Checking file/directory permissions...
>
---------------------------------------------------------------------------
>---- File/directory Set
> Reqd Crit
>
---------------------------------------------------------------------------
>----
>
>
> Checking networking...
>
---------------------------------------------------------------------------
>---- Action Result
> Crit
>
---------------------------------------------------------------------------
>---- Pinging_pc-astro-am 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 Foam
> enviroment.
>
>
---------------------------------------------------------------------------
>----
>
> Base configuration ok.
>
> Critical systems ok.
>
> 2. secondly, I run FoamX
>
> [root@pc-astro-am bin]# FoamX
> Starting NameServer with inet:pc-astro-am:1234 ...
> nsd: error while loading shared libraries:
> libelf.so.0: cannot open shared object file: No such
> file or directory
>
>
> when i receive this message, i configure mico
>
> 3. i configure mico-2.3.11 :
> [root@pc-astro-am mico-2.3.11]# ./configure
> loading cache ./config.cache
> checking for extra include and lib directories...
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking build system type... i686-pc-linux-gnu
> checking for gcc... gcc
> checking whether the C compiler (gcc ) works... no
> configure: error: installation or configuration
> problem: C compiler cannot create executables.
>
> but in this part, i have problem to configure
> mico-2.3.11.
>
>
>
> thank you veru much, and i will be very grateful.
> with best regards
>
>
aksmed is offline   Reply With Quote

Old   March 4, 2007, 08:09
Default Install libelf on your system,
  #11
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 646
Rep Power: 10
dmoroian is on a distinguished road
Install libelf on your system, then everything should work ok.
Try also the search feature of the forum, your problem has been discussed several times before.

Dragos
dmoroian 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
Installation problem Andrei Smirnov (Smirnov) OpenFOAM Installation 21 May 7, 2007 12:15
installation problem Dr C.Bhasker CD-adapco 1 September 13, 2006 08:01
Installation Problem Sundar.M CD-adapco 0 June 28, 2006 00:42
Installation Problem Meenu FLUENT 2 April 22, 2006 15:29
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 05:07


All times are GMT -4. The time now is 18:58.