CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] paraView reader module build problem

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2012, 11:32
Default
  #21
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________

Last edited by wyldckat; May 15, 2012 at 17:08. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   May 7, 2012, 13:30
Default
  #22
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
sukye is on a distinguished road
Yes, it works! Thank you so much Bruno for your time!
sukye is offline   Reply With Quote

Old   May 13, 2012, 09:32
Default
  #23
New Member
 
H.S.Tan
Join Date: Feb 2012
Posts: 5
Rep Power: 14
kobe is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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!
kobe is offline   Reply With Quote

Old   May 13, 2012, 10:37
Default
  #24
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings kobe,

Quote:
Originally Posted by kobe View Post
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!
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
__________________
wyldckat is offline   Reply With Quote

Old   May 13, 2012, 23:08
Default
  #25
New Member
 
H.S.Tan
Join Date: Feb 2012
Posts: 5
Rep Power: 14
kobe is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings kobe,


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!
kobe is offline   Reply With Quote

Old   January 4, 2014, 18:54
Smile Good advice
  #26
New Member
 
Rodrigo Salgado Ayala
Join Date: Jan 2014
Posts: 1
Rep Power: 0
RodrigoSA is on a distinguished road
Thanks a lot for you help. I followed your instructions and paraFoam in working ok.

Quote:
Originally Posted by wyldckat View Post
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
RodrigoSA is offline   Reply With Quote

Old   February 13, 2014, 07:47
Default Same error message
  #27
New Member
 
Seif Kefi
Join Date: Dec 2013
Posts: 6
Rep Power: 12
Seif Kefi is on a distinguished road
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
Seif Kefi is offline   Reply With Quote

Old   February 15, 2014, 12:11
Default
  #28
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   February 16, 2014, 04:15
Default
  #29
New Member
 
Seif Kefi
Join Date: Dec 2013
Posts: 6
Rep Power: 12
Seif Kefi is on a distinguished road
Hi Bruno,

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

Best,
Seif
Seif Kefi is offline   Reply With Quote

Old   March 4, 2014, 05:03
Default FATAL ERROR: ParaView reader module libraries do not exis
  #30
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 13
sam.ho is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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 ?
sam.ho is offline   Reply With Quote

Old   March 4, 2014, 06:15
Default
  #31
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sam,

What happens if you run these commands?
Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers 
wmSET $FOAM_SETTINGS
./Allwclean 
./Allwmake
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 06:26
Post Snapshot
  #32
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 13
sam.ho is on a distinguished road
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
Attached Images
File Type: jpg Screenshot from 2014-03-04 15:54:18.jpg (91.8 KB, 18 views)
sam.ho is offline   Reply With Quote

Old   March 4, 2014, 06:34
Default
  #33
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by sam.ho View Post
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
__________________
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 06:44
Default
  #34
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 13
sam.ho is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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']
sam.ho is offline   Reply With Quote

Old   March 4, 2014, 06:47
Default
  #35
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________

Last edited by wyldckat; March 4, 2014 at 07:02. Reason: Forgot to add "cd $WM_THIRD_PARTY_DIR" to the replacement instructions
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 06:51
Default
  #36
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 13
sam.ho is on a distinguished road
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 ?

Last edited by wyldckat; March 4, 2014 at 07:03. Reason: added missing ]
sam.ho is offline   Reply With Quote

Old   March 4, 2014, 06:53
Default
  #37
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 13
sam.ho is on a distinguished road
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'
]
sam.ho is offline   Reply With Quote

Old   March 4, 2014, 07:06
Default
  #38
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 08:21
Thumbs down Reinstallation
  #39
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 13
sam.ho is on a distinguished road
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
sam.ho is offline   Reply With Quote

Old   March 4, 2014, 09:16
Default
  #40
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by sam.ho View Post
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
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] paraView running Problem [not found] X.Thomas OpenFOAM Installation 6 January 14, 2018 13:15
Parafoam - FATAL ERROR: ParaView reader module libraries do not exist Amit_Pawarpawar OpenFOAM Installation 1 August 25, 2014 11:31
FATAL ERROR: ParaView reader module libraries do not exist adarsh tiwari OpenFOAM Installation 6 April 5, 2014 12:47
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 13:25.