CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Install problem in linux (http://www.cfd-online.com/Forums/openfoam-installation/57354-install-problem-linux.html)

navaladi March 27, 2006 09:58

debian:/media/lin1/move/OpenFO
 
debian:/media/lin1/move/OpenFOAM-1.2# ./Allwmake
Makefile:61: /rules//general: No such file or directory
Makefile:62: /rules: No such file or directory
make: *** No rule to make target `/rules'. Stop.
./Allwmake: line 3: wmake: command not found
./Allwmake: line 4: wmake: command not found
./Allwmake: line 82: cd: /OpenFOAM: No such file or directory
./Allwmake: line 82: wmakeLnInclude: command not found
./Allwmake: line 84: cd: /utilities/miscellaneous: No such file or directory
./Allwmake: line 85: wmake: command not found
cp: cannot stat `foamFlex/FlexLexer.h': No such file or directory
./Allwmake: line 89: cd: Pstream: No such file or directory
./Allwmake: line 89: ./Allwmake: No such file or directory
./Allwmake: line 90: wmake: command not found
./Allwmake: line 92: wmake: command not found
./Allwmake: line 94: wmakeLnInclude: command not found
./Allwmake: line 95: wmake: command not found
./Allwmake: line 96: wmake: command not found
./Allwmake: line 98: wmake: command not found
./Allwmake: line 99: wmake: command not found
./Allwmake: line 100: wmake: command not found
./Allwmake: line 102: cd: finiteElement: No such file or directory
./Allwmake: line 102: ./Allwmake: No such file or directory
./Allwmake: line 103: wmake: command not found
./Allwmake: line 104: wmake: command not found
./Allwmake: line 105: wmake: command not found
./Allwmake: line 106: wmake: command not found
./Allwmake: line 108: wmake: command not found
./Allwmake: line 109: wmake: command not found
./Allwmake: line 111: cd: thermophysicalModels: No such file or directory
./Allwmake: line 111: ./Allwmake: No such file or directory

debian:/media/lin1/move/OpenFOAM-1.2#

navaladi March 27, 2006 10:02

I have tried in debian as well
 
I have tried in debian as well as in FC4.
Also i do n't understand the WM_DIR path..

debian:/media/lin1/move/OpenFOAM-1.2# echo $WM_DIR

debian:/media/lin1/move/OpenFOAM-1.2#

niklas March 27, 2006 10:03

I love these games, guess my q
 
I love these games, guess my question?

ls
ls: Command not found.

navaladi March 27, 2006 10:20

yes..wmake command should be i
 
yes..wmake command should be installed by giving ./Allmake...Have to noticed the weird thing..

debian:/media/lin1/move/OpenFOAM-1.2# ./Allwmake
Makefile:61: /rules//general: No such file or directory
Makefile:62: /rules: No such file or directory
make: *** No rule to make target `/rules'. Stop.

hjasak March 27, 2006 10:29

You're missing the machine inf
 
You're missing the machine info bit: do uname -s and tell me whet you get.

Hrv

navaladi March 27, 2006 10:36

navaladi@debian:~/openflower-v
 
navaladi@debian:~/openflower-v1.0$ uname -a
Linux debian 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux
navaladi@debian:~/openflower-v1.0$

hjasak March 27, 2006 10:50

Yes, but I have asked for unam
 
Yes, but I have asked for uname -s. Have a look at .OpenFOAM/cshrc (whichever one you are using) and the bit that sets your arch:


# Detect system type and set environment variables
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set machineTest=`uname -s`

# Linux workstation
# ~~~~~~~~~~~~~~~~~
if ($machineTest == Linux) then

#setenv WM_COMPILER

blah blah
# Detect system type and set environment variables
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set machineTest=`uname -s`

# Linux workstation
# ~~~~~~~~~~~~~~~~~
if ($machineTest == Linux) then

#setenv WM_COMPILER
setenv WM_COMPILER Gcc4
#setenv WM_COMPILER I32

set processor = `uname -m`

if ($processor == i686) then
setenv WM_ARCH linux
#setenv WM_COMPILER I32
else if ($processor == x86_64) then
if ( $?WM_64 ) then
setenv WM_ARCH linuxAMD64
setenv WM_COMPILER_LIB_ARCH 64
setenv CC 'gcc'
setenv CXX 'g++'
setenv CFLAGS '-m64'
setenv CXXFLAGS '-m64'
setenv LDFLAGS '-m64'
else
setenv WM_ARCH linux
#setenv WM_COMPILER I32
setenv WM_COMPILER_ARCH '-64'
setenv CC 'gcc'
setenv CXX 'g++'
setenv CFLAGS '-m32'
blah blah


Now find out what your WM_ARCH is set to and why (I suspect it's blank).

Hrv

navaladi March 27, 2006 11:00

sure, debian:/media/lin1/mo
 
sure,

debian:/media/lin1/move/OpenFOAM-1.2# uname -s
Linux
debian:/media/lin1/move/OpenFOAM-1.2# echo $WM_ARCH

debian:/media/lin1/move/OpenFOAM-1.2# echo $SHELL
/bin/bash
debian:/media/lin1/move/OpenFOAM-1.2#

mattijs March 27, 2006 13:58

Did you 'source' the ~/OpenFOA
 
Did you 'source' the ~/OpenFOAM/OpenFOAM/.OpenFOAM-1.2/.bashrc as explained in the README file?

Any particular reason why you are compiling? The binary packs on the download site should cover your architecture (i686)

craiger February 21, 2008 12:48

I am having similar problems a
 
I am having similar problems as navaladi A. As far as updating the environment variables. This is what I did.

I added . $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc

to $HOME/.bashrc

and I typed . $HOME/.bashrc in the terminal

Here is some info that you had asked navaladi

craig@craig-desktop:~/OpenFOAM/OpenFOAM-1.4.1$ uname -s
Linux
craig@craig-desktop:~/OpenFOAM/OpenFOAM-1.4.1$ echo $WM_ARCH

craig@craig-desktop:~/OpenFOAM/OpenFOAM-1.4.1$ echo $SHELL
/bin/bash


Here is the results of the foam installation test:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: craig-desktop
OS: Linux version 2.6.22-14-generic
User: craig
User_config: /home/craig/.bashrc
Foam_config: /home/craig/.OpenFOAM-1.4.1/bashrc sourced correctly.

FATAL ERROR Foam install directory not set.

Set correct path to installation 'WM_PROJECT_INST_DIR' in /home/craig/.foam2.3/bashrc
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR --------- env variable not set --------- yes
$WM_PROJECT_USER_DIR --------- env variable not set --------- no
$FOAM_JOB_DIR --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR --------- env variable not set --------- yes

$FOAM_USER_APPBIN --------- env variable not set --------- no
$FOAM_APPBIN --------- env variable not set --------- yes
$WM_DIR --------- env variable not set --------- yes
$FOAMX_PATH --------- env variable not set --------- yes
$CEI_HOME --------- env variable not set --------- no

$JAVA_PATH --------- env variable not set --------- no
$MICO_ARCH_PATH --------- env variable not set --------- 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 --------- env variable not set --------- yes
$FOAM_USER_LIBBIN --------- env variable not set --------- no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.3
WARNING: Conflicting installations:
foam settings: /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java *** not installed ***

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

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


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


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_craig-desktop 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.

zoune April 16, 2008 09:58

Ay, I had the same problem...
 
Ay,
I had the same problem...

$ export WM_DIR=$WM_PROJECT_DIR

allowed the software to compile and myself to take a nice cup of coffee ;o) ( I mean until now, the compilation is going smoothly, I just have to wait for and see before confirming)

mgz1985 July 17, 2008 02:24

I am getting the following err
 
I am getting the following error when i run blockMesh . cavity

frpelikan@Techn-028:~/OpenFOAM/mayank/run/tutorials/icoFoam$ blockMesh . cavity
bash: /home/frpelikan/OpenFOAM/OpenFOAM-1.4/applications/bin/linuxGcc4DPOpt/blockMesh: No such file or directory


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