CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   $FOAM_USER_APPBIN & LIBBIN variables not set (http://www.cfd-online.com/Forums/openfoam-installation/72685-foam_user_appbin-libbin-variables-not-set.html)

rassilon February 15, 2010 02:03

$FOAM_USER_APPBIN & LIBBIN variables not set
 
Hi Folks,

Been using OF-1.6 on a Linux Mint 8 (Helena) install for about 3 weeks with no problems.

Have started looking at compiling my own Boundary Conditions, and discovered that the $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN environment variables are not set (or not valid). They appear to need to be set properly to compile new Boundary Conditions.

The results of my installation test give this:

Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/nathan/OpenFOAM/OpenFOAM-1.6 yes yes yes

$FOAM_APPBIN ...1.6/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...penFOAM/site/1.6/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...1.6/applications/bin/linux64GccDPOpt no no
$WM_DIR /home/nathan/OpenFOAM/OpenFOAM-1.6/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.6/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...penFOAM/site/1.6/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...nFOAM/nathan-1.6/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------

How can I initialise these two environment variables to make them valid, and where should they point when they are set up correctly?

Any help greatly appreciated...


R

bastil February 15, 2010 04:38

Quote:

Originally Posted by rassilon (Post 246022)
How can I initialise these two environment variables to make them valid, and where should they point when they are set up correctly?

They should be set properly after sourcing etc/bashrc. Try:

Code:

source /path/to/openfoam/etc/bashrc
echo $FOAM_USER_APPBIN


rassilon February 16, 2010 21:54

Quote:

Originally Posted by bastil (Post 246027)
They should be set properly after sourcing etc/bashrc. Try:

Code:

source /path/to/openfoam/etc/bashrc
echo $FOAM_USER_APPBIN



Hi Bastil,

Thanks for your help. It seems that the problem was that the directory locations that APPBIN and LIBBIN pointed to did not exist. I created them manually, and now they seem to work ok.

Not sure why they were missing though. Possibly a difference between the compiled version and running from binaries.


R


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