You are here: Home / Users / Daniel Fuller / radinstall-macos.html

radinstall-macos.html

Download the distributions to the Desktop using your favorite browser

http://radsite.lbl.gov/radiance/dist/rad5R3all.tar.gz

http://radsite.lbl.gov/radiance/dist/rad5R3_macosx_bin.tar.gz

Drop into the Terminal

Open /Applications/Utilities/Terminal

Unpack distributions

$ cd Desktop
$ tar -xvzf rad4R1all.tar.gz

$ tar -xvzf rad4R1_macosx_bin.tar.gz

Install

$ sudo -s
<enter your password - hopefully you have an admin account>
- position an "chown" the binaries 
# mv rad4R1_macosx /usr/local/bin/ray
# chown -R root:wheel /usr/local/bin/ray
- the library files (dont forget the dot (.) before the /makeall !)
# cd ray
# ./makeall library

"Where do you want the library files [/usr/local/lib/ray]" <hit return>

Cleanup

cd ~/Desktop

# rm -rf ray rad4R1_macosx

Setup Paths

- drop back out of root - back to your normal login
% ctrl-d
- cd to your home directory
$ cd
- now add these lines to your ${HOME}.profile file for the korn bash and bourne (sh) shells
$ vi .profile <or> pico .profile
export PATH=${PATH}:/usr/local/bin/ray
export RAYPATH=.:/usr/local/lib/ray
- add these lines to your ${HOME}.cshrc file for the csh and tcsh shells
$ vi .cshrc <or> pico .cshrc
setenv PATH ${PATH}:/usr/local/bin/ray
setenv RAYPATH .:/usr/local/lib/ray
You could also add these PATH and RAYPATH lines to the global /etc/profile (.sh and bash) and or /etc/csh.cshrc (csh/tcsh) files.
(For ubuntu the file edit the file /etc/environment
see https://help.ubuntu.com/community/EnvironmentVariables#System-wide_environment_variables)

Verify installation

Now when you open an NEW terminal window (apple-n) typing
$ env
will give you among other things something like
PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin/ray
RAYPATH=.:/usr/local/lib/ray
typing 
$ which rad
will give you
/usr/local/bin/ray/rad

At this point things will be installed.

So now to actually perform the tutorials you can open
/Applications/Utilities/X11
(you might as well add it and the Terminal.app to the dock)

to start rendering in X-windows on your mac.



by DEFuller – last modified Sep 04, 2020 11:32 AM