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)

wyldckat May 5, 2012 10:32

Hi sukye,

I ended up having to install CentOS 5.8 in a virtual machine and advise the following hacks:
  • Like you wrote, add the line in bold to the "bin/paraFoam" script:
    Code:

        -builtin)
            extension=foam
            requirePV=0

            shift
            ;;

  • Edit the file "~/.bashrc" and remove or comment the line that has the alias for paraview.
    • If you want to, you can replace that "alias paraview" line with this one:
      Code:

      alias paraFoam='paraFoam -builtin'
      And run this command on the terminal:
      Code:

      source ~/.bashrc
  • Then run the following commands on the terminal:
    Code:

    OF21
    foam3rdParty
    cd platforms/linux64Gcc
    ln -s $HOME/centFOAM/paraview-3.10.1 paraview-3.12.0
    OF21

    This way you get a direct symbolic link to the ParaView version that was installed.
You should now be ready to use paraFoam at your hearts desire :)

edit: this post assumed that the reader knew that the following command was executed:
Code:

python centFOAM.py --paraview
which was executed back in post #19.

Best regards,
Bruno

sukye May 7, 2012 12:30

Yes, it works! Thank you so much Bruno for your time!

kobe May 13, 2012 08:32

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

Hi wyldckat,
Thanks a lot for your comments. I ran the command as your advice, and solved the problem which states by susij in #1. But i still wander why "add the following line to the file "~/.bashrc"............." can solve the problem. Could you give some explanation about it ? Thanks!

wyldckat May 13, 2012 09:37

Greetings kobe,

Quote:

Originally Posted by kobe (Post 360790)
Hi wyldckat,
Thanks a lot for your comments. I ran the command as your advice, and solved the problem which states by susij in #1. But i still wander why "add the following line to the file "~/.bashrc"............." can solve the problem. Could you give some explanation about it ? Thanks!

:confused: Because some strange error makes the file "/opt/openfoam210/etc/config/paraview.sh" not work as intended, which is where that environment variable "PV_PLUGIN_PATH" is originally exported.

But this problem doesn't happen with me, so I can't diagnose the real problem without more information. All I could do was to provide a solution for the symptom.

Best regards,
Bruno

kobe May 13, 2012 22:08

Quote:

Originally Posted by wyldckat (Post 360799)
Greetings kobe,


:confused: Because some strange error makes the file "/opt/openfoam210/etc/config/paraview.sh" not work as intended, which is where that environment variable "PV_PLUGIN_PATH" is originally exported.

But this problem doesn't happen with me, so I can't diagnose the real problem without more information. All I could do was to provide a solution for the symptom.

Best regards,
Bruno

It is so kind of you Bruno. Thank you very much!

RodrigoSA January 4, 2014 17:54

Good advice
 
Thanks a lot for you help. I followed your instructions and paraFoam in working ok.

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


Seif Kefi February 13, 2014 06:47

Same error message
 
Hi everyone,

I have ubuntu 13.10. I decided to downgrade my OpenFoam version to 2.1.1 and removed the old version. After installing OpenFoam and ThirdParty (Source Pack Installation), when I run paraFoam, I get the following message.

FATAL ERROR: ParaView reader module libraries do not exist

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

I followed the instruction on post #8

seif@seif-ThinkStation-E31:~$ echo $PV_PLUGIN_PATH
/home/seif/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/paraview-3.12

seif@seif-ThinkStation-E31:~$ ls -l OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/paraview-3.12
ls: cannot access OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/paraview-3.12: No such file or directory

Does anyone have an idea of how to solve this?

Best,
Seif

wyldckat February 15, 2014 11:11

Greetings Seif,

That means that ParaView has not been built yet. You can follow the instructions from step number #9 from this page: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.10

Best regards,
Bruno

Seif Kefi February 16, 2014 03:15

Hi Bruno,

Thanks for your help! That solved the problem.
Have a great weekend!

Best,
Seif

sam.ho March 4, 2014 04:03

FATAL ERROR: ParaView reader module libraries do not exis
 
Quote:

Originally Posted by wyldckat (Post 342728)
Hi fusij,
  1. 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

Hi Bruno,
I am trying to install paraview-4.1 but faced an error as follows ...
FATAL ERROR: ParaView reader module libraries do not exist

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

I tried with your post post as i was facing the same problem.
But the output obtained was

sml5kor@BMH301562:~$ ls -l /home/sml5kor/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/paraview-4.1
ls: cannot access /home/sml5kor/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/paraview-4.1: No such file or directory

What i can do to rid off this problem ?
Can you help me ?

wyldckat March 4, 2014 05:15

Hi Sam,

What happens if you run these commands?
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
wmSET $FOAM_SETTINGS
./Allwclean
./Allwmake

