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

[OpenFOAM.org] Trouble when use ParaView binary on CentOS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2015, 20:06
Default Trouble when use ParaView binary on CentOS
  #1
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
Hi,

I am going to use ParaView binary on my linux cluster instead of compiling it as I did before. What I did is download ParaView-4.2 Binary Installer and put it in /home/myname/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/

Then, I can run it by ./paraview in its bin directory.

In order to make it run everywhere, I modify $PATH by:

export PATH=$PATH:/home/myname/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/ParaView-4.2/bin

Then, I echo $PATH and the new path is there.

However, when I launch a new terminal and input paraview it still shows me

bash: paraview: command not found

Anyone have idea on this? Is there any information on how to run ParaView binary with OpenFOAM-2.2.2? Thanks.
y_jiang is offline   Reply With Quote

Old   January 17, 2015, 12:17
Default
  #2
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 y_jiang,

Try running the following command:
Code:
export PATH=/home/$USER/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/ParaView-4.2/bin:$PATH
Do not add this in your ".bashrc" until you fully diagnose what's going on, because since you have not indicated which specific version of CentOS you're using, you might be using a very old one that might be incompatible with the libraries that ParaView 4.2.0 has got.

The objective is to first determine what's wrong with the other command you used. The command I wrote above is using "$USER", which should be the variable for the currently working user name. You can double-check by running:
Code:
echo $USER
Anyway, the objective is to now run:
Code:
which paraview
If it still doesn't give you the correct path to the paraview binary, then something is definitely wrong. In this case, try running:
Code:
ls -l /home/$USER/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/ParaView-4.2/
If it does not give the correct path to the files, then check the name of the folder and the permissions of said folder, by running:
Code:
ls -l /home/$USER/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/
On the other hand, if the export command worked as planned, then run:
Code:
echo $PATH
in another terminal window, and check if there aren't any stray characters on the path, which could make the PATH not be properly readable.

Either way, unless you show us what you're seeing, it becomes really difficult to try and deduce what's wrong.

Best regards,
Bruno
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] Trouble Installing Paraview Plugins m_ridzon OpenFOAM Installation 13 July 20, 2016 09:42
Error in solution using "Grid Interface" agustinvo FLUENT 4 January 20, 2015 13:03
Paraview version update errors Dan Pearce OpenFOAM Installation 5 January 8, 2014 06:47
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 04:14
Sliding mesh error Karl Kevala FLUENT 4 February 21, 2001 16:52


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