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

[foam-extend.org] paraview not runing? (foam extended 3.2 and ubuntu 15.04)

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2016, 11:10
Default paraview not runing? (foam extended 3.2 and ubuntu 15.04)
  #1
Member
 
Milan
Join Date: Dec 2013
Posts: 38
Rep Power: 13
Milan2013 is on a distinguished road
Hi,
I installed fe32 but have a problem with paraFoam / paraview not running.
I had a similar issue on CentOS, I remember there was a way to repair it or to download binaries from another link, etc. I dont wish to experiment now so if someone can give me a hint I will appreciate it:

If I type paraview I get:
The program 'paraview' is currently not installed. You can install it by typing:
sudo apt-get install paraview



If I type: paraFoam
I get:
file does not exist: './system/controlDict'

usage: paraFoam [OPTION]
options:
-case dir specify alternative case directory
-region name specify mesh region name
-touch only create the .OpenFOAM or .foam file
-nativeReader use the paraview native reader for OpenFOAM

* start paraview with the OpenFOAM libraries


In PV4FoamReader I have:
milan@milan-asus:~/foam/foam-extend-3.2/applications/utilities/postProcessing/graphics/PV4FoamReader/PV4FoamReader$ ls
CMakeLists.txt PV4FoamReader.qrc PV4FoamReader_SM.xml PV4FoamReader.xml vtkPV4FoamReader.cxx vtkPV4FoamReader.h
ordinary likes this.
Milan2013 is offline   Reply With Quote

Old   April 16, 2016, 12:34
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Milan,

This feels familiar... please follow the instructions from this post of mine from a few months ago:
Quote:
Originally Posted by wyldckat View Post
Quick answer: If you have the complete log, please compress it and attach it to your next post.
If not, then run these commands with the foam-extend 3.2 shell environment ready to be used:
Code:
foam3rdParty
./AllMake.stage4 > log.make 2>&1

gzip < log.make > log.make.gz
pwd
Then attach the file "log.make.gz" that is in the folder indicated by the last command. This way it's possible to diagnose the problem.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 17, 2016, 14:41
Default
  #3
Member
 
Milan
Join Date: Dec 2013
Posts: 38
Rep Power: 13
Milan2013 is on a distinguished road
Thanks
Here it is
Attached Files
File Type: gz log.make.gz (269 Bytes, 13 views)
Milan2013 is offline   Reply With Quote

Old   April 17, 2016, 15:35
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Please try again with the following commands:
Code:
export QT_SELECT=qt4
export QT_BIN_DIR=$(which qmake)
source $HOME/foam/foam-extend-3.2/etc/bashrc

foam3rdParty
./AllMake.stage4 > log.make 2>&1

gzip < log.make > log.makePV.gz
pwd
Then if all went well, run:
Code:
source $HOME/foam/foam-extend-3.2/etc/bashrc
which paraview
If it gives you the path to the paraview binary within "foam-extend-3.2", then run:
Code:
foam
./Allwmake > log.make 2>&1

gzip < log.make > log.makeFE.gz
If all goes well, it will all be ready. But check "log.make" again just in case.

If it goes wrong somewhat, then please attach the new log files, namely "log.makePV.gz" and "log.makeFE.gz".
wyldckat is offline   Reply With Quote

Old   April 18, 2016, 06:06
Default
  #5
Member
 
Milan
Join Date: Dec 2013
Posts: 38
Rep Power: 13
Milan2013 is on a distinguished road
Thanks, it did not give any answer on the "which paraview" step:

milan@milan-asus:~/foam/foam-extend-3.2/ThirdParty$ which paraview
milan@milan-asus:~/foam/foam-extend-3.2/ThirdParty$


Attached is the log.makePV.gz file. Thanks for helping me
Attached Files
File Type: gz log.makePV.gz (269 Bytes, 9 views)
Milan2013 is offline   Reply With Quote

Old   April 19, 2016, 19:10
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quick question: Did you install the packages that are recommended here: https://openfoamwiki.net/index.php/I...u#Ubuntu_15.10 ?
wyldckat is offline   Reply With Quote

Old   April 28, 2016, 13:13
Default
  #7
Member
 
Milan
Join Date: Dec 2013
Posts: 38
Rep Power: 13
Milan2013 is on a distinguished road
Sorry for a late reply, too much work.
Yes, I installed according to instructions for 14.04, my OS is 15.04 tough.
Did I miss something there?
Milan2013 is offline   Reply With Quote

