CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] ParaView command not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2006, 23:14
Default ParaView command not found
  #1
New Member
 
Wei Zhang
Join Date: Mar 2009
Location: Shanghai, China
Posts: 6
Rep Power: 17
joey is on a distinguished road
Hi, everyone
I am newbie here, and I just have installed OpenFOAM on my computer.
when I run the cavity tutorial:
paraFoam $FOAM_RUN/tutorials/icoFoam cavity

I got the error message as below:
/usr/local/lib.../bin/paraFoam line 57: praview: command not found

Can anyone help me ?
Thanks a lot!
Joey
joey is offline   Reply With Quote

Old   September 14, 2006, 05:07
Default You need to install the paravi
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
You need to install the paraview pack (downloadable from OpenFOAM as well). See the installation instructions.

(I hope that command not found was 'paraview' and not 'praview')
mattijs is offline   Reply With Quote

Old   September 15, 2006, 01:04
Default I think the "command not found
  #3
New Member
 
Wei Zhang
Join Date: Mar 2009
Location: Shanghai, China
Posts: 6
Rep Power: 17
joey is on a distinguished road
I think the "command not found" comes from the shell and I add a line to $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/paraview/bashrc as below:
export PATH=$HOME/OpenFOAM/linux/paraview-2.4.3/lib/paraview-2.4/bin:$PATH.
The problem solved. Thanks a lot.
joey is offline   Reply With Quote

Old   August 28, 2010, 22:37
Default
  #4
New Member
 
Eric
Join Date: Aug 2010
Posts: 14
Rep Power: 16
tunkers is on a distinguished road
I also had the same problem with openfoam 1.7 when installing on Debian Lenny

paraview would run fine when launched manually, but not from paraFoam.
created temporary 'cavity.OpenFOAM'
/home/cfduser/OpenFOAM/OpenFOAM-1.7/bin/paraFoam: 132: paraview: not found

to fix this, edit the following file

/home/cfduser/OpenFOAM/OpenFOAM-1.7.0/etc/bashrc

add this line near somewhere near the top

export PATH=$PATH:/home/cfduser/OpenFOAM/ParaView-3.8.0-Linux-i686/bin

then

$cd
$. .bashrc

Now you will be able to type paraview from anywhere and it will run. Also paraFoam will also be able to launch paraview.
tunkers is offline   Reply With Quote

Old   November 6, 2020, 10:39
Default
  #5
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
I am not sure, if the following lines are the same or not, but this worked for me:
Code:
export PATH=$HOME/OpenFOAM/xyz-v1906/run/ParaView-5.8.0-MPI-Linux-Python2.7-64bit/bin:$PATH
as been mentioned above these lines should be added in the bashrc and after adding these lines just sourced it using
Code:
source ~/.bashrc
chandra shekhar pant is offline   Reply With Quote

Old   January 18, 2021, 03:00
Default
  #6
New Member
 
ranjith
Join Date: Mar 2018
Posts: 11
Rep Power: 8
ranjith prakash is on a distinguished road
Quote:
Originally Posted by joey View Post
I think the "command not found" comes from the shell and I add a line to $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/paraview/bashrc as below:
export PATH=$HOME/OpenFOAM/linux/paraview-2.4.3/lib/paraview-2.4/bin:$PATH.
The problem solved. Thanks a lot.
Hello,
I am also facing the same issue. So can I add the same line in the barsch file like you mentioned. Is it different for different paraview versions or same?
TIA
ranjith prakash is offline   Reply With Quote

Old   January 18, 2021, 03:10
Default
  #7
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
Hi Ranjith,

Yes according to the version of the Paraview this line should change:
HTML Code:
Paraview-5.8.0-MPI-Linux .....
Also please note the location/folder of the newly downloaded Paraview. Effectively the line that I have added in the bashrc file is typically giving the path of the Paraview. If you still face issue, please let me know. Hope this helps.
chandra shekhar pant is offline   Reply With Quote

Old   January 18, 2021, 03:15
Default
  #8
New Member
 
ranjith
Join Date: Mar 2018
Posts: 11
Rep Power: 8
ranjith prakash is on a distinguished road
Quote:
Originally Posted by chandra shekhar pant View Post
Hi Ranjith,

