[greenstone-devel] Compiling Greenstone 2.82 On FreeBSD 8.1

From Gavin Spomer
DateFri Jan 21 12:21:02 2011
Subject [greenstone-devel] Compiling Greenstone 2.82 On FreeBSD 8.1
In-Reply-To (4D38256D02000090000434D7-hermes-cwu-edu)
Wow, I can't believe I worked this out all by my little self. ;)


I did a little Googling, experimenting and fearless-fumbling and found the solution to the problem in my previous email and the other problems I came across as well while compiling. I will share. :)


First, I edited build-src/packages/cpan/XML-Parser-2.34/Makefile and changed line 146 to:


MAKE = gmake


That got me a lot further through the compiliation until I got an error:


/usr/bin/ld: cannot find -ldl


I then edited line 61 of runtime-src/src/recpt/Makefile from:


SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -ldl -lpthread


to:


SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -lpthread


I edited that particular Makefile because the last directory gmake was in before the error was runtine-src/src/recpt/.


I then ran "gmake all" again and got another "/usr/bin/ld: cannot find -ldl" error after being in the runtime-src/src/oaiservr/ directory, so I did the exact same edit to that directory's Makefile, removing the "-ldl" from line 47.


I don't claim to 100% know what I'm doing, but I was able to complete compiling Greenstone on FreeBSD. Fun. ;)

- Gavin


>>> Gavin Spomer <spomerg@cwu.EDU> 1/20/2011 12:07 PM >>>

Hello,


I am following the instructions for compiling Greenstone from source on the Greenstone Wiki ( http://wiki.greenstone.org/wiki/index.php/Compiling_Greenstone_Advanced ). As my subject line suggests, this is Greenstone 2.82 and I'm compiling on a FreeBSD 8.1 system.


I first run:


./configure --with-gdbm=/usr/local/include/gdbm.h


and that completes without error. Then I run:


gmake all


and that goes for a while, but it does not complete without error. The tail end of the output is:


making all in cpan/XML-Parser-2.34
gmake[3]: Entering directory `/usr/local/greenstone/build-src/packages/cpan/XML-Parser-2.34'
Skip blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/iso-8859-7.enc (unchanged)
Skip blib/lib/XML/Parser/Style/Tree.pm (unchanged)
Skip blib/lib/XML/Parser/Encodings/iso-8859-9.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/README (unchanged)
Skip blib/lib/XML/Parser/Encodings/euc-kr.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/windows-1250.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/windows-1252.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/big5.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/iso-8859-3.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg (unchanged)
Skip blib/lib/XML/Parser/Style/Subs.pm (unchanged)
Skip blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/iso-8859-4.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/iso-8859-8.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/iso-8859-2.enc (unchanged)
Skip blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc (unchanged)
Skip blib/lib/XML/Parser/LWPExternEnt.pl (unchanged)
Skip blib/lib/XML/Parser/Style/Objects.pm (unchanged)
Skip blib/lib/XML/Parser.pm (unchanged)
Skip blib/lib/XML/Parser/Style/Debug.pm (unchanged)
Skip blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc (unchanged)
Skip blib/lib/XML/Parser/Style/Stream.pm (unchanged)
Skip blib/lib/XML/Parser/Encodings/iso-8859-5.enc (unchanged)
make: don't know how to make w. Stop
gmake[3]: *** [subdirs] Error 2
gmake[3]: Leaving directory `/usr/local/greenstone/build-src/packages/cpan/XML-Parser-2.34'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/usr/local/greenstone/build-src/packages'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/local/greenstone/build-src'
gmake: *** [all] Error 1


Seems like "make: don't know how to make w. Stop" is where it is dying. I don't know exactly what this means; I'm not a make/gmake expert though I use if from time to time. I looked at the Makefile in the XML-Parser-2.34 directory for any clues, but I just plain don't know enough to figure it out.


Can someone help or at least point me in the right direction? I can post the complete output of gmake if needed. Thanks for your time.

Gavin Spomer
Systems Programmer
Brooks Library
Central Washington University

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