Old   May 1, 2016, 18:48
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Milan2013 View Post
Sorry for a late reply, too much work.
Yes, I installed according to instructions for 14.04, my OS is 15.04 tough.
Did I miss something there?
Quick answer: Qt4 might not be installed properly. Please install the suggested packages at http://openfoamwiki.net/index.php/In...u#Ubuntu_15.10 - and then follow again the steps I gave in post #4 above.

If it doesn't work once again, then please run the following commands and tell me what they give you:
Code:
export QT_SELECT=qt4
export QT_BIN_DIR=$(which qmake)
echo $QT_BIN_DIR
wyldckat is offline   Reply With Quote

Old   May 2, 2016, 11:19
Default
  #9
Member
 
Milan
Join Date: Dec 2013
Posts: 38
Rep Power: 13
Milan2013 is on a distinguished road
Thanks
I get:

milan@milan-asus:~$ zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
>
zlib1g-dev: command not found

I understand I need a "zlib1g-dev" package?
Milan2013 is offline   Reply With Quote

Old   May 2, 2016, 11:32
Default
  #10
Member
 
Milan
Join Date: Dec 2013
Posts: 38
Rep Power: 13
Milan2013 is on a distinguished road
Quote:
Originally Posted by Milan2013 View Post
Thanks
I get:

milan@milan-asus:~$ zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
>
zlib1g-dev: command not found

I understand I need a "zlib1g-dev" package?

PS.I solved that, let me see how it goes with the rest...
Milan2013 is offline   Reply With Quote

Old   May 2, 2016, 15:05
Default
  #11
Member
 
Milan
Join Date: Dec 2013
Posts: 38
Rep Power: 13
Milan2013 is on a distinguished road
Everything went well, except the paraview compile. Please see the log.makePV.
I also attached the logmakeFE.

In the first one it says:

WARNING: Skipping the installation of ParaView-4.x.x.
WARNING: Please make sure the QT_BIN_DIR environment variable properly
WARNING: initialized in the file prefs.sh or prefs.csh
WARNING: The command $QT_BIN_DIR/qmake needs to be valid


Attached Files
File Type: gz log.makePV.gz (269 Bytes, 2 views)
File Type: gz log.makeFE.gz (4.8 KB, 0 views)
ordinary likes this.
Milan2013 is offline   Reply With Quote

Old   May 3, 2016, 17:35
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quick answer: That problem is the reason why I requested the following details:
Quote:
Originally Posted by wyldckat View Post
If it doesn't work once again, then please run the following commands and tell me what they give you:
Code:
export QT_SELECT=qt4
export QT_BIN_DIR=$(which qmake)
echo $QT_BIN_DIR
wyldckat is offline   Reply With Quote

Old   May 4, 2016, 12:08
Default
  #13
Member
 
Milan
Join Date: Dec 2013
Posts: 38
Rep Power: 13
Milan2013 is on a distinguished road
Sorry I missed that!
The third command gives an output:
milan@milan-asus:~/foam/foam-extend-3.2/etc$ echo $QT_BIN_DIR
/usr/bin/qmake
Milan2013 is offline   Reply With Quote

Old   May 8, 2016, 15:10
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Milan2013 View Post
Sorry I missed that!
The third command gives an output:
milan@milan-asus:~/foam/foam-extend-3.2/etc$ echo $QT_BIN_DIR
/usr/bin/qmake
OK, this is very strange... then please try the following commands:
Code:
source $HOME/foam/foam-extend-3.2/etc/bashrc
export QT_SELECT=qt4
export QT_BIN_DIR=$(which qmake)

foam3rdParty
./AllMake.stage4 > log.make 2>&1

gzip < log.make > log.makePV.gz
pwd
The first 3 lines are switched around. It's possible that "etc/bashrc" is doing something that I'm not seeing right now and that is breaking the build structure.
wyldckat is offline   Reply With Quote

Old   January 18, 2017, 11:29
Default
  #15
New Member
 
Join Date: Oct 2016
Posts: 4
Rep Power: 10
GFarello is on a distinguished road
Hi,

I have ran AllMake in my $FOAM_INST_DIR/foam-extend-3.2/ThirdParty directory in order to install Paraview.
Everything seems fine but if I run the command paraview, (or paraFoam in a case directory), i get the message: command not found.
I think that the environment variables are set in the correct way.

The AllMake output is:

Code:
This system rpm command: rpm 

========================================
Starting ThirdParty Allwmake
========================================


This system rpm command: rpm 

========================================
Starting ThirdParty AllMake: Stage1
========================================

Building cmake 3.2.2
Package name      : cmake-3.2.2
Package URL       : http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
RPM spec file name: cmake-3.2.2.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package cmake-3.2.2
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/cmake-3.2.2-linux64GccDPOpt.x86_64.rpm
Package cmake-3.2.2 is already installed
Done installing package 

