Setting up Prman for Nuke 6.2 launched from the shell in OSX/Linux

Lots of people are having issues getting Prman working with Nuke 6.2. So this is a basic tutorial on setting up the proper environment variables you need for launching Nuke from the shell under osx & linux.

Bash Shell setup

In a text editor create the file ".bash_profile" in your $HOME directory (/Users/yourUserName under osx or /home/yourUserName under linux)

1. Add the following to your bash_profile:

Osx:
export RMANTREE=/Applications/Pixar/RenderMan.app/Versions/RenderManProServer-15.2
export DYLD_LIBRARY_PATH=$RMANTREE/lib

Linux:
export RMANTREE=/opt/pixar/RenderManProServer-15.2
export LD_LIBRARY_PATH=$RMANTREE/lib

2. Type in your shell "source .bash_profile".

3. Start Nuke from the command line and now the Prman node should work.

Nuke 6.2v1 --nukex

Tcsh Shell setup

Linux and Osx typically use the Bash shell by default but if for some reason your using tcsh, then here is a modified version of the above instructions.

To figure out your current shell type, type:
ps | grep "$$"

You should get an output which looks like this:

19596 ttys000 0:00.25 -tcsh
31425 ttys000 0:00.00 grep 19596

1. In a text editor create the file ".tcshrc" in your $HOME directory (/Users/yourUserName under osx or /home/yourUserName under linux)

2. Add the following to your .tcshrc:

Osx:
setenv RMANTREE "/Applications/Pixar/RenderMan.app/Versions/RenderManProServer-15.2"
setenv DYLD_LIBRARY_PATH "$RMANTREE/lib"

Linux:
setenv RMANTREE "/opt/pixar/RenderManProServer-15.2"
setenv LD_LIBRARY_PATH "$RMANTREE/lib"

3. Type in your shell "source .tcshrc".

4. Start Nuke and now the Prman node should work.