[greenstone-users] Installation problem on Freebsd

From Vano Tsertsvadze
DateSat Sep 27 22:15:33 2008
Subject [greenstone-users] Installation problem on Freebsd
I run freebsd 6.0, Web-server Apache-2.0.54.

Quiestion 1.

Following to the instructions, I tried to install gsdl-2.80-unix.
Installation was successful, but cgi-bin/library didn't work, while other
scripts like test-cgi were working.

The error_log of apache2.0 gave the result:

# (8)Exec format error: exec of '/home/gsdl/cgi-bin/library' failed

# Premature end of script headers: library

Please note - all permissions were correct - 755.

When I tried to execute cgi file 'library' from command line, I got:

gsdl# ./library

ELF binary type "0" not known.

./library: Exec format error. Binary file not executable.

So why it is unexecutable?

Second question.

I gave up with installing binaries and tried to compile gsdl but instalation
process stops after ./configure.

When I type make, the system says:

gsdl# make

for odir in common-src build-src runtime-src ; do echo making all in $odir;
(cd $odir && make all) || exit 1; done

making all in common-src

for odir in indexers; do echo making all in $odir; (cd $odir && make ) ||
exit 1; done

making all in indexers

"Makefile", line 33: Missing dependency operator

"Makefile", line 35: Need an operator

"Makefile", line 37: Need an operator

make: fatal errors encountered -- cannot continue

*** Error code 1

Stop in /home/gsdl/common-src.

*** Error code 1

Here are lines from Makefile

CC = gcc

line 33 CXX = g++

CFLAGS = -O2

line 35 CXXFLAGS = -g -O2

LIBS = -lcrypt -lm

line 37 MDEFINES =

gmake is also unsuccessful:

gsdl# gmake

for odir in common-src build-src runtime-src ; do

echo making all in $odir;

(cd $odir && gmake all) || exit 1;

done

making all in common-src

gmake[1]: Entering directory `/home/gsdl/common-src'

for odir in indexers; do

echo making all in $odir;

(cd $odir && gmake ) || exit 1;

done

making all in indexers

gmake[2]: Entering directory `/home/gsdl/common-src/indexers'

for odir in packages/unac mg mgpp lucene-gs ; do

echo making all in $odir;

(cd $odir && gmake all) || exit 1;

done

making all in packages/unac

gmake[3]: Entering directory `/home/gsdl/common-src/indexers/packages/unac'

gcc -c -DHAVE_CONFIG_H -DUNAC_VERSION="1.7.0" -g -O2 -Wall
-Wmissing-declarations -Wmissing-prototypes unac.c

unac.c:33:19: iconv.h: No such file or directory

unac.c: In function `utf16be':

unac.c:12592: error: syntax error before "cd"

unac.c:12596: error: `cd' undeclared (first use in this function)

unac.c:12596: error: (Each undeclared identifier is reported only once

unac.c:12596: error: for each function it appears in.)

unac.c:12596: warning: implicit declaration of function `iconv_open'

unac.c:12596: error: `iconv_t' undeclared (first use in this function)

unac.c:12600: warning: implicit declaration of function `iconv_close'

unac.c: In function `convert':

unac.c:12709: error: syntax error before "cd"

unac.c:12730: error: `cd' undeclared (first use in this function)

unac.c:12730: error: `iconv_t' undeclared (first use in this function)

unac.c:12734: warning: implicit declaration of function `iconv'

gmake[3]: *** [unac.o] Error 1

gmake[3]: Leaving directory `/home/gsdl/common-src/indexers/packages/unac'

gmake[2]: *** [all] Error 1

gmake[2]: Leaving directory `/home/gsdl/common-src/indexers'

gmake[1]: *** [all] Error 1

gmake[1]: Leaving directory `/home/gsdl/common-src'

gmake: *** [all] Error 1

Can someone help to solve my installation problems

Thanks

Vano Tsertsvadze

National Parliamentary Library of Georgia

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20080926/f9fe9a6d/attachment-0001.html