========================================
Done ThirdParty AllMake: Stage1
========================================


This system rpm command: rpm 

========================================
Starting ThirdParty AllMake: Stage2
========================================

Building openmpi 1.6.5
Package name      : openmpi-1.6.5
Package URL       : http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.gz
RPM spec file name: openmpi-1.6.5.spec
Additional flags  : --define
Updating the ThirdParty environment variables before building package openmpi-1.6.5
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/openmpi-1.6.5-linux64GccDPOpt.x86_64.rpm
Package openmpi-1.6.5 is already installed
Done installing package 

========================================
Done ThirdParty AllMake: Stage2
========================================


This system rpm command: rpm 

========================================
Starting ThirdParty AllMake: Stage3
========================================

Building metis 5.1.0
Package name      : metis-5.1.0
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/metis-5.1.0.tar.gz
RPM spec file name: metis-5.1.0.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package metis-5.1.0
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/metis-5.1.0-linux64GccDPOpt.x86_64.rpm
Package metis-5.1.0 is already installed
Done installing package 

Building ParMGridGen 1.0
Package name      : ParMGridGen-1.0
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/ParMGridGen-1.0.tar.gz
RPM spec file name: ParMGridGen-1.0.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package ParMGridGen-1.0
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/ParMGridGen-1.0-linux64GccDPOpt.x86_64.rpm
Package ParMGridGen-1.0 is already installed
Done installing package 

Building Libccmio 2.6.1
Package name      : libccmio-2.6.1
Package URL       : http://portal.nersc.gov/project/visit/third_party/libccmio-2.6.1.tar.gz
RPM spec file name: libccmio-2.6.1.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package libccmio-2.6.1
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/libccmio-2.6.1-linux64GccDPOpt.x86_64.rpm
Package libccmio-2.6.1 is already installed
Done installing package 

Building Mesquite 2.1.2
Package name      : mesquite-2.1.2
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/mesquite-2.1.2.tar.gz
RPM spec file name: mesquite-2.1.2.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package mesquite-2.1.2
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/mesquite-2.1.2-linux64GccDPOpt.x86_64.rpm
Package mesquite-2.1.2 is already installed
Done installing package 

Building Scotch 6.0.4
Package name      : scotch-6.0.4
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/scotch_6.0.4.tar.gz
RPM spec file name: scotch-6.0.4.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package scotch-6.0.4
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/scotch-6.0.4-linux64GccDPOpt.x86_64.rpm
Package scotch-6.0.4 is already installed
Done installing package 

Building ParMetis 4.0.3
Package name      : parmetis-4.0.3
Package URL       : http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz
RPM spec file name: parmetis-4.0.3.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package parmetis-4.0.3
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/parmetis-4.0.3-linux64GccDPOpt.x86_64.rpm
Package parmetis-4.0.3 is already installed
Done installing package 

Building PyFoam 0.6.4
Package name      : PyFoam-0.6.4
Package URL       : http://openfoamwiki.net/images/3/3b/PyFoam-0.6.4.tar.gz
RPM spec file name: PyFoam-0.6.4.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package PyFoam-0.6.4
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/noarch/PyFoam-0.6.4-1.noarch.rpm
Package PyFoam-0.6.4 is already installed
Done installing package 

Building hwloc 1.10.1
Package name      : hwloc-1.10.1
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/hwloc-1.10.1.tar.gz
RPM spec file name: hwloc-1.10.1.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package hwloc-1.10.1
RPM file name     : /homel/n77658/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/hwloc-1.10.1-linux64GccDPOpt.x86_64.rpm
Package hwloc-1.10.1 is already installed
Done installing package 

========================================
Done ThirdParty AllMake: Stage3
========================================


This system rpm command: rpm 

========================================
Starting ThirdParty AllMake: Stage4
========================================

Using system installed QT

========================================
Done ThirdParty AllMake: Stage4
========================================

========================================
Starting ThirdParty AllMake: Stage5     
========================================

The source code for swak4Foam is already present under ./rpmBuild/BUILD/swak4Foam-0.3.2
Please remove this directory if you want to refresh your installation of swak4Foam

========================================
Done ThirdParty AllMake: Stage5         
========================================

========================================
Done ThirdParty Allwmake
========================================
Does anyone have an idea of what is wrong with this?

all the best
ordinary likes this.
GFarello is offline   Reply With Quote

Old   March 19, 2017, 06:54
Default
  #16
New Member
 
