CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Run blockMesh problem (http://www.cfd-online.com/Forums/openfoam-installation/57453-run-blockmesh-problem.html)

fpetit January 8, 2008 11:50

Hi, I'm a new Linux user, usin
 
Hi, I'm a new Linux user, using Ubuntu and trying to install openfoam.

I went through steps 1 to 5 of the readme file but then I couldn't run the first tutorial. It seems it cannot find blockMesh:

flo@flo-laptop:~/OpenFOAM/flo-1.4.1/run/tutorials/icoFoam$ blockMesh . cavity
bash: blockMesh : commande introuvable

Any idea what the problem is?

Note that when I run foamInstallationCheck there is no message at all and it closes. I supposed that it meant no error.


Thanks a lot.

mighelone January 8, 2008 12:18

Do you have add this line
 
Do you have add this line

source $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc

to your .bashrc file?

If you don't, add this line to ~/.bashrc

and reload the file:

# . ~/.bashrc

Then try the following command:

# foamInstallationTest

Michele

fpetit January 9, 2008 05:12

thanks for the reply the so
 
thanks for the reply

the sourcing looks ok.

However I have a problem with the Java configuration and the "no remote shell available"
Some people on the forum have had the same pb, but I couldn't find how to fix this pb...


The installation test gives:

Executing /home/flo/OpenFOAM/OpenFOAM-1.4.1/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: flo-laptop
OS: Linux version 2.6.17-12-generic
User: flo
User_config: /home/flo/.bashrc
Foam_config: /home/flo/.OpenFOAM-1.4.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/flo/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/flo/OpenFOAM/flo-1.4.1 yes no
$FOAM_JOB_DIR /home/flo/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/flo/OpenFOAM/OpenFOAM-1.4.1 yes yes yes

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

$JAVA_PATH /home/flo/OpenFOAM/linux/j2sdk1.4.2_05 no no
$MICO_ARCH_PATH .../mico-2.3.12/platforms/linuxGccDPOpt no yes
$LAM_ARCH_PATH --------- env variable not set --------- 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 ...OAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...OpenFOAM/flo-1.4.1/lib/linuxGccDPOpt yes yes no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.2
WARNING: Conflicting installations:
foam settings: /home/flo/OpenFOAM/linux/gcc-4.2.1-64/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2
libgcj)
WARNING: Conflicting installations:
foam settings: /home/flo/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
current path : /usr/bin/java

gzip 1.3.5 /bin/gzip
tar 1.3.5 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

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


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


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_flo-laptop Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Unsuccessful_connection_refused* yes
FATAL ERROR: No remote shell available.
Foam1.4.1 enviroment requires either ssh and/or rsh.
Contact your system administrator.


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

The system test has evoked 1 fatal error(s).

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

could you give me some hint??

thanks

Florent

fpetit January 9, 2008 05:31

one more thing... concerning
 
one more thing...
concerning the folder containing Java, Gcc and j2sdk, shall I name it linux, linux64 or this has no influence?
note: I put export WM_64=on in the /.bashrc file

mighelone January 9, 2008 05:35

Florent, from the output me
 
Florent,

from the output message you are using the java and gcc given by your distribution, maybe to solve the problem related with java, download the OpenFOAM version of java and put in ~/OpenFOAM/linux.

Michele

fpetit January 9, 2008 05:51

well I have already extracted
 
well I have already extracted the java archive in the ~/OpenFOAM/linux folder
but it seems that it is not used by the computer... a pb of path?

fpetit January 9, 2008 06:08

my pb has gone a little furthe
 
my pb has gone a little further...

when I run blockMesh . cavity
it gives
flo@flo-laptop:~/OpenFOAM/flo-1.4.1/run/tutorials$ cd icoFoam
flo@flo-laptop:~/OpenFOAM/flo-1.4.1/run/tutorials/icoFoam$ blockMesh . cavity
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by blockMesh)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libmeshTools.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libdynamicMesh.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libOpenFOAM.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libtriSurface.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/liblagrangian.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libfiniteVolume.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/openmpi-1.2.3/libPstream.s o)

I still may have a problem of path...

thx

Florent

francesco_b January 9, 2008 06:28

Hi Florent, maybe you have
 
Hi Florent,

maybe you have to download the libstdc++.so.6
Please check on your computer the version and update them if you need.

Francesco

irc January 9, 2008 09:10

I had the same problem. You n
 
I had the same problem. You need to make sure that you are using the gcc installation supplied with OpenFOAM. Try typing "which gcc" - does that point at /usr/bin/gcc or at something like /home/apps/OpenFOAM/linux64/gcc-4.2.1/bin/gcc? If the former, then check that your cshrc/bashrc file (in the .OpenFOAM-1.4.1 directory) is correctly configured.

fpetit January 10, 2008 05:40

the gcc points at /home/flo/
 
the gcc points at
/home/flo/OpenFOAM/linux64/gcc-4.2.1/bin/gcc

I guess the pb was java path:
I wrote
export JAVA_PATH=/home/flo/OpenFOAM/linux/j2sdk1.4.2_05/bin

in the .bashrc file and it seems to work now.
The blockMesh . cavity and icoFoam . cavity command are working but FoamX cannot launch...


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