RE: [greenstone-users] Problem installating greenstone 2.5.1onSolaris 2.8

From Dave
DateWed, 1 Sep 2004 10:17:48 +0800
Subject RE: [greenstone-users] Problem installating greenstone 2.5.1onSolaris 2.8
In-Reply-To (1093917503-2885-14-camel-puriri-cs-waikato-ac-nz)
I finally solved the installation problem. Let me summarize the difficulties
I faced and work around.
1) Problem in compiling wv-gs
Error message 1 (when performing configure):
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... configure: error: installation or
configuration problem: compiler cannot create executables.
Solution 1:
Set environment CC equal to gcc
Error message 2 (when make):
Undefined first referenced
symbol in file
libiconv ./libwv.a(text.o)
libiconv_open ./libwv.a(text.o)
libiconv_close ./libwv.a(text.o)
ld: fatal: Symbol referencing errors. No output written to wvWare
collect2: ld returned 1 exit status
make: *** [wvWare] Error 1
Solution 2:
Run ./configure --with-libiconv=/usr/local/lib
Then make
If libiconv located at /usr/local/lib

2) install-sh cannot be executed
Solution: change its mode manually (Will next release of greenstone fix it?)

3) Error in running library (i.e. execute /cgi-bin/library )
Error message:
Cannot findELF.
Solution:
This problem is due to bug in GNU binutils. Certain versions were broken
under Solaris (the one on sunfreeware.com in particular) and produce broken
binaries.
Work around: setting the environment variable STRIPPROG to the location of
Solaris strip (/usr/ccs/bin/strip) and re-running make install.

> -----Original Message-----
> From: John R. McPherson [mailto:jrm21@cs.waikato.ac.nz]
> Sent: Tuesday, August 31, 2004 9:58 AM
> To: Dave
> Cc: greenstone-users@list.scms.waikato.ac.nz
> Subject: RE: [greenstone-users] Problem installating greenstone
2.5.1onSolaris 2.8
>
> On Tue, 2004-08-31 at 13:25, Dave wrote:
> > Yes. I am using gcc.
> > Could you suggest what can I do to fix the problem?
>
> > -----Original Message-----
> > > From: John R. McPherson
> > > On Mon, 2004-08-30 at 20:53, Dave wrote:
> > > > /cgi-bin/library also shows error:
> > > >
> > > > library: Cannot findELF
> > > I assume from your previous message that you are running Solaris.
> > >
> > > ELF is the executable file format - for some reason your compiler
> > > is making executables that your operating system can't run.
> > >
> > > My best guess would be that you are using GCC and it is linking
> > > the executables against some dynamic libraries that can't be
> > > found at runtime.
>
> Unfortunately we haven't had any solaris machines here for a number of
> years now, although the code worked on solaris last time we checked.
>
> The code should be fairly portable so it shouldn't be too difficult to
> get newer greenstone releases working on solaris. Without being a
> solaris expert I can't tell what the cause of your error message is,
> perhaps you need to get gcc to link programs against an ELF library by
> putting "-lelf" in your CFLAGS and CXXFLAGS when configuring/compiling.
>
> John