Frederik
Join Date: Dec 2015
Location: Germany
Posts: 25
Rep Power: 11
a_slow_old_man is on a distinguished road
I have the same problem on Ubuntu 14.04.

When you enter
>> which qmake

and get the output
/usr/bin/qmake

try:
export QT_BIN_DIR=/usr/bin/
instead of:
export QT_BIN_DIR=/usr/bin/qmake


EDIT:
It did create a new error so I guess I was wrong

/opt/foam-extend-3.2/bin/paraFoam: Zeile 125: 8154 Speicherzugriffsfehler (Speicherabzug geschrieben) paraview --data="$caseFile"
a_slow_old_man is offline   Reply With Quote

Old   March 25, 2017, 17:26
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 to all!

@GFarello: Have you managed to solve the problem you had a couple of months ago? If not, do you still need help with it. Because if you do, I will need to know more details about the exact steps that you've taken, because there are no signs of ParaView having been built.


@a_slow_old_man: I've used Google translate and the error message it indicated was:
Code:
Line 125: 8154 Memory access error (memory dumped)
With the foam-extend 3.2 shell environment loaded in, please run the following command:
Code:
which paraview
In addition, try using the following command instead to open the case:
Code:
paraFoam -nativeReader
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 26, 2017, 06:57
Default
  #18
New Member
 
Frederik
Join Date: Dec 2015
Location: Germany
Posts: 25
Rep Power: 11
a_slow_old_man is on a distinguished road
Greeting Bruno,

thank you for taking the time to analyse my problem.

Quote:
Originally Posted by wyldckat View Post
Code:
which paraview
I get the response
Code:
/opt/foam-extend-3.2/ThirdParty/packages/ParaView-4.3.1/platforms/linux64GccDPOpt/bin/paraview
Quote:
Originally Posted by wyldckat View Post
Code:
paraFoam -nativeReader
Here I get the error:
Code:
/opt/foam-extend-3.2/bin/paraFoam: line 125:  4442 Segmentation fault      (core dumped) paraview --data="$caseFile"
After a lot of googling I did find where to find a log (/var/log/apport.log) with more information.

Here is found this entry:


Code:
ERROR: apport (pid 4715) Sun Mar 26 11:48:11 2017: this executable already crashed 2 times, ignoring
So I forced paraview with sudo and it suddenly works. But still only if I force it. Since I use Foam-Extend only rarely I can live with this. But if there is a known easy fix I would be very happy.

Best regards,
Frederik
a_slow_old_man is offline   Reply With Quote

Old   March 26, 2017, 15:30
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Frederik,

Then I have the suspicion that the problem has to do with file/folder permissions. Please run the following commands:
Code:
cd ~/foam
find /opt/foam-extend-3.2/ThirdParty/packages/ParaView-4.3.1/platforms/linux64GccDPOpt/ | xargs ls -l > ParaViewFileList.txt
gzip < ParaViewFileList.txt > ParaViewFileList.txt.gz
Then please attach the file "ParaViewFileList.txt.gz" to your next post.

I ask this because I'm not 100% certain of what is the correct command or command sequence that needs to be done in your installation, because installing in "/opt" usually means that it was built with administrative powers, which is risky to do, since one wrong step could damage the whole system

I do know that chown or chroot will be needed, problem is in which folders...

The other possibility is whether there is any other software that is found in the normal user account, through the paths set in "PATH" and/or "LD_LIBRARY_PATH".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 28, 2017, 07:44
Default
  #20
New Member
 
Frederik
Join Date: Dec 2015
Location: Germany
Posts: 25
Rep Power: 11
a_slow_old_man is on a distinguished road
Hello Bruno,

please do excuse my tardiness. I did not have access to the computer in question for the last two days.

I ran the commands you posted. You can find the "ParaViewFileList.txt.gz" file attached to this post.

Thank you once again for looking into my issue.

Best regards,
Frederik
Attached Files
File Type: gz ParaViewFileList.txt.gz (177.2 KB, 3 views)
a_slow_old_man 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
[Salome] Salome import "Cannot find file "points" in directory..." mismichael OpenFOAM Meshing & Mesh Conversion 6 June 24, 2024 04:17
[foam-extend.org] foam-extend 3.2 Paraview installation problem on Ubuntu 18.04 ordinary OpenFOAM Installation 3 September 1, 2018 23:01
[foam-extend.org] Foam Extend 3.2 in ubuntu 16.04 LTS JMosiezny OpenFOAM Installation 15 December 9, 2017 09:20
[foam-extend.org] core dumped for foam extended 3.2 on Ubuntu 16.04 qjh888 OpenFOAM Installation 9 September 27, 2016 17:39
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57


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