CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation problems Canbt open OpenFOAM13bashrc (https://www.cfd-online.com/Forums/openfoam-installation/57561-installation-problems-canbt-open-openfoam13bashrc.html)

dim March 7, 2007 11:03

Hello, I am a new user of l
 
Hello,

I am a new user of linux and I have to work on OpenFOAM for my studies. But I cannot install it. I have allready unzip all files in proper directories. but when I start the installation, this is what I get :


dim@dim-laptop:~$ echo $SHELL
/bin/bash
dim@dim-laptop:~$ cd OpenFOAM/OpenFOAM-1.3/
dim@dim-laptop:~/OpenFOAM/OpenFOAM-1.3$ .OpenFOAM-1.3/bashrc
bash: .OpenFOAM-1.3/bashrc: Permission non accordée %% (which means that I do not have the permission)
dim@dim-laptop:~/OpenFOAM/OpenFOAM-1.3$ sh OpenFOAM-1.3/bashrc
sh: Can't open OpenFOAM-1.3/bashrc

So I do not know how to open OpenFOAM-1.3/bashrc and I cannot go on the setup.

Thank you for your help

PS : I am French, sorry for my English.

dim March 7, 2007 11:05

something more, I work on Ubun
 
something more, I work on Ubuntu, I do not know if it is important for you.

hjasak March 7, 2007 11:13

you're missing a dot: .~/Op
 
you're missing a dot:

.~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc

See it: at the beginning it says: dot space "name of file"

Hrv

dim March 7, 2007 11:26

Thank you for your help. But w
 
Thank you for your help. But when I type this, I have the result : Permission non accordée, so I am not allowed to access to it.
Or maybe I do not understand what you say. Is it the command you want me to type? if not, could you please tell me what I have to type.

dim March 7, 2007 11:33

Ok sorry I have just understoo
 
Ok sorry I have just understood what you wanted to say.
Thank you very much, it works.

dim March 7, 2007 11:52

I need help again.. I tested
 
I need help again..
I tested the installation with foamInstallationTest, and it returns it :

Executing bash:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: dim-laptop
OS: Linux version 2.6.17-10-generic
User: dim
User_config: /home/dim/.bashrc
FATAL ERROR: /home/dim/.OpenFOAM-1.3/bashrc does not appear to be sourced from:
/home/dim/.bashrc

You need the following at the end of your /home/dim/.bashrc file:
. /home/dim/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc
or equivalent depending on the location of the OpenFOAM installation.

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


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/dim/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/dim/OpenFOAM/dim-1.3 yes no
$FOAM_JOB_DIR /home/dim/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/dim/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/dim/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 /home/dim/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/dim-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/dim/OpenFOAM/linux/gcc-4.1.0/bin/gcc
java 1.4.2_05 /home/dim/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.3.5 /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_dim-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.3 enviroment requires either ssh and/or rsh.
Contact your system administrator.


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

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

Critical systems ok.

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


Could you please tell me how to solve these fatal errors ? Sorry I do not understand lots of things whith linux...

Dim

dmoroian March 8, 2007 03:15

Hi Dimitri, As it is right no
 
Hi Dimitri,
As it is right now, you may use OpenFOAM in serial, but first you have to type:
source ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc
Then you can use all the top level solvers available... probably you will try the tutorials.

To automate a little bit more, just do what foamTestInstallation says:
You need the following at the end of your /home/dim/.bashrc file:
. /home/dim/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc
or equivalent depending on the location of the OpenFOAM installation.


For parallel computations, you will need an rshd or sshd server running on your machine.

Dragos

hamcer March 9, 2007 02:59

hi first y should show all f
 
hi
first y should show all files typing 'ls -a' command and type 'gedit bashrc' and the line recommanded in the readme and allwmake and test installation.

you will resol your pb

dim March 9, 2007 17:27

Hi, sorry for being so slow to
 
Hi, sorry for being so slow to answer I was too busy.
Thank you, I have tested what you said, and it works.


All times are GMT -4. The time now is 22:51.