Bash error message

Hello,

After weeks of trying to understand this parallel universe which is
Cygwin and Radiance, I finally reached the stage where I could attempt
to follow the instructions in the introduction to 'Rendering with
Radiance', 2003.

And my first attempt produced the following error message:

$ rvu -vp 2.25 .375 1 -vd -.25 .125 -.125 -av .5 .5 .5 test.oct

bash: rvu: command not found

I am googled-out.

I have tried tirelessly to understand the workings of this new language
and, in Newbie-speak, perhaps this is a PATH issue?

I compiled Radiance (several times - still got errors) from the latest
radiance tar files, and I am using CygwinX.

A bit of background - Before this first attempt I was familiarizing
myself with CygwinX/Radiance. The first issue for me was that many of
the exe files were not in the bin directory, but nicely organized under
src (source?) and several sub-directories eg util. I compared the
directories to the ones that were compiled with Francesco Anselmo's
binaries for Cygwin (yes, I did that too) and the directories are very
different. I am now confused as how to set up the PATH.

Second issue was that the rvu.exe file was not installed at all. I did
copy the rvu.exe (into bin) file from Anselmo's Cygwin installation, as
well as the bash_profile file where he sets up the different PATHS (into
Cygwin directory). I did of course change the file to my setup.

Many thanks for any help offered - (please)

Angela

Hello,

After weeks of trying to understand this parallel universe which is Cygwin and Radiance, I finally reached the stage where I could attempt to follow the instructions in the introduction to ‘Rendering with Radiance’, 2003.

Agreed. You'd be much better of using Linux or OS X if any of it is available to you.
Have you tried the LEARNiX bootable CD before?

And my first attempt produced the following error message:

$ rvu -vp 2.25 .375 1 -vd -.25 .125 -.125 -av .5 .5 .5 test.oct

bash: rvu: command not found

I am googled-out.

I have tried tirelessly to understand the workings of this new language and, in Newbie-speak, perhaps this is a PATH issue?

Possible.

Simple test: run the command with the full path instead of only the command name

$ /cygdrive/ray/bin/rvu -vp 2.25 .375 1 -vd ....

If that works it is a PATH issue and you have to add the directory where all your compiled
Radiance programs reside to your $PATH environment variable. In short this is a list of
directories in which the bash will search for a command.

You can read something about configuring your environment here:

http://cs.nyu.edu/~yap/prog/cygwin/FAQs.html
Please note that I have no experience with Cygwin myself and that I can only give you
generic Unix advice. This should still work in general terms because Cygwin is just
creating a Unix like environment under Windows.

Hth,
Thomas

···

On 3 Apr 2008, at 19:03, Angela Giladi wrote:

bash: rvu: command not found

This is indeed a path error. Essentially the shell (bash) was unable to
locate the program (rvu) in any of the folders listed in the path.

Check that the path you believe does indeed point to the appropriate
directories using
echo $PATH

Tips:
1) Be aware of any additional 'spaces' in the folder names. They will
need to be escaped e.g. "Program Folder" is written as "Program\
Folder".
2) Be aware that UNIX (in this case Cygwin and bash are case sensitive)
while Microsoft windows is not.

Personally, I have found that Cygwin is not for the 'newbie' more those
that know UNIX and need to bring some of its power to the Microsoft
windows environment. 'Newbie's' to UNIX are more often better to jump
directly into UNIX/Linux/OSX (command line).

An alternative to installing Linux on your PC/or buying a MAC, is to use
one of the live cd projects available, where everything is pre installed
such as can be found at Axel Jacobs website -
http://luminance.londonmet.ac.uk/ In particular Curtin Radiance images
or Axels' Learnix image.

Regards

Terry Mc Minn
Faculty of Built Environment, Art and Design
Curtin University of Technology
GPO Box U 1987 Perth 6845 Western Australia
Email: [email protected]
CRICOS Provider Code: 00301J

Hello Terrance,

Thank you for your feedback.

I do have a PATH problem and am now trying to correct the bash profile
file.

I did consider the LEARNiX CD but was put off from what is written on
their site..

If your Windows data partition (you do have a separate one, don't you?)
is formatted as FAT or FAT32, you can mount it and save your files. The
NTFS file system (Window 2000 and XP) is not supported yet.

I also managed to read some chapters of the Curtin PDF you gave a link
to. I couldn't find mention of saving files.

I had to smile to myself while reading the PDF - I am always puzzled by
the defining of electrical lighting as 'artificial'. Why is that?

Well, here is a professional lighting designer's request to please
consider another term for lighting that is not Sunlight/Daylight!

Thanks again, regards

Angela

Hello Thomas

Thank you for your pointing me in the right direction...especially the
/cydrive/ . The PATH had to include /cygdrive/c/cygwinX... I did not
imagine that one could get so happy at seeing a red ball!

Seriously though, I have followed tutorials/FAQs, including the one you
linked for me, which are great in showing one the basics. CygwinX is
really ok now; it just throws in the /cygdrive/ to add to the
I'm-a-confused-Windows-person state of mind. Now, I need to work out all
the various locations of the command files as they are not all in
rad/bin

I did consider the LEARNiX CD, especially after reading Axel Jacobs'
tutorials. The issue for me was how to save files on my PC and server.
This is from their site ...

If your Windows data partition (you do have a separate one, don't you?)
is formatted as FAT or FAT32, you can mount it and save your files. The
NTFS file system (Window 2000 and XP) is not supported yet.

I suppose I could buy an external hard disk but then what about backup..

Thanks again and regards

Angela

Hello Angela,

The Curtin ISO does not use the local hard drive, though it can as
Knoppix 5.1.1 allows reading and writing to NTFS partitions quite
happily.

The method used with our students is to use USB memory devices/hard
drives - they are very cheap, come in a variety of sizes etc., no danger
of endangering the existing installation.

···

---------

I had to smile to myself while reading the PDF - I am always puzzled

by the defining of electrical lighting as 'artificial'.

What terms would you recommend to use for the generic description of
light from the sun and sky dome versus man made (hence artificial or
constructed) light sources such as incandescent, etc.

Regards

Terry Mc Minn
Faculty of Built Environment, Art and Design
Curtin University of Technology
GPO Box U 1987 Perth 6845 Western Australia
Email: [email protected]
CRICOS Provider Code: 00301J

I did consider the LEARNiX CD, especially after reading Axel Jacobs'
tutorials. The issue for me was how to save files on my PC and server.
This is from their site ...

If you have a file server in you environment, that should be no problem at all. On almost any Linux distribution (and I guess this is true for the two mentioned) it is easily possible to mount (connect) volumes on nfs and cifs servers. That means 90% of what is used out there. It is also possible to mount Appleshare, but I am not sure if this is supported in the boot cd's.

Anyway, if you are sure that you cygwin radiance does everything you want, and that you won't need a tool not available under windows later, I think is it fine to go on. I am actually sitting on a windows pc at work (I have no influence on that ;-), and still kept more or less my linux environment with Openoffice, Scribus, Gimp, Inkscape, even Blender, ESP+ and Radiance more or less intact. So switching between OSs may be more a question on very specialized tasks (I have no cluster on windows and do not care about stability here so much) - I have the same environment on my OS X laptop and the ssh cli'able cluster running Linux. So I would not worry so much any more about these.

Good luck, Lars.