OSX installs, more attempts

On my first attempt compiling Radiance on OSX I received the following error.

Where do you want the library files [/usr/local/lib/ray]?
ls: lib: No such file or directory
d1: Subscript out of range.

Based on suggestions from list subscribers I attempted installs on 2 other OSX machines. Both failed with similar errors. See this link for full text of install, with errors:
http://jefferson.village.virginia.edu/~cj8n/radiance/cubeinstall.txt

The first machine: imac G4 800 mghz, 512 mb ram, 60Gb drive, OSX 10.2.6
The second machine mac Cube, G4 500mghz, 512 mb ram, 30Gb drive, OSX 10.2.6

The basic install sequence:
FINK not installed.
Installed developer tools from Apple.
Ran software update (nothing updated).
Installed x11 from Apple.
Downloaded radiance-HEAD.tgz and rad3R5supp.tar.gz.
In terminal (tcsh)
cd Desktop
tar xzf radiance-HEAD.tgz
tar xzf rad3R5supp.tar.gz
both files unpacked into a single ray directory
cd ray
su
./makeall install

What is your preferred editor [vi]? enter (really its BBedit)
Where do you want the executables [/usr/local/bin]? enter
Please select your system type from the following list:

         1) Sun Solaris
         2) HP workstation
         3) Silicon Graphics
         4) AIX (RS/6000)
         5) BSDI BSD/386
         6) Linux
         7) MacOS X
         8) FreeBSD
         9) Other

Choice? 7 enter

Where do you want the library files [/usr/local/lib/ray]? enter
(directory not found but I opened a second shell and created it)
Install library files now [n]? enter
Current rmake command is:
#!/bin/sh
exec make "SPECIAL=ogl" \
         "OPT=-O2 -DSPEED=200" \
         "MACH=-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" \
         ARCH=PowerPC "COMPAT=bmalloc.o" \
         INSTDIR=/usr/local/bin \
         LIBDIR=/usr/local/lib/ray \
         CC=cc CONFIGURE_ARCH=powerpc "$@" -f Rmakefile
Do you want to change it? n

the shell spews text for several minutes, and I'm seeing lots of error messages

make: Target `install' not remade because of errors.
/Users/myusrname/Desktop/ray/src
There were some errors.

That's nice.

./makeall clean (this cleans up stuff left by the install?)

cd /usr/local/

rm -r bin
rm -r radbin

hum... doesn't look like FINK was the problem.

See this link for full text of install, with errors:
http://jefferson.village.virginia.edu/~cj8n/radiance/cubeinstall.txt

Take care,

Chris Jessee
jessee@virginia.edu

Hi Chris,

I am not a Mac guy nor do I know that much about OSX other than it is a *nix variant/flavor. But one question that occurs to me in looking at your install log is what userid are you installing as and does this user have permission to create directories in /usr/local/lib and install files in /usr/local/bin. Typically root has write permissions for these directories not other users. Another thought is to wonder whether the correct path information is configured for the userid doing the install, for example it looks like some X11 header files are not being found correctly. Or is the X11 stuff installed in a non typical location or name. I am not sure what shell you are using, but you could try 'printenv' to see what the shell variables such as PATH are set to. This could also be helpful information in diagnosing the problem further.

Best Regards,

-Jack de Valpine

Chris Jessee wrote:

···

On my first attempt compiling Radiance on OSX I received the following error.

Where do you want the library files [/usr/local/lib/ray]?
ls: lib: No such file or directory
d1: Subscript out of range.

Based on suggestions from list subscribers I attempted installs on 2 other OSX machines. Both failed with similar errors. See this link for full text of install, with errors:
http://jefferson.village.virginia.edu/~cj8n/radiance/cubeinstall.txt

The first machine: imac G4 800 mghz, 512 mb ram, 60Gb drive, OSX 10.2.6
The second machine mac Cube, G4 500mghz, 512 mb ram, 30Gb drive, OSX 10.2.6

The basic install sequence:
FINK not installed.
Installed developer tools from Apple.
Ran software update (nothing updated).
Installed x11 from Apple.
Downloaded radiance-HEAD.tgz and rad3R5supp.tar.gz.
In terminal (tcsh)
cd Desktop
tar xzf radiance-HEAD.tgz
tar xzf rad3R5supp.tar.gz
both files unpacked into a single ray directory
cd ray
su
./makeall install

What is your preferred editor [vi]? enter (really its BBedit)
Where do you want the executables [/usr/local/bin]? enter
Please select your system type from the following list:

        1) Sun Solaris
        2) HP workstation
        3) Silicon Graphics
        4) AIX (RS/6000)
        5) BSDI BSD/386
        6) Linux
        7) MacOS X
        8) FreeBSD
        9) Other

Choice? 7 enter

Where do you want the library files [/usr/local/lib/ray]? enter
(directory not found but I opened a second shell and created it)
Install library files now [n]? enter
Current rmake command is:
#!/bin/sh
exec make "SPECIAL=ogl" \
        "OPT=-O2 -DSPEED=200" \
        "MACH=-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" \
        ARCH=PowerPC "COMPAT=bmalloc.o" \
        INSTDIR=/usr/local/bin \
        LIBDIR=/usr/local/lib/ray \
        CC=cc CONFIGURE_ARCH=powerpc "$@" -f Rmakefile
Do you want to change it? n

the shell spews text for several minutes, and I'm seeing lots of error messages

make: Target `install' not remade because of errors.
/Users/myusrname/Desktop/ray/src
There were some errors.

