Gendaylit

Dear users,

I know this question is not directly linked to using Radiance/ESP-r but more in installing and making the programmes work as standalone and in coupling. Therefore I hope this is the right forum to post such a question :slight_smile:

I am using Ubuntu v. 8.10.

I have downloaded and installed Radiance and ESP-r. Both programmes seems to work but there might be missing some libaries to Ubuntu. In order to make the coupling between ESP-r and Radiance, Gendaylit needs to be installed. I have done so by changing the makefile in the Gendaylit package to:

CCOPTS= -g
#CCOPTS= -Ae -g # HPUX

CC=gcc
#CC=cc

and issued the command 'make'. I have copied the file 'Gendaylit' to '/opt/radiance/bin' and 'coeff_perez.dat', 'defangle.dat' and 'perezlum.cal' to '/opt/radiance/lib'

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

or

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

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'.

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

Can anybody spot a solution to my problem?

Any help is appresiated.

Best regards

Per Haugaard

路路路

______________________

Per Haugaard,

Griffenfeldsgade 33, 2.tv

2200 K酶benhavn N

Denmark

mobil: +45 26 39 06 40

E-mail: [email protected]

聽聽聽聽聽聽Tr忙nger du til at se det store billede? Kelkoo giver dig gode tilbud p氓 LCD TV! Se her http://dk.yahoo.com/r/pat/lcd

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

路路路

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