Yes according to the version of the Paraview this line should change:
HTML Code:
Paraview-5.8.0-MPI-Linux .....
Also please note the location/folder of the newly downloaded Paraview. Effectively the line that I have added in the bashrc file is typically giving the path of the Paraview. If you still face issue, please let me know. Hope this helps.
Hi,.
Thanks for replying. I have one doubt. This line should be written inside the bashrc file right.t
That too where? At the bottom or top? Also where should I type the $ cd and $...bashrc.
TIA
ranjith prakash is offline   Reply With Quote

Old   January 18, 2021, 03:28
Default
  #9
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
I guess you are working in the Linux platform ? If yes then just open the terminal either by launching through command
Code:
ctl + alt + t
or by launching through your dashboard. Then in the terminal type exactly these words or copy paste these in your terminal:

Code:
gedit ~/.bashrc
After a file opens in-front of you, at the bottom paste those lines from the previous post, through which you can link your Paraview software.
chandra shekhar pant is offline   Reply With Quote

Old   January 18, 2021, 05:11
Default
  #10
New Member
 
ranjith
Join Date: Mar 2018
Posts: 11
Rep Power: 8
ranjith prakash is on a distinguished road
Ok thanks. Will try it
ranjith prakash is offline   Reply With Quote

Old   January 18, 2021, 05:19
Default
  #11
New Member
 
ranjith
Join Date: Mar 2018
Posts: 11
Rep Power: 8
ranjith prakash is on a distinguished road
Quote:
Originally Posted by chandra shekhar pant View Post
I guess you are working in the Linux platform ? If yes then just open the terminal either by launching through command
Code:
ctl + alt + t
or by launching through your dashboard. Then in the terminal type exactly these words or copy paste these in your terminal:

Code:
gedit ~/.bashrc
After a file opens in-front of you, at the bottom paste those lines from the previous post, through which you can link your Paraview software.
Does the sourcing command should be given in the same file or after saving it and exit from the file, I need to give it on command line.?
ranjith prakash is offline   Reply With Quote

Old   January 18, 2021, 05:26
Default
  #12
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17
chandra shekhar pant is on a distinguished road
Are you able to see the bashrc file now? If yes then copy paste these lines
Code:
export PATH=$Home/...
at the end of the bashrc file and do the following:

Quote:
Originally Posted by chandra shekhar pant View Post
I am not sure, if the following lines are the same or not, but this worked for me:
Code:
export PATH=$HOME/OpenFOAM/xyz-v1906/run/ParaView-5.8.0-MPI-Linux-Python2.7-64bit/bin:$PATH
as been mentioned above these lines should be added in the bashrc and after adding these lines just sourced it using
Code:
source ~/.bashrc

Please remember to change the path of the folder name in which you have the Paraview accordingly.
chandra shekhar pant is offline   Reply With Quote

Old   January 18, 2021, 06:38
Default
  #13
New Member
 
ranjith
Join Date: Mar 2018
Posts: 11
Rep Power: 8
ranjith prakash is on a distinguished road
Quote:
Originally Posted by chandra shekhar pant View Post
Are you able to see the bashrc file now? If yes then copy paste these lines
Code:
export PATH=$Home/...
at the end of the bashrc file and do the following:




Please remember to change the path of the folder name in which you have the Paraview accordingly.
Hi,
I tried above method. I gave the name of installed paraview folder instead of your paraview name in the above code. And I saved it and gave the source command. Now a big message is there whenever I open ubuntu lts command window. I think that bin at the end was not necessary. When I give gedit it's showing /bin is not included in the path environment variable
ranjith prakash 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
[Other] Compiling hacFoam (Ubuntu 10.04)(OF2.0.0)(LAMMPS13Jul2010)) Henrik_E OpenFOAM Installation 3 September 29, 2016 17:16
[OpenFOAM] run paraFoam command results in error: line 267: paraview: command not found. Asik ParaView 1 December 25, 2013 12:45
injection problem Mark New FLUENT 0 August 4, 2013 02:30
missing vtf3.h BPatch.h papi.h linch OpenFOAM Installation 41 July 24, 2012 15:45
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01


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