<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On 30 Nov 2008, at 10:38, Per Haugaard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;">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:<br><br>oconv -f sky.rad outside.rad > sky.oct<br>/bin/sh: oconv: not found<br>make: *** [skyview] Error 127</td></tr></tbody></table></blockquote><div><br></div><div>You can just run gendaylit from the command line to</div><div>test if it's working. See the man page or the make file</div><div>you are using for some invocations. That does not tell</div><div>you whether the output is garbage, though. Perhaps</div><div>the makefile tests that, too?</div><div><br></div><div>Anyway, your error points to a problem with the environment:</div><div>the makefile can not find oconv in your path. Can you</div><div>run the command 'oconv' from the command line in the</div><div>same directory where the makefile is?</div><br><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;">or<br><br>oconv -f sky.rad outside.rad > sky.oct<br>/bin/sh: cannot create sky.oct: Permission denied<br>make: *** [skyview] Error 2</td></tr></tbody></table></blockquote><div><br></div><div>Now that means you are not allowed to create a file</div><div>in the directory where you are. Do you have write permissions</div><div>in this directory? If you are in the '/opt' branch you will</div><div>have to use sudo to run these commands. It's better to</div><div>copy the test files into your home directory and run</div><div>the tests there.</div><br><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;">I must also say that I have added the following to both '.profile'-files in '/home/pha' and in '/root'<br><br>#Set PATH for ESP-r and Radiance<br>RAYPATH= .:/lib:/opt/radiance/lib:/opt/radiance/bin<br>PATH=$PATH:/opt/esru/bin:/opt/esru/esp-r/bin:/opt/radiance/lib:/opt/radiance/bin<br><br>export PATH RAYPATH<br>unset USERNAME<br><br>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'.</td></tr></tbody></table></blockquote></div><div><div><br></div><div>'dash' is just another POSIX shell. There should only be</div><div>a problem if one of the scripts uses 'bash' syntax and does</div><div>not ask for bash explicitly in the first line. I don't know much</div><div>about it (especially the startup procedure) so I can't tell if</div><div>your $PATH settings are actually read in when you start</div><div>a terminal window.</div><div><br></div><div>To test your settings just type 'env' and search for</div><div>the PATH and RAYPATH settings. If they are incomplete</div><div>or not there at all your .profile is not read when you start</div><div>a terminal session. There are some ways to solve this</div><div>but I'd need to know more about your system for that.</div><div>So see first if that is (part of) your problem.</div><br><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;">I am afried to make any changes to the linux destribution because I am not that familiar with linux.</td></tr></tbody></table></blockquote><div><br></div><div>You can always install other shells next to the system</div><div>shell. In particular 'csh' (or 'tcsh') is required by some</div><div>Radiance scripts but not installed by default. Just adding</div><div>another one does not damage your system.</div><div>The system scripts on Ubuntu should run on 'bash' just as</div><div>well btw, only somewhat slower.</div><div><br></div><div>Regards,</div><div>Thomas</div><div><br></div></div></body></html>