CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   installtion error for OF210 source pack (https://www.cfd-online.com/Forums/openfoam-installation/101806-installtion-error-of210-source-pack.html)

suryawanshi_nitin May 14, 2012 15:44

installtion error for OF210 source pack
 
hi
i m facing issue in installing of210 source pack. for envoirmental settings, i have added the lines at end of the .bashrc file as follow

alias of201='source /opt/openfoam201/etc/bashrc'
alias of210='source $HOME/openFOAM/OpenFOAM-2.1.0/etc/bashrc'


but when i m running ./Allwmake through i m getting following error msg

administrator@ubuntu:~/openFOAM/OpenFOAM-2.1.0$ ./Allwmake
./Allwmake: 9: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

My machine is lenova 32 bit, allready OF201 debian pack is there in machine working properly,

plz help me on this thanks in advance
Nitin

wyldckat May 14, 2012 16:47

Greetings Nitin,

I was going to say that you had forgotten to run "of210" in the terminal, but now I noticed that you missed an important letter:
  • You have this:
    Quote:

    alias of210='source $HOME/openFOAM/OpenFOAM-2.1.0/etc/bashrc'
  • When you should have this:
    Code:

    alias of210='source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc'
It's "OpenFOAM", not "openFOAM" ;)


Best regards,
Bruno

suryawanshi_nitin May 16, 2012 01:02

Dear Bruno thanks for your reply, as per your suggestions i have changed the folder name from openFOAM to OpenFOAM, also accordingly changed path in .bashrc file as below
alias of201='source /opt/openfoam201/etc/bashrc'
alias of210='source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc'

but when i m getting for compilation of for gettting source code to work follwing msg is shown in terminal

administrator@ubuntu:~/OpenFOAM/OpenFOAM-2.1.0$ ./Allwmake
./Allwmake: 9: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

kindly waiting for reply.. thanks in advance

wyldckat May 16, 2012 16:24

Hi Nitin,
  1. Start a new terminal.
  2. Run:
    Code:

    echo $WM_PROJECT_DIR
    It shouldn't output anything. If it does output anything, then your .bashrc file is contaminated with an OpenFOAM related line that isn't using "alias" at the beginning of that line.
  3. If all OK, run:
    Code:

    of210
  4. Run:
    Code:

    cd $WM_PROJECT_DIR
  5. Where did you land? If you landed in the correct folder, now you can run Allwmake.
Here is some more reading material on this subject: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno

suryawanshi_nitin May 17, 2012 06:42

Hi Bruno,
As you said i started with new terminal and with correct working directory that is the folder in which OpenFoam2.1.0 is extracted and now i m able to compile source code by using ./Allwmake.

Thanks alot Bruno its working now with your valuable suggestions...
Nitin


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