[GRASS-dev] compiling GRASS 6.3.0RC2 on Solaris 10

Andreas C. Lange Andreas.C.Lange at GMX.de
Mon Nov 26 10:26:38 EST 2007


Hi Glynn,

many thanks for your answers. 

Glynn Clements wrote:
> 
> Andreas C. Lange wrote:
> 
> > - ./configure needs to be executed with:
> > ./configure --with-srcdir=$(pwd) or
> > $(pwd)/configure
> > or it does not work.
> 
> In what way does it not work? On Linux, I don't have any problems
> using "./configure" without any --with-srcdir switch.

It works without absolute directory, i tried. I was wrong about that.

> 
> > - i had to manually edit include/make/Platform.make
> > to change CURSES = -lncurses $(COMPATLIB) to
> > CURSES = -lcurses $(COMPATLIB).
> > Problem on solaris 10 is, that ncurses is installed in /usr/local, but
> > the header file is in /usr/local/include/ncurses/ncurses.h
> > configure detects ncurses, but the link phase does not work, as
> > initscr32 from system curses library is needed.
> > Maybe ln -s /usr/local/include/ncurses/ncurses.h
> > /usr/local/include/ncurses.h works too.
> 
> --with-includes=/usr/local/include/ncurses would probably suffice,
> assuming that you want to use that version.

this works too. 

> 
> > - the scripts in tools directory are not working on solaris, as /bin/sh
> > is a standard unix shell, no bash as on linux. So i had to edit all to
> > #!/bin/bash . I think that the configure/make mechanism has to be
> > changed, so that bash is used (then bash has to be a prerequisite) or
> > the scripts should be edited to contain no bash-specific code.
> >
> > - all the startup scripts use "#!/bin/sh", but use bash-specific code.
> > So with default installation, grass can not be started. I had to edit
> > all to
> >  "#!/bin/bash". On Solaris 10 /bin/sh is a symlink to /sbin/sh, but i am
> > not shure if it is wise to change to /bin/bash, as the system may not
> > start in case of problems.
> 

I can now narrow down the problems to:
tools/mkhtml.sh
tools/module_synopsis.sh

Changing all occurences of "if ! test ..." to "if [ ! test ... ]" it
works now.

I confused the error messages from shell with the curses/ncurses
problem. 

I found further problems:
liblibr_li.so should be named: libr_li.so. 
r.sim.water and r.sim.sediment do not work (ldd gives: signal 9). 

Andreas

-- 
Andreas Lange


More information about the grass-dev mailing list