CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] paraView reader module build problem (https://www.cfd-online.com/Forums/openfoam-installation/96858-paraview-reader-module-build-problem.html)

sam.ho March 5, 2014 00:15

2 Attachment(s)
I am using UBUNTU 12.04 .
Yesterday I proceeded with re-installation neglecting the previous problem and got some errors which have reflected in make.log .
Here is the snapshot after executing
sudo nano /etc/apt/sources.list

wyldckat March 5, 2014 16:27

Quote:

Originally Posted by sam.ho (Post 478158)
I am using UBUNTU 12.04 .
Yesterday I proceeded with re-installation neglecting the previous problem and got some errors which have reflected in make.log .
Here is the snapshot after executing
sudo nano /etc/apt/sources.list

OK, most of the OpenFOAM source code did build, but the parts depending on Boost and CGAL did not.

Looking at the image you've shown, the problem is that you only have the "universe" repository turned on. You also need the "main" repository. Create a backup of that file and then use the following lines:
Code:

deb http://archive.ubuntu.com/ubuntu/ precise main universe
deb-src http://archive.ubuntu.com/ubuntu/ precise main universe

Then run (as root):
Code:

apt-get update
You should now be able to install the missing packages.

sam.ho March 6, 2014 01:40

Thanks a lot :)

I managed to install it properly :)

nourtam May 19, 2014 05:08

Problem after the first line
 
Hello,
Just want to know what should I do if after the first :
Code:

]echo $PV_PLUGIN_PATH
I have nothing.????

Best Regards

Nour:eek::eek:

sam.ho May 19, 2014 05:20

Hi Nour Tamer,

Can you explain your problem in detail ?

nourtam May 19, 2014 06:12

Hi, Sam

In fact I had some problems with Paraview library, when I try to see a result or any mesh i had :

nour@cmefe-p:~/Desktop/exof/plateHole> paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

But finally I got a solution, first I must do a:
[CODE]
touch filename.foam

then executing PVIew314

and open filename.foam
and finally it works.

Thank you very much for your help

powpawell June 1, 2016 12:56

Hello Bruno & others,

Could you give some advice here, please?

Running
Code:

echo $PV_PLUGIN_PATH
gives the same output, but with version 4.4.0

Running
Code:

  ls -l /opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
gives
Code:

ERROR: ParaView not found in /home/pavel/OpenFOAM/ThirdParty-v3.0+/platforms/linux64Gcc/ParaView-4.4.0
I've copied the folder ParaView.4.0 from ThirdParty-v3.0+
Quote:

/home/pavel/OpenFOAM/ThirdParty-v3.0+/platforms/linux64Gcc/
.
This solved some issues, but not cannot find a file:
Quote:

fatal error: vtkPoints.h: No such file or directory
I have attached the log file if that helps. Thank you very much for your help.

P.S. first installation. Fresh one (well, I deleted another attempt and started from fresh)

Cheers,
Pavel

Quote:

Originally Posted by wyldckat (Post 342728)
Hi fusij,

I wanted to know which exact version of Ubuntu you were using so I could try to replicate the same installation steps and check if things are working as expected. It all went well.
Therefore, a few more possibilities arise:
  1. It's possible that you have more than one OpenFOAM version installed and did not take into account the need for at least commenting the older lines in "~/.bashrc". If this is the case, then comment or remove the old lines that refer to the older versions of OpenFOAM and start a new terminal. Then try again running paraFoam in the case folder you were running before.
    If this works, and if you want more than one version of OpenFOAM, see my blog post: Advanced tips for working with the OpenFOAM shell environment
  2. There could be a glitch related to a file system problem that occurred during installation or afterwards, such as accidental deletion of files. To confirm this, check the following steps:
    1. Run the following command in the terminal:
      Code:

      echo $PV_PLUGIN_PATH
      It should output the following path:
      Code:

      /opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
    2. Also check the contents of the path shown above, even if the command showed you nothing:
      Code:

      ls -l /opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
      It should show you two files starting with "libPV3".
    3. If those two files do exist, then add the following line to the file "~/.bashrc":
      Code:

      export PV_PLUGIN_PATH=/opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
      Start a new terminal and now it should work!
Best regards,
Bruno


powpawell June 8, 2016 02:20

Hi again,

I managed to sort this out. I forgot tot check all the system requirements as presented on the openfoam website.

Cannot remember which one sort this issue out. After I checked this, I installed the third party source code and it did compile well.

ParaFoam is working now.

RANSES July 1, 2017 13:51

Possible solution...
 
I had the same problem when I tried to run paraFoam for postprocessing. I found useful some of the previous suggestions which made paraview actually working (i.e. "touch filename.foam then executing PVIew314"). But most of all, I definitely recommend to Switch to root mode (administrator) with "sudo -s" and then run paraFoam. Through this operation paraview worked perfectly.

wyldckat July 2, 2017 15:10

Quote:

Originally Posted by RANSES (Post 655521)
But most of all, I definitely recommend to Switch to root mode (administrator) with "sudo -s" and then run paraFoam. Through this operation paraview worked perfectly.

Quick warning: That can be risky, since "sudo -s" gives administrative powers and one wrong command could destroy your system installation.

Whenever possible, it's preferable to rely on aliases to activate the OpenFOAM/foam-extend environment on each terminal, so that whenever a new terminal is started, the OpenFOAM environment is not loaded automatically. This is detailed here: https://openfoamwiki.net/index.php/I...nFOAM_versions


@powpawell: My apologies, but I ended up not having time to get back to you on this last year :(

Elham March 7, 2018 02:42

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 478395)
OK, most of the OpenFOAM source code did build, but the parts depending on Boost and CGAL did not.

Looking at the image you've shown, the problem is that you only have the "universe" repository turned on. You also need the "main" repository. Create a backup of that file and then use the following lines:

Code:

deb http://archive.ubuntu.com/ubuntu/ precise main universe
deb-src http://archive.ubuntu.com/ubuntu/ precise main universe

Then run (as root):
Code:

apt-get update
You should now be able to install the missing packages.

Dear Bruno,

I stuck during installation of paraView4 from https://openfoam.org/download/2-3-1-source. When I execute

sudo nano /etc/apt/sources.list
I got

Attachment 61908

I will appreciate to help me find a solution.

Regards,

Elham

wyldckat March 7, 2018 15:22

Quick answer:
Quote:

Originally Posted by Elham (Post 684133)
When I execute

sudo nano /etc/apt/sources.list
I got

Attachment 61908

I will appreciate to help me find a solution.

The contents of that file looks perfectly fine to me.

It's not clear what is the exact problem you are having.

Elham March 7, 2018 23:40

Quote:

Originally Posted by wyldckat (Post 684257)
Quick answer:

The contents of that file looks perfectly fine to me.

It's not clear what is the exact problem you are having.

I had the error that cmake was not installed and I supposed that the reason is that I have main restricted . But after some manipulation I can run paraView with the following command:

paraFoam -builtin

Anyway, it seems that it is working.

Regards,

Elham


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