CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Installation of Paraview (https://www.cfd-online.com/Forums/openfoam/74192-installation-paraview.html)

Aloex March 26, 2010 06:43

Installation of Paraview
 
Hi,

I have successfullly installed OF 1.6 on my system (ubuntu 9.10) with the help from this forum. Now I want to install paraview and get some problems.

What I done:
1. sudo apt-get install qt4-qmake
2. sudo apt-get install libqt4-dev
3. the steps from the README-File:
  • cd $WM_THIRD_PARTY_DIR
  • rm -rf paraview-3.6.1/platforms
  • makeParaView
After I tipped "makeParaView" I get the follow mistake:
"makeParaView: command not found"

I don't know what I have to do now. I'm new in Linux and OF.

I hope somebody of you can me help.

Regards Aloex

josp March 26, 2010 09:03

add ./ in front of the script i.e: ./makeParaView

Aloex March 26, 2010 12:03

Thank you very much. Paraview is running now! :)

What's the meaning of this "./"?

kippo March 26, 2010 16:41

http://hvirvel.dk/wp/?p=3

Here are some usefull installation scripts

kippo

wyldckat March 26, 2010 18:18

Quote:

Originally Posted by Aloex (Post 251850)
What's the meaning of this "./"?

The dot states that you're refering to the present/current folder. And in Linux, although when listing the makeParaView file, both represent the same file; but when executing a program, that program has to either belong to one of the folders listed in the PATH environment variable, or be given the correct folder path to that application.

One way to override this behaviour, is to add the dot symbol to that very same PATH... and that is exactly what the OpenFOAM makers have done, and that's why their steps are ambiguous ;) Namely, they refer to either methods, because they both work in their system.

Quote:

Originally Posted by kippo (Post 251895)
http://hvirvel.dk/wp/?p=3

Here are some usefull installation scripts

kippo

Those scripts actually don't build Paraview, they just make use of the prebuilt version that comes with ThirdParty binary packages... at least last time I checked. And rebuilding Paraview are sometimes necessary, due to graphic card drivers and other installed libraries that conflict with the prebuilt version.

olesen March 27, 2010 07:37

Quote:

Originally Posted by wyldckat (Post 251904)
One way to override this behaviour, is to add the dot symbol to that very same PATH... and that is exactly what the OpenFOAM makers have done, and that's why their steps are ambiguous ;) Namely, they refer to either methods, because they both work in their system.

Adding '.' to the PATH may be convenient, but is generally not recommended for a secure system. It's probably just matter of habit though whether to write the shell command with or without a leading './' in documentation (with './' is better - less ambiguous).

kippo March 27, 2010 16:07

Quote:

Originally Posted by wyldckat (Post 251904)
Those scripts actually don't build Paraview, they just make use of the prebuilt version that comes with ThirdParty binary packages... at least last time I checked. And rebuilding Paraview are sometimes necessary, due to graphic card drivers and other installed libraries that conflict with the prebuilt version.

Taht's right, but if using Ubuntu all the small changes needed to get a useful ParaView / paraFoam are included then...

If got all the new things, then just go to the Third-party folder and then run ./makeParaView

(takes a lot of time...)

Aloex March 28, 2010 06:25

Thx for your replies. :)
This forum works really well.

kippo March 28, 2010 08:49

Another additional info: If you run you OS in a different language than english (for me german): You have to add in the file:
$/HOME/OpenFoam/OpenFoam-1.6/bin/paraFoam (be aware, if version is different)

just the additional line in front of all other commands:

export LC_ALL=C

I am a newby, too. It cost a lot of time to get it run...

kippo

ps: I also recommend pyfoam

Gschaider et al. did a very good job


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