NFAQ (Not so Frequently Asked Questions) - mrklein/openfoam-os-x GitHub Wiki
There are several ways to install ParaView:
-
Download DMG file from http://paraview.org, open it, drag-n-drop application into your /Applications folder. In general application file is called ParaView-<version>.app.
-
Use Homebrew Cask, i.e.
brew cask install paraview. Automated version of the previous option. -
Use Homebrew and install formula from
sciencetap, i.e. justbrew install paraview. Since usually formulas today are served in bottles, nothing is actually built on user’s computer. But for some reason do not linkparaviewapplication into/usr/local/bin.
Current version of paraview configuration script assumes, that you have it installed in /Applications folder under name paraview.app and complains about absent software package if name differs.
So if you have installed Paraview application as Paraview-<version>.app, you can
-
Rename
Paraview-<version>.appintoParaview.app. -
If you would like to keep version part of the file name, you can use modified version of
$WM_PROJECT_DIR/etc/config.sh/mac/paraviewprovided below:
if [ -d /Applications/Paraview*.app ];
then
[ "$FOAM_VERBOSE" -a "$PS1" ] && echo Using /Applications/Paraview*.app
paraview () {
/Applications/Paraview*/Contents/MacOS/paraview "$@"
}
export -f paraview
else
echo
echo "Please download binary Paraview release from"
echo "http://paraview.org and install it in /Applications"
echo "folder."
echo
fi
# vi: set ft=sh et sw=4 ts=4:paraview command is exported as a shell function:
$ type paraview
paraview is a function
paraview ()
{
/Applications/Paraview*/Contents/MacOS/paraview "$@"
}To avoid constant repetition of paraFoam -builtin also function pf is exported:
$ type pf
pf is a function
pf ()
{
paraFoam -builtin > /dev/null 2>&1 &
}