Hi Chris,
I'm sorry you're having troubles with makeall on OS X, especially using my exact machine and configuration! I'm really puzzled in fact how you're getting this error. I looked at the makeall and installib scripts, and I think they're OK, it's just the download part that's screwing up.
From: Chris Jessee <cj8n@virginia.edu>
Date: Wed Jul 16, 2003 1:49:05 PM US/Pacific
Hi,
I had the following experience installing Radiance on OSX (10.2.6) and thought I would post it here in hopes of helping others and perhaps finding a better way of getting it installed.
The machine: dual 1.4 ghz G4, 1.5 Gb ram, 2-180 Gb drives.
Software: Apple Developer Tools and x11r6.
Initially I downloaded "radiance-rad3R5.tgz" and "rad3R5supp.tar.gz" from http://www.radiance-online.org/.
After unpacking the files I ran the install command (./makeall install) and got the following error after the first few prompts:
Where do you want the library files [/usr/local/lib/ray]?
ls: lib: No such file or directory
d1: Subscript out of range.
The problem is not with the installer, it's with the download procedure. If you download in your browser, it automatically calls StuffIt Expander, which creates TWO ray directories, one for the source and the other for the auxiliary files. The first download gets named ray, and the second directory gets named ray.1. In fact, the two distributions are meant to be merged, which is what would happen normally if you called tar xzf on the distributions from the same directory. As a result, your lib directory doesn't end up where it's supposed to be on the same level as installib.
I don't have a fix for this, other than to instruct users of Mac OS X to install the distributions manually using tar instead of StuffIt Expander.
The directory exists and not really understanding the nuances of the install script I then downloaded "rad3R5.tar.gz" and "radbin_osx.tar.gz" from http://radsite.lbl.gov/radiance/HOME.html. I copied the radbin_osx directory to /usr/local/. Changed my .tcshrc to include the following paths, the last one pointing to my current radiance project.
setenv PATH /usr/local/radbin_osx:$PATH
setenv RAYPATH /usr/local/lib/ray:$PATH
PATH shouldn't be part of this variable setting, unless you really want to search all your executable directories for Radiance auxiliary files.
setenv PATH /Users/username/Documents/Projects/CP_test:$PATH
I won't even ask what this is about, but it doesn't sound like something to recommend to others.
I then moved the ray/lib to /usr/local/lib/ray per a note I found in the email archive. This doesn't work but I'll come back to that. The same email from the archive also noted to copy all the .cal files from the ray/source directory using this command:
cp -p src/*.cal /usr/local/lib/ray
This didn't work, reporting "no match found" so I went through the each of the sub-directories of ray/src and used this command to get them to their proper home:
mv *.cal /usr/local/lib/ray
On first test picture.cal wasn't found so I downloaded "rad3R5supp.tar.gz" from
http://www.radiance-online.org/ unpacked it and moved the contents of its ray/lib to /usr/local/lib/ray. Somehow picture.cal wasn't being seen in /usr/local/lib/ray/lib/ after the initial copy.
Again, it may be because you weren't actually copying from the correct distribution download. Maybe you forgot to remove ray and ray.1 before downloading from radsite, so you got a ray.2 directory as well.
Now radiance works!
Ultimately I hope some knowledgeable person updates the install script to make it functional but in the interim perhaps these crude workarounds will help.
some of the renders
http://jefferson.village.virginia.edu/london/model/gallery1/index.html
These are very cool -- how did you build your model?
More notes from your second e-mail...
From: Chris Jessee <cj8n@virginia.edu>
Date: Thu Jul 17, 2003 3:57:04 AM US/Pacific
Thank you for the quick reply. I had previously tried the radiance-HEAD.tgz with the same resulting error. I believe the problem lies in the makeall script, something incorrect with a path designation or a loop that is incorrect. If someone will attempt to correct the installer I would be happy to test it and report the results. There are several people here who want to run Radiance on OSX and a working installer would really help. Have you considered putting Radiance in the Fink Project? (http://fink.sourceforge.net/) They have a great installer integrated with CVS making for easy installs and updates.
Fink is nice in that it has the downloads all done for you automagically via wget commands or something like it. However, I wasted an entire day, perhaps two, trying to get Fink to install an X11 server on my Mac, with no luck. It went through the most tedious, extensive install and compile procedure imaginable, and I never did figure out what it was doing or why it didn't work. What I ended up with was hundreds of megabytes of mystery programs, with no clue where to start or what it was all about. I guess it gave me a taste for what a lot of novice Radiance users go through... In the end, I ended up keeping the distribution around for a while, thinking I'd look into it, but I never did. It's gone, and I haven't missed it.
-Greg