CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   problems with paraview (https://www.cfd-online.com/Forums/openfoam/77165-problems-paraview.html)

inginer June 15, 2010 11:06

problems with paraview
 
hello,

i try to install OF on user (not in root directory), on a linux platform (suse 11.2, 32 bits). when im trying to rebuild paraview i receive this error:

did not find paraview- in these directories:
PWD=/home/usersim/OpenFOAM/ThirdParty-1.6.x
WM_THIRD_PARTY_DIR=

abort build

can anybody explain me why?

thx

Ovidiu,

wyldckat June 15, 2010 17:43

Greetings Ovidiu,

Quote:

Originally Posted by inginer (Post 263109)
i try to install OF on user (not in root directory), on a linux platform (suse 11.2, 32 bits). when im trying to rebuild paraview i receive this error:

did not find paraview- in these directories:
PWD=/home/usersim/OpenFOAM/ThirdParty-1.6.x
WM_THIRD_PARTY_DIR=

abort build

can anybody explain me why?

Did you activate the OpenFOAM environment? Namely, sourced the bashrc file like so:
Code:

. /home/usersim/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
And don't forget the space after the first dot!

Best regards,
Bruno

inginer June 16, 2010 10:29

hello Bruno,

i activate the environmental variables for OF. i rebulid paraview in " /home/usersim/OpenFOAM/Third Party-1.6/; but when i run ./foamInstallationTest i receive the following error


Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux31
OS: Linux version 2.6.31.5-0.1-desktop
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/usersim/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/usersim/OpenFOAM/usersim-1.6 no no
$WM_THIRD_PARTY_DIR /home/usersim/OpenFOAM/ThirdParty-1.6 yes yes
-------------------------------------------------------------------------------


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

$FOAM_APPBIN --------- env variable not set --------- yes
$FOAM_SITE_APPBIN --------- env variable not set --------- no
$FOAM_USER_APPBIN --------- env variable not set --------- no
$WM_DIR --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Checking the OpenFOAM 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_SITE_LIBBIN --------- env variable not set --------- no
$FOAM_USER_LIBBIN --------- env variable not set --------- no
$MPI_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version : 4.4.1
Minimum required: 4.3.1

gcc 4.4.1
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /usr/bin/gzip
tar 1.21 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /icoFoam
current path :
CRITICAL ERROR

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


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

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

done.

Also, when i want to run a tutorial or to start paraview i receive this error

If 'blockMesh' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf blockMesh

or for paraview

If 'paraFoam' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf paraFoam

Can you tell me why?

I want to use the software like an user, not like root, because like root i manage to install the software in the root directory, but is not a very good a idea to work like root on linux since im a beginner(don't want o install linux every 2 days). :(

Best Regards,

Ovidiu

wyldckat June 16, 2010 12:09

Hi Ovidiu,

OK, on the first post you lead me to believe that you were trying to build OpenFOAM 1.6.x... but it seems that you want to build OpenFOAM 1.6.

OpenFOAM 1.6 does not build with gcc 4.4.x (your suse's version of gcc), it only builds with gcc 4.3.x.

So, my best guess is for you to follow Alberto's tutorial on how to install OpenFOAM 1.6.x in openSUSE 11.2: http://albertopassalacqua.com/?p=532

Best regards,
Bruno

inginer June 16, 2010 13:24

Hello Bruno,

i follow Alberto's tutorial for building my OF, but i didn't download the OF-1.6.x clone from his site. I download the software from openfoam site, OF-1.6 and Third part.

following his instructions, I manage to install it on root. then,i erase the folder and i install it on "/home/usersim/OpenFOAM" and it's working perfectly, when im login like root; but when im login like user, is not running the OF; i don't want to be root every time when im running this software; i want to be user(in my case "usersim").

1. my question is, why is not working when im "usersim" and is working ok when im root?
2. i have to download Alberto's clone of OF-1.6.x, to properly running the software like user?


my linux platform is SUSE 11.2 32 bits.

Best Regards,
Ovidiu

wyldckat June 19, 2010 06:35

Greetings Ovidiu,

Firstly, you should be able to build OpenFOAM with your user account! The root account should only be necessary for installing the necessary SUSE packages for building OpenFOAM.

Secondly, by what I can understand in your description, you've moved the OpenFOAM folder, that was built with the root account, into the user account folder; you should also execute the following command under root to give the folder to the user:
Code:

chown -R usersim:usersim /home/usersim/OpenFOAM
Thridly, as I've said before, one can only build OpenFOAM 1.6 using gcc 4.3.x and OpenFOAM 1.6.x can be built with either gcc 4.3.x or 4.4.x.
Therefore, you have two possibilities:
  1. You can build/use OpenFOAM 1.6, using the precompiled gcc 4.3.3 that comes with OpenFOAM's binaries and follow the instructions available on http://www.openfoam.com/docs/README.php
  2. You can follow Alberto's instructions to install OpenFOAM 1.6.x, if you want to use SUSE's gcc 4.4.1 compiler.
Ah, by the way, since you are using the 32 bit version of SUSE, don't forget to edit the file OpenFOAM-1.6.x/etc/bashrc and change the variable WM_ARCH_OPTION from 64 to 32.

Best regards,
Bruno


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