CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] paraview not runing? (foam extended 3.2 and ubuntu 15.04) (https://www.cfd-online.com/Forums/openfoam-installation/169717-paraview-not-runing-foam-extended-3-2-ubuntu-15-04-a.html)

Milan2013 April 16, 2016 10:10

paraview not runing? (foam extended 3.2 and ubuntu 15.04)
 
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

wyldckat April 16, 2016 11:34

Hi Milan,

This feels familiar... please follow the instructions from this post of mine from a few months ago:
Quote:

Originally Posted by wyldckat (Post 570198)
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

Milan2013 April 17, 2016 13:41

1 Attachment(s)
Thanks
Here it is

wyldckat April 17, 2016 14:35

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".

Milan2013 April 18, 2016 05:06

1 Attachment(s)
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$

:confused:
Attached is the log.makePV.gz file. Thanks for helping me

wyldckat April 19, 2016 18:10

Quick question: Did you install the packages that are recommended here: https://openfoamwiki.net/index.php/I...u#Ubuntu_15.10 ?

Milan2013 April 28, 2016 12:13

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?

wyldckat May 1, 2016 17:48

Quote:

Originally Posted by Milan2013 (Post 597176)
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


Milan2013 May 2, 2016 10:19

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 May 2, 2016 10:32

Quote:

Originally Posted by Milan2013 (Post 597702)
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 May 2, 2016 14:05

2 Attachment(s)
Everything went well, except the paraview compile. Please see the log.makePV. :confused:
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


:(

wyldckat May 3, 2016 16:35

Quick answer: That problem is the reason why I requested the following details:
Quote:

Originally Posted by wyldckat (Post 597572)
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


;)

Milan2013 May 4, 2016 11:08

Sorry I missed that! :o
The third command gives an output:
milan@milan-asus:~/foam/foam-extend-3.2/etc$ echo $QT_BIN_DIR
/usr/bin/qmake

wyldckat May 8, 2016 14:10

Quote:

Originally Posted by Milan2013 (Post 598656)
Sorry I missed that! :o
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.

GFarello January 18, 2017 10:29

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

a_slow_old_man March 19, 2017 05:54

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"

wyldckat March 25, 2017 16:26

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

a_slow_old_man March 26, 2017 05:57

Greeting Bruno,

thank you for taking the time to analyse my problem.

Quote:

Originally Posted by wyldckat (Post 642284)
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 (Post 642284)
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

wyldckat March 26, 2017 14:30

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

a_slow_old_man March 28, 2017 06:44

1 Attachment(s)
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


All times are GMT -4. The time now is 05:01.