That's nice.

./makeall clean (this cleans up stuff left by the install?)

cd /usr/local/

rm -r bin
rm -r radbin

hum... doesn't look like FINK was the problem.

See this link for full text of install, with errors:
http://jefferson.village.virginia.edu/~cj8n/radiance/cubeinstall.txt

Take care,

Chris Jessee
jessee@virginia.edu

_______________________________________________
Radiance-dev mailing list
Radiance-dev@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Chris Jessee wrote:

make: Target `install' not remade because of errors.
/Users/myusrname/Desktop/ray/src
There were some errors.

That's nice.

Do you have permissions? Try sudo makeall install, and when asked feed it the administrative password.

···

----

      Rob Guglielmetti

e. rpg@rumblestrip.org
w. www.rumblestrip.org

It turns out that I needed to install the following additional x11 package from Apple: X11SDKForMacOSX.pkg

Once installed radiance-HEAD.tgz installs without a problem.

Thanks to everyone for their helpful tips and suggestions.

Take care,

Chris Jessee
jessee@virginia.edu

···

On Friday, July 18, 2003, at 11:09 AM, Jack de Valpine wrote:

Hi Chris,

I am not a Mac guy nor do I know that much about OSX other than it is a *nix variant/flavor. But one question that occurs to me in looking at your install log is what userid are you installing as and does this user have permission to create directories in /usr/local/lib and install files in /usr/local/bin. Typically root has write permissions for these directories not other users. Another thought is to wonder whether the correct path information is configured for the userid doing the install, for example it looks like some X11 header files are not being found correctly. Or is the X11 stuff installed in a non typical location or name. I am not sure what shell you are using, but you could try 'printenv' to see what the shell variables such as PATH are set to. This could also be helpful information in diagnosing the problem further.

Best Regards,

-Jack de Valpine

Chris Jessee wrote:

On my first attempt compiling Radiance on OSX I received the following error.

Where do you want the library files [/usr/local/lib/ray]?
ls: lib: No such file or directory
d1: Subscript out of range.

Based on suggestions from list subscribers I attempted installs on 2 other OSX machines. Both failed with similar errors. See this link for full text of install, with errors:
http://jefferson.village.virginia.edu/~cj8n/radiance/cubeinstall.txt

The first machine: imac G4 800 mghz, 512 mb ram, 60Gb drive, OSX 10.2.6
The second machine mac Cube, G4 500mghz, 512 mb ram, 30Gb drive, OSX 10.2.6

The basic install sequence:
FINK not installed.
Installed developer tools from Apple.
Ran software update (nothing updated).
Installed x11 from Apple.
Downloaded radiance-HEAD.tgz and rad3R5supp.tar.gz.
In terminal (tcsh)
cd Desktop
tar xzf radiance-HEAD.tgz
tar xzf rad3R5supp.tar.gz
both files unpacked into a single ray directory
cd ray
su
./makeall install

What is your preferred editor [vi]? enter (really its BBedit)
Where do you want the executables [/usr/local/bin]? enter
Please select your system type from the following list:

        1) Sun Solaris
        2) HP workstation
        3) Silicon Graphics
        4) AIX (RS/6000)
        5) BSDI BSD/386
        6) Linux
        7) MacOS X
        8) FreeBSD
        9) Other

Choice? 7 enter

Where do you want the library files [/usr/local/lib/ray]? enter
(directory not found but I opened a second shell and created it)
Install library files now [n]? enter
Current rmake command is:
#!/bin/sh
exec make "SPECIAL=ogl" \
        "OPT=-O2 -DSPEED=200" \
        "MACH=-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" \
        ARCH=PowerPC "COMPAT=bmalloc.o" \
        INSTDIR=/usr/local/bin \
        LIBDIR=/usr/local/lib/ray \
        CC=cc CONFIGURE_ARCH=powerpc "$@" -f Rmakefile
Do you want to change it? n

the shell spews text for several minutes, and I'm seeing lots of error messages

make: Target `install' not remade because of errors.
/Users/myusrname/Desktop/ray/src
There were some errors.

That's nice.

./makeall clean (this cleans up stuff left by the install?)

cd /usr/local/

rm -r bin
rm -r radbin

hum... doesn't look like FINK was the problem.

See this link for full text of install, with errors:
http://jefferson.village.virginia.edu/~cj8n/radiance/cubeinstall.txt

Take care,

Chris Jessee
jessee@virginia.edu

_______________________________________________
Radiance-dev mailing list
Radiance-dev@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-dev

_______________________________________________
Radiance-dev mailing list
Radiance-dev@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Most of your problems stem from the build of the OpenGL utilities in src/common failing, which then causes the rest of the build to fail because the main library doesn't get installed in src/lib/librt.a.

Apparently, I assumed in makeall that the X11 headers were installed, which they are not on the default system. Even folks who download the X11 server from Apple do not get these headers by default I believe, so I should not count on their presence in makeall. Unfortunately, without them you end up with a very hobbled version of Radiance, so there's no really good solution other than installing from the OS X binaries from the website, or preinstalling the X11 headers, which are freely downloadable from a number of places. Including them with Radiance would be a breach of good programming practice, however.

-Greg