[Radiance-general] Gendaylit

Thomas Bleicher tbleicher at arcor.de
Sun Nov 30 05:08:40 PST 2008


On 30 Nov 2008, at 10:38, Per Haugaard wrote:

> To test the Gendaylit file one can issue 'make skyview'. I have  
> done so both as root and as PHA and I get the following errors:
>
> oconv -f sky.rad outside.rad > sky.oct
> /bin/sh: oconv: not found
> make: *** [skyview] Error 127

You can just run gendaylit from the command line to
test if it's working. See the man page or the make file
you are using for some invocations. That does not tell
you whether the output is garbage, though. Perhaps
the makefile tests that, too?

Anyway, your error points to a problem with the environment:
the makefile can not find oconv in your path. Can you
run the command 'oconv' from the command line in the
same directory where the makefile is?

> or
>
> oconv -f sky.rad outside.rad > sky.oct
> /bin/sh: cannot create sky.oct: Permission denied
> make: *** [skyview] Error 2

Now that means you are not allowed to create a file
in the directory where you are. Do you have write permissions
in this directory? If you are in the '/opt' branch you will
have to use sudo to run these commands. It's better to
copy the test files into your home directory and run
the tests there.

> I must also say that I have added the following to both '.profile'- 
> files in '/home/pha' and in '/root'
>
> #Set PATH for ESP-r and Radiance
> RAYPATH= .:/lib:/opt/radiance/lib:/opt/radiance/bin
> PATH=$PATH:/opt/esru/bin:/opt/esru/esp-r/bin:/opt/radiance/lib:/opt/ 
> radiance/bin
>
> export PATH RAYPATH
> unset USERNAME
>
> I suspect that there is something wrong with '/bin/sh' which is  
> listed in Ubuntu 8.10 as symlink 'sh -> dash' and 'sh.distrib ->  
> bash'.


'dash' is just another POSIX shell. There should only be
a problem if one of the scripts uses 'bash' syntax and does
not ask for bash explicitly in the first line. I don't know much
about it (especially the startup procedure) so I can't tell if
your $PATH settings are actually read in when you start
a terminal window.

To test your settings just type 'env' and search for
the PATH and RAYPATH settings. If they are incomplete
or not there at all your .profile is not read when you start
a terminal session. There are some ways to solve this
but I'd need to know more about your system for that.
So see first if that is (part of) your problem.

> I am afried to make any changes to the linux destribution because I  
> am not that familiar with linux.

You can always install other shells next to the system
shell. In particular 'csh' (or 'tcsh') is required by some
Radiance scripts but not installed by default. Just adding
another one does not damage your system.
The system scripts on Ubuntu should run on 'bash' just as
well btw, only somewhat slower.

Regards,
Thomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20081130/f0843c83/attachment.html


More information about the Radiance-general mailing list