[greenstone-users] Solaris 8 install & mkcol problems

From Laura Sheble
DateFri, 18 Apr 2003 17:52:42 -0400
Subject [greenstone-users] Solaris 8 install & mkcol problems
In-Reply-To (3E9637CB-5070302-cs-waikato-ac-nz)
We have been trying to install 2.39 on Solaris 8 with some problems. We
found a lot of help from comments by Don Gourley (see below - Notably, we
have not yet linked the XML parser into INC - if this is necessary, help on
how to do this would be appreciated) and others.

We still have some problems. Here are the symptoms:

1a. Though the demo collection and administrative options appear on our site
at gsdl/cgi-bin/library, the demo collection appears to be empty. Searches
retrieve no results & there are no options to browse. The option to "Search
for _stx_ for ..." is available.

1b. The error log contains the following entries:

warning: gdbm database "/opt/local/gsdl/collect/demo/index/text/demo.bdb"
does not exist

database open failed on: /opt/local/gsdl/collect/demo/index/text/demo.bdb
system problem: open on gdbm database
"/opt/local/gsdl/collect/demo/index/text/demo.bdb" failed

Error: call to filter failed for collection in OIDtools::get_info (system
warning: gdbm database "/opt/local/gsdl/collect/demo/index/text/demo.bdb"
does not exist

1c. I also noted that there is no import directory in the demo directory,
though there are many files (png, others in HASH.dir & HASHNULL.dir in the
archives directory for the collection).

2. Tried to build a collection from the command line using:

Ran perl -S mkcol.pl -creator lauras@wayne.edu downt

received the error message:

Can't find mkcol.pl on PATH

(the process stopped here).

3. Despite the problems with the demo collection & creating a collection
from the command line, I decided to try building a test collection of our
own from The Collector by pointing to our own website through the collector.
This seems to have worked out alright (the collection is available online,
is searchable, and browsable through 2 lists, "titles a-z" & "filenames")
except for a couple of minor problems, which I am listing here for

a. the images from the webpage menus do not load, though the few images
that are in the contents sections do load.

b. while clicking on a link from the contents section results in the error

External Link
The link you have selected is external to any of your currently selected
collections. If you still wish to view this link and your browser has access
to the Web, you can go forward to this page; otherwise use your browsers
"back" button to return to the previous document.

clicking on a link from the menu results in the error:

Internal Link not Found
For reasons beyond our control, the internal link you have selected does not
exist. This is probably due to an error in the source collection. Use your
browsers "back" button to return to the previous document.

Thank you for your help.

Laura Sheble


Don Gourley wrote:

To provide another data point I thought I would chime in with
our experience. I built version 2.36 using gcc version 2.95.3
and gdbm 1.8.0 on Solaris 2.8. I ran into several problems but was
able to do it in a couple of days working on and off. I thought
(and still think) that the problems were due to the fact that the
Greenstone team has little or no access to Solaris machines and
until and unless someone either provided them with access or
volunteered to test and fix build code on Solaris, this would be

After seeing Ziying's message I decided it was time to try 2.37 and
see if the problems were still there. They are...with a couple of
new ones thrown in. But again, I was able to build it in a few hours
of my time spread over two days and have the demo collection up and
running on it now. I can't address many of the issues that were
brought up since, for example, I don't use 'deploy' and I don't use
the web administration interface (assuming that's where the password
issues come in?). On the other hand, I'm not a professional Unix
systems administrator either and it's likely (almost certain) that
some of the problems I encountered are due to my poor understanding
of my Solaris environment.

With all those caveats (ie. your mileage will vary), here are the
problems I encountered and solutions that worked for me...in hopes
they may help others trying to use Greenstone on Solaris.

1. The first problem I encountered the first time I built was the
gdbm dependency. I had to get that package and install it. The
configure script still couldn't find it, even with the
--with-gdbm=/usr/local option. This was resolved by modifying
the configure script to change 'test -e' to 'test -r' as suggested
by John McPherson on the greenstone list.

2. Once the build started I had the problem Ziying described where
the CC variable was not passed down to the Makefiles in the src
directories. I resolved this by exporting
in my own environment before running 'make'

3. This worked for all the src directories but I got the same message
(something about a cc option not available) for the new XML parser
package added in 2.37. Luckily I had already installed this perl
module and so I took it out of the packages/Makefile. (I also had
to make sure my installation was in the INC path used by various
GSDL scripts like import.pl.)

4. After a lengthy compile, the 'make' finished successfully and so I
tried 'make install'. This failed miserably in the src/recpt
directory with complaints about message catalogs not found and then:
install: library was not found anywhere!
Since I don't know any better...and since I have a Linux binary
distribution installed to compare against...I decided to just
manually move all the executables to bin/SunOS. This was painful
but appears to have worked ok.

5. I then configured GSDL in my web server and invoked the library
CGI. Got an internal server error. The apache log indicated
that the gdbm shared library was not found, so I moved library
to library.exe and created a shell script named library as a
wrapper around the CGI:
# GSDL cgi-bin/library requires gdbm & stdc++ libs in /usr/local/lib:
I also had this problem when I ran one of the Perl scripts so I
also added the export command to setup.bash.

6. That allowed me to run the library CGI which then politely complained
about the unconfigured gsdlsite.cfg script in cgi-bin. Editing that
was straight-forward and allowed me to bring up Administration on the
web, which reminded me that I need to import and build demo before it
is "running", so I ran the import.pl and buildcol.pl scripts (which
didn't work until I linked my XML parser into INC and set my library
search path as described above). And, Viola...I all the snail info
I need on Solaris 2.8.

Perhaps this provides some hope for anyone who might be scared off
Greenstone on Solaris by the previous posting, and might provide some
help with specific problems. If you want to see it in action, here
is a collection using Greenstone 2.36 on a Solaris 2.8 server: