to compile solar on Mac OS, do:
unzip treesoft-code-r304-branches-lh3-solar.zip

cd treesoft-code-r304-branches-lh3-solar
make
mv solar solar.darwin

Then do
cp solar.pl solar.pl.original

And then modify the solar.pl.

