CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] paraFoam not found (https://www.cfd-online.com/Forums/paraview/79504-parafoam-not-found.html)

maysmech August 25, 2010 14:34

paraFoam not found
 
Dear Foamers,
i have a problem when compiling Paraview 3.8.0 and typing ./Allclean

Code:

./Allclean > make.log 2>&1
leads to:
HTML Code:

++ rm -rf 'platforms/build-*'
++ cd openmpi-1.4.1
++ make distclean
make: *** No rule to make target `distclean'.  Stop.
++ cd scotch_5.1/src
++ make clean
(cd libscotch ;      make clean)
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/scotch_5.1/src/libscotch'
rm -f *~ *.o lib*.so common2* parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/scotch_5.1/src/libscotch'
(cd scotch ;        make clean)
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/scotch_5.1/src/scotch'
rm -f *~ *.o acpl amk_ccc amk_fft2 amk_grf amk_hy amk_m2 amk_p2 atst gbase gcv *gmap gmk_hy gmk_m2 gmk_m3 gmk_msh gmk_ub2 gmtst *gord gotst gout *gpart *gscat *gtst mcv mmk_m2 mmk_m3 mord mtst
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/scotch_5.1/src/scotch'
(cd libscotchmetis ; make clean)
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/scotch_5.1/src/libscotchmetis'
rm -f *~ *.o lib*.so
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/scotch_5.1/src/libscotchmetis'
++ cd metis-5.0pre2
++ make realclean
make -C GKlib/trunk realclean
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/metis-5.0pre2/GKlib/trunk'
rm -f  ../builds/Linux-x86_64/b64.o  ../builds/Linux-x86_64/blas.o  ../builds/Linux-x86_64/dfkvkselect.o  ../builds/Linux-x86_64/dlmalloc.o  ../builds/Linux-x86_64/error.o  ../builds/Linux-x86_64/fs.o  ../builds/Linux-x86_64/getopt.o  ../builds/Linux-x86_64/htable.o  ../builds/Linux-x86_64/io.o  ../builds/Linux-x86_64/memory.o  ../builds/Linux-x86_64/omp.o  ../builds/Linux-x86_64/pdb.o  ../builds/Linux-x86_64/pqueue.o  ../builds/Linux-x86_64/seq.o  ../builds/Linux-x86_64/sort.o  ../builds/Linux-x86_64/string.o  ../builds/Linux-x86_64/timers.o  ../builds/Linux-x86_64/tokenizer.o  ../builds/Linux-x86_64/util.o ; rm -f ../builds/Linux-x86_64/libGKlib.a
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/metis-5.0pre2/GKlib/trunk'
make -C libmetis realclean
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/metis-5.0pre2/libmetis'
rm -f  ../build/Linux-x86_64/libmetis/balance.o  ../build/Linux-x86_64/libmetis/bucketsort.o  ../build/Linux-x86_64/libmetis/ccgraph.o  ../build/Linux-x86_64/libmetis/checkgraph.o  ../build/Linux-x86_64/libmetis/cmetis.o  ../build/Linux-x86_64/libmetis/coarsen.o  ../build/Linux-x86_64/libmetis/compress.o  ../build/Linux-x86_64/libmetis/debug.o  ../build/Linux-x86_64/libmetis/estmem.o  ../build/Linux-x86_64/libmetis/fm.o  ../build/Linux-x86_64/libmetis/fortran.o  ../build/Linux-x86_64/libmetis/frename.o  ../build/Linux-x86_64/libmetis/graph.o  ../build/Linux-x86_64/libmetis/initpart.o  ../build/Linux-x86_64/libmetis/kfmetis.o  ../build/Linux-x86_64/libmetis/kmetis.o  ../build/Linux-x86_64/libmetis/kvmetis.o  ../build/Linux-x86_64/libmetis/kwayfm.o  ../build/Linux-x86_64/libmetis/kwayrefine.o  ../build/Linux-x86_64/libmetis/kwayvolfm.o  ../build/Linux-x86_64/libmetis/kwayvolrefine.o  ../build/Linux-x86_64/libmetis/match.o  ../build/Linux-x86_64/libmetis/mbalance2.o  ../build/Linux-x86_64/libmetis/mbalance.o  ../build/Linux-x86_64/libmetis/mcoarsen.o  ../build/Linux-x86_64/libmetis/memory.o  ../build/Linux-x86_64/libmetis/mesh.o  ../build/Linux-x86_64/libmetis/meshpart.o  ../build/Linux-x86_64/libmetis/mfm2.o  ../build/Linux-x86_64/libmetis/mfm.o  ../build/Linux-x86_64/libmetis/mincover.o  ../build/Linux-x86_64/libmetis/minitpart2.o  ../build/Linux-x86_64/libmetis/minitpart.o  ../build/Linux-x86_64/libmetis/mkmetis.o  ../build/Linux-x86_64/libmetis/mkwayfmh.o  ../build/Linux-x86_64/libmetis/mkwayrefine.o  ../build/Linux-x86_64/libmetis/mmatch.o  ../build/Linux-x86_64/libmetis/mmd.o  ../build/Linux-x86_64/libmetis/mpmetis.o  ../build/Linux-x86_64/libmetis/mrefine2.o  ../build/Linux-x86_64/libmetis/mrefine.o  ../build/Linux-x86_64/libmetis/mrkmetis.o  ../build/Linux-x86_64/libmetis/mutil.o  ../build/Linux-x86_64/libmetis/myqsort.o  ../build/Linux-x86_64/libmetis/ometis.o  ../build/Linux-x86_64/libmetis/parmetis.o  ../build/Linux-x86_64/libmetis/pmetis.o  ../build/Linux-x86_64/libmetis/pqueue.o  ../build/Linux-x86_64/libmetis/refine.o  ../build/Linux-x86_64/libmetis/rkmetis.o  ../build/Linux-x86_64/libmetis/separator.o  ../build/Linux-x86_64/libmetis/sfm.o  ../build/Linux-x86_64/libmetis/srefine.o  ../build/Linux-x86_64/libmetis/stat.o  ../build/Linux-x86_64/libmetis/streamio.o  ../build/Linux-x86_64/libmetis/subdomains.o  ../build/Linux-x86_64/libmetis/timing.o  ../build/Linux-x86_64/libmetis/util.o ; rm -f ../build/Linux-x86_64/libmetis.a
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/metis-5.0pre2/libmetis'
make -C programs realclean
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/metis-5.0pre2/programs'
rm -f  ../build/Linux-x86_64/programs/cepic.o  ../build/Linux-x86_64/programs/cepic-rcb.o  ../build/Linux-x86_64/programs/cmdline_cmetis.o  ../build/Linux-x86_64/programs/cmdline_kfmetis.o  ../build/Linux-x86_64/programs/cmdline_pmetis.o  ../build/Linux-x86_64/programs/cmetis.o  ../build/Linux-x86_64/programs/graphchk.o  ../build/Linux-x86_64/programs/io.o  ../build/Linux-x86_64/programs/kfmetis.o  ../build/Linux-x86_64/programs/kmetis.o  ../build/Linux-x86_64/programs/mesh2dual.o  ../build/Linux-x86_64/programs/mesh2nodal.o  ../build/Linux-x86_64/programs/metis.o  ../build/Linux-x86_64/programs/mmetis.o  ../build/Linux-x86_64/programs/oemetis.o  ../build/Linux-x86_64/programs/onmetis.o  ../build/Linux-x86_64/programs/partdmesh.o  ../build/Linux-x86_64/programs/partnmesh.o  ../build/Linux-x86_64/programs/pmetis.o  ../build/Linux-x86_64/programs/smbfactor.o ../build/Linux-x86_64/metis5.0pre2 ../build/Linux-x86_64/pmetis5.0pre2 ../build/Linux-x86_64/kmetis5.0pre2 ../build/Linux-x86_64/oemetis5.0pre2 ../build/Linux-x86_64/onmetis5.0pre2 ../build/Linux-x86_64/mesh2dual5.0pre2 ../build/Linux-x86_64/mesh2nodal5.0pre2 ../build/Linux-x86_64/partdmesh5.0pre2 ../build/Linux-x86_64/partnmesh5.0pre2 ../build/Linux-x86_64/graphchk5.0pre2 ../build/Linux-x86_64/kfmetis5.0pre2 ../build/Linux-x86_64/cmetis5.0pre2
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/metis-5.0pre2/programs'
make -C test realclean
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/metis-5.0pre2/test'
rm -f  ../build/Linux-x86_64/test/mtest.o ../build/Linux-x86_64/mtest5.0pre2
rm -fr ../build/Linux-x86_64
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/metis-5.0pre2/test'
++ cd ParMetis-3.1
++ make clean
(cd METISLib ; make realclean )
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/ParMetis-3.1/METISLib'
rm -f *.o ; rm -f ../libmetis.a
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/ParMetis-3.1/METISLib'
(cd ParMETISLib ; make realclean )
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/ParMetis-3.1/ParMETISLib'
rm -f *.o ; rm -f ../libparmetis.a
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/ParMetis-3.1/ParMETISLib'
(cd Programs ; make realclean )
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/ParMetis-3.1/Programs'
rm -f *.o ;\
    rm -f ../Graphs/ptest
rm -f ../Graphs/mtest
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/ParMetis-3.1/Programs'
++ cd ParMGridGen-1.0
++ make realclean
(cd MGridGen ; make realclean )
make[1]: Entering directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/ParMGridGen-1.0/MGridGen'
(cd IMlib ; gmake realclean )
/bin/sh: gmake: not found
make[1]: *** [realclean] Error 127
make[1]: Leaving directory `/home/maysam/OpenFOAM/ThirdParty-1.7.0/ParMGridGen-1.0/MGridGen'
make: *** [realclean] Error 2

by typing paraFoam in case folder this error is displayed:
Code:

/home/maysam/OpenFOAM/OpenFOAM-1.7.0/bin/paraFoam: 135: paraview: not found
What should i do?
thanks

wyldckat August 25, 2010 16:23

Hi Maysam,

I think you got the scripts confused :(

The Allclean script is for cleaning/removing the files used for building the libraries.

The makeParaView script is for building ParaView!

... Wait, now I understand why you got stuck:
Quote:

Originally Posted by http://www.openfoam.com/download/source.php#x4-21000
To install Paraview, execute the following:
  • cd $WM_THIRD_PARTY_DIR
  • ./Allclean
  • ./makeParaView

You didn't read everything ;) You skipped the last line ;)

Best regards,
Bruno

maysmech August 25, 2010 16:34

Thanks dear Brunu,
when i type ./Allclean the errors (2 and 127) i told are displayed.
i wrote ./makeParaView too but in case folder typing paraFoam leads to "not found" error:confused:

wyldckat August 25, 2010 17:31

Hi Maysam,

Don't worry about the errors in Allclean.

But if makeParaView failed to build, then please run:
Code:

./makeParaView > makePV.log 2>&1
And post the compressed makePV.log, similarly to what you did for Allwmake in the other post.

Best regards,
Bruno

maysmech August 25, 2010 18:03

No error occurred.:D
paraFoam is working now.
Thanks

Argen December 2, 2010 14:00

I met the same problem. But I still could not figure out how maysmech solve it. Could you please let me know?

wyldckat December 4, 2010 09:35

Greetings Argen,

Which exactly was the problem you got? Maysam had two separate issues...

Best regards,
Bruno

maysmech December 4, 2010 09:59

Quote:

Originally Posted by Argen (Post 285772)
I met the same problem. But I still could not figure out how maysmech solve it. Could you please let me know?

i am not sure but i think i used sudo apt-get install paraview command and let ubuntu to download and install it iself.

krl29 October 22, 2011 04:30

hi all,"

i have exactly the same problem as maysmech: error 2, error 127 when makeParaView, and 135: paraview: not found.

am i right in understanding that your suggestion is to replace the line ./makeParaView with:
./makeParaView > makePV.log 2>&1?

and run everything else as before? (sorry im brand new into OpenFOAM)

....it didnt work for me unfortunately :(

Thank you in advance!

wyldckat October 22, 2011 05:27

Greetings Karl and welcome to the forum!

Ah, the idea is to pack the "makePV.log" file:
Code:

tar -czf makePV.log.tar.gz makePV.log
and then attach the packaged file in your next post.

But this is now an old thread. What version of OpenFOAM and ParaView are you trying to build?

Also, since I don't know which version exactly you are trying to build, check this blog post of mine: Related issues to ParaView with OpenFOAM - Fixes and solutions - it has several solutions for building and working with ParaView.

Best regards,
Bruno

krl29 October 22, 2011 10:59

iv got openfoam 1.7.0 and paraview 3.8.0.

sorry i still dont fully understand your instructions :(...what does the "makePV.log" file do? what do you mean by"pack" the file, and "attach the packaged file in your next post"? (what's a post? the line i type in the command window?)

just to be crystal clear, the website instructed:

"...
to install Paraview, execute the following:
  • cd $WM_THIRD_PARTY_DIR
  • ./Allclean
  • ./makeParaView
The PV3blockMeshReader and the PV3FoamReader ParaView plugins are compiled as usual for OpenFOAM utilities:
  • cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
  • ./Allwclean
  • ./Allwmake
..."
what changes should i make?

again thx a lot for your time and patience!

wyldckat October 22, 2011 11:46

Hi Karl,

Quote:

Originally Posted by krl29 (Post 329012)
sorry i still dont fully understand your instructions :(...what does the "makePV.log" file do?

"makePV.log" will have all of the output that makeParaView would otherwise show on screen.
Meaning of "Log": «any of various records, made in rough or finished form, concerning a trip made by a ship or aircraft and dealing with particulars of navigation, weather, engine performance, discipline, and other pertinent details; logbook.» - Source: http://dictionary.reference.com/browse/log

Therefore, the naming of the "makePV.log" file stands for "log of the output messages made by makeParaView" ;)

Quote:

Originally Posted by krl29 (Post 329012)
what do you mean by"pack" the file, and

By "pack" I mean:
  • Compress the file;
  • Create a compressed file package.
  • «a group of things wrapped or tied together for easy handling or carrying; a bundle, especially one to be carried on the back of an animal or a person: a mule pack; a hiker's pack.» - Source: http://dictionary.reference.com/browse/pack
The log files are usually larger than 100kB, therefore compression must be used to package the file and make it small enough to be attached on a post here in this forum thread ;) See the next link for more on these terms.

Quote:

Originally Posted by krl29 (Post 329012)
"attach the packaged file in your next post"? (what's a post? the line i type in the command window?)


Quote:

Originally Posted by krl29 (Post 329012)
just to be crystal clear, the website instructed:

I'm well aware of the official instructions ;), but those instructions are the bare minimum for building things in the Ubuntu and openSUSE versions available at the time of the written instructions. The more recent versions of Ubuntu and openSUSE have a Qt library version that is far more advanced then what ParaView 3.8.0 and 3.10.1 can handle. That is why I wrote those instructions for using a specific version of Qt!

Best regards,
Bruno

krl29 October 22, 2011 12:22

1 Attachment(s)
hi ,

ha, i see :)...pls see attachments for all my log files

thx Bruno, u r a legend! ^^

wyldckat October 22, 2011 12:41

Hi Karl,

Mmm... your system is missing cmake (you need to install it) and something else... but I can't figure out what that something else is :(

Which Linux distribution are you using? Ubuntu, openSUSE, Fedora, RHEL or some other distribution?
And which architecture do you have installed? Run the following command to find out:
Code:

uname -m
As for the error in the file "make.log", don't worry about it, it's just a glitch in the scripts.

Best regards,
Bruno

krl29 October 22, 2011 12:48

arr, this is getting awfully complex for me (i literally installed Ubuntu a few days ago for a project which requires openfoam 1.7) :(...can you give me more tips as to how to install cmake?

im using Ubuntu and architecture = i686

wyldckat October 22, 2011 13:24

Hi Karl,

Mmm... I suppose that you are using Ubuntu 11.10? Can you please confirm which version of Ubuntu you have?

For now, you should install the necessary packages like this:
Code:

sudo apt-get install build-essential flex cmake zlib1g-dev gnuplot libreadline-dev libxt-dev
More packages are probably going to be necessary, depending on the Ubuntu version you have installed.

Best regards,
Bruno

krl29 October 22, 2011 13:31

im actually using Ubuntu 11.04

wyldckat October 22, 2011 14:13

Hi Karl,

Mmm... any chance you can use OpenFOAM 1.7.1 instead of 1.7.0? Because 1.7.0 will not compile properly with the default gcc 4.5.2 that comes with Ubuntu 11.04 :(

If you can install 1.7.1, it just be easy enough to build everything after you installed those packages I've written in the previous post.

If you must really install 1.7.0, then you'll need a few more packages:
Code:

sudo apt-get install gcc-4.4 g++-4.4
Then run:
Code:

foam
echo "export WM_CC='gcc-4.4'" >> etc/prefs.sh
echo "export WM_CXX='g++-4.4'" >> etc/prefs.sh

These two lines will override the default compiler version and use the installed 4.4.x.
Additionally you'll need to make a little fix:
Code:

sed -i -e 's=cpp $(GFLAGS)=cpp -traditional-cpp $(GFLAGS)=' wmake/rules/linuxGcc/general
Then you can proceed as anticipated.

Best regards and good luck!
Bruno

krl29 October 22, 2011 15:03

unfortunately, i might have to stick to 1.7.0 :(
in summary, after having built the sources, i did the following as u suggested:

sudo apt-get install build-essential flex cmake zlib1g-dev gnuplot libreadline-dev libxt-dev

sudo apt-get install gcc-4.4 g++-4.4
foam
echo "export WM_CC='gcc-4.4'" >> etc/prefs.sh
echo "export WM_CXX='g++-4.4'" >> etc/prefs.sh
sed -i -e 's=cpp $(GFLAGS)=cpp -traditional-cpp $(GFLAGS)=' wmake/rules/linuxGcc/general

Then:
  • cd $WM_THIRD_PARTY_DIR
  • ./Allclean
  • ./makeParaView
  • cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
  • ./Allwclean
  • ./Allwmake
Unfortunately, still got the same error messages, including:

created temporary 'cavity.OpenFOAM'
/home/karl/OpenFOAM/OpenFOAM-1.7.0/bin/paraFoam: 135: paraview: not found


thanks so much for your help so far, im really grateful!

Best

Karl

krl29 October 22, 2011 15:08

1 Attachment(s)
and here are the log files
best
Karl


All times are GMT -4. The time now is 11:32.