CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   GIT Compile of 15x on OpenSUSE 11 problems (http://www.cfd-online.com/Forums/openfoam-installation/57250-git-compile-15x-opensuse-11-problems.html)

chrisd January 30, 2009 12:09

Hi, I'm really new to Linux
 
Hi,

I'm really new to Linux and I have been trying to compile the GIT version (on OpenSUSE v11.0 x64)
I have installed the binary version to check it all works – The tutorial and paraView run fine

I then download the GIT version using the command:
git clone git://repo.or.cz/OpenFOAM-1.5.x.git

Then place the OpenFOAM-1.5.x directory into my /home/chris/OpenFOAM directory
Change the entry in $HOME/.bashrc
From
. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
To
. $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc

Update the update the environment variables using:
. $HOME/.bashrc

At this point there is no error and the shell prompt appears (although it does not create a chris-1.5.x directory like it does for the binary install – I'm not sure if it is supposed to)

After a machine restart – upon opening the terminal I get the following errors before the prompt.

bash: /home/chris/OpenFOAM/OpenFOAM-dev/bin/foamCleanPath: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/bin/foamCleanPath: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/bin/foamCleanPath: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/etc/settings.sh: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/etc/aliases.sh: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/etc/apps/paraview3/bashrc: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/etc/apps/cint/bashrc: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/bin/foamCleanPath: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/bin/foamCleanPath: No such file or directory
bash: /home/chris/OpenFOAM/OpenFOAM-dev/bin/foamCleanPath: No such file or directory

I have tried running the ./Allwmake script (which compiles ok) before restarting – but it still gives the same terminal error after a restart and non of the OpenFOAM commands work

Thanks in advance for any help

olesen January 30, 2009 12:37

In the etc/bashrc file, remove
 
In the etc/bashrc file, remove the '#' comment character so the line reads:

export WM_PROJECT_VERSION=1.5.x

Alternatively, export this before sourcing the file.

Maybe you should submit a bug report.

chrisd January 30, 2009 13:25

Yep, thanks a lot I uncomme
 
Yep, thanks a lot

I uncommented it and updated the variables and that seems to have solved the problem.


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