[greenstone-users] Installation problem on Freebsd

From Vano Tsertsvadze
DateSat Oct 4 14:59:18 2008
Subject [greenstone-users] Installation problem on Freebsd
In-Reply-To (004601c92258$5bd63080$13829180$-net-ge)
I found answer to my question and I think this might help others, who get in troubles with installation gsdl on FreeBSD

Answer is simple.

I didn?t have enabled compatibility with Linux binaries

First, I enabled it in rc.conf

linux_enable="YES"

Then I installed linux_base from ports, and then I typed command:

% brandelf -t Linux /home/gsdl/cgi-bin/library

That?s all, now my cgi-bin/library is executable.

Thanks

_____

From: Giorgi Varamishvili [mailto:g_varamishvili@geo.net.ge]
Sent: Monday, September 29, 2008 9:25 PM
To: 'Vano Tsertsvadze'; greenstone-users@list.scms.waikato.ac.nz
Subject: RE: [greenstone-users] Installation problem on Freebsd

Dear vano,

I don't know how about your first question, but

from second question for me it seems that configure does not finish correctly. I successfully compiled GSDL on Red-Hat Ent 4.0.

Did you carefully read documentation about required packages by the GSDL ? try to find a reaseon why ./configure script fails.

Kind Regards,

Giorgi L. Varamishvili

Bank Republic, Societe Generale Group

IT Systems Administrator

Founder of First Georgian Digital Library

From: greenstone-users-bounces@list.scms.waikato.ac.nz [mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] On Behalf Of Vano Tsertsvadze
Sent: 2008 ???? 26 09, ????????? 15:47
To: greenstone-users@list.scms.waikato.ac.nz
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

__________ Information from ESET NOD32 Antivirus, version of virus signature database 3192 (20080616) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

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