Best regards,
Bruno

sam.ho March 4, 2014 05:26

Snapshot
 
1 Attachment(s)
Hi,

Please find the error in the snapshot .
Once paraview 4.1.0 is installed i found some lines at the end of it . Those are ....

-- Installing: /home/sml5kor/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/bin/paraview
Copying missing files to install folder
cp: cannot stat `/home/sml5kor/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ParaViewUse.cmake': No such file or directory
---
Installation complete for paraview-4.1.0
Set environment variables:

export ParaView_DIR=/home/sml5kor/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
---

Done

wyldckat March 4, 2014 05:34

Quote:

Originally Posted by sam.ho (Post 477904)
Please find the error in the snapshot .
Once paraview 4.1.0 is installed i found some lines at the end of it . Those are ....

It looks like you're following the instructions that were meant for OpenFOAM 2.1.1, but with OpenFOAM 2.3.0. Unfortunately, they are not compatible.

But there are already instructions available for OpenFOAM 2.3.0: http://openfoamwiki.net/index.php/In...M-2.3.0/Ubuntu

sam.ho March 4, 2014 05:44

Quote:

Originally Posted by wyldckat (Post 477909)
It looks like you're following the instructions that were meant for OpenFOAM 2.1.1, but with OpenFOAM 2.3.0. Unfortunately, they are not compatible.

But there are already instructions available for OpenFOAM 2.3.0: http://openfoamwiki.net/index.php/In...M-2.3.0/Ubuntu

Hi my organization net work is blocking me to get Cmake of higher verstion than CMake 2.8.7...

Any other ways to get it done ?

Error message is here

[sml5kor@BMH301562:~/OpenFOAM/ThirdParty-2.3.0$ wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getCmake"
--2014-03-04 16:11:03-- https://raw.github.com/wyldckat/scri...aster/getCmake
Resolving raw.github.com (raw.github.com)... failed: Name or service not known.
wget: unable to resolve host address `raw.github.com']

wyldckat March 4, 2014 05:47

Instead of running:
Code:

cd $WM_THIRD_PARTY_DIR
wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getCmake"
sed -i -e 's=version}\.3=version}.12.1=' getCmake
chmod +x getCmake
./getCmake
./makeCmake
wmSET $FOAM_SETTINGS

Use these commands instead:
Code:

cd $WM_THIRD_PARTY_DIR
mkdir download
wget http://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz -O download/cmake-2.8.12.1.tar.gz
tar -xzf download/cmake-2.8.12.1.tar.gz
./makeCmake
wmSET $FOAM_SETTINGS


sam.ho March 4, 2014 05:51

Quote:

[/CODE]Use these commands instead:
Code:

mkdir download
wget http://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz -O download/cmake-2.8.12.1.tar.gz
tar -xzf download/cmake-2.8.12.1.tar.gz
./makeCmake
wmSET $FOAM_SETTINGS


This I have to execute at

sml5kor@BMH301562:~/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV3Readers$

or Need to do it at Home ?

sam.ho March 4, 2014 05:53

I got the same error i.e

[sml5kor@BMH301562:~/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV3Readers$ wget http://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz -O download/cmake-2.8.12.1.tar.gz
--2014-03-04 16:21:51-- http://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
Resolving cmake.org (cmake.org)... failed: Name or service not known.
wget: unable to resolve host address `cmake.org'
]

wyldckat March 4, 2014 06:06

Check post #35 once again, regarding the folder where to execute. I had forgotten to add an important command.

If the command wget does not work, then download the file manually, using your internet browser. The download link is this one: http://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz

sam.ho March 4, 2014 07:21

Reinstallation
 
I am reinstalling OpenFOAM 2.3.0
When i run
Code:

apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev \
> libncurses5-dev libxt-dev libopenmpi-dev openmpi-bin libboost-system-dev libboost-thread-dev libgmp-dev libmpfr-dev

I got the following error ...
How to fix it..

Code:

root@BMH301562:~# apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev \
> libncurses5-dev libxt-dev libopenmpi-dev openmpi-bin libboost-system-dev libboost-thread-dev libgmp-dev libmpfr-dev
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package libboost-system-dev
E: Unable to locate package libboost-thread-dev
E: Unable to locate package libgmp-dev
E: Unable to locate package libmpfr-dev


wyldckat March 4, 2014 08:16

Quote:

Originally Posted by sam.ho (Post 477951)
I got the following error ...
How to fix it..

  1. I need to know which specific Ubuntu version are you using.
  2. Do you have the correct repositories turned on? It's explained here: http://openfoamwiki.net/index.php/FA..._on_Ubuntu_.3F


All times are GMT -4. The time now is 03:42.