[greenstone-devel] Re: [Fwd: Re: One more Thing. Re: [greenstone-users] how to build Application]

From Anupama of Greenstone Team
DateTue May 20 12:25:53 2008
Subject [greenstone-devel] Re: [Fwd: Re: One more Thing. Re: [greenstone-users] how to build Application]
In-Reply-To (20080516200333-300200-gmx-net)
Hi Feng Wang,

You wrote:
(1) And the function like "add a new Document", "build the
collection" or "purge the collection" are the core elementen of managing the
repository as a remote admin. I don't know what i could do if like you
told to me
that they are not yet completely implemented.

Please if there are an other way to implement the function like the
API-A and API-M
of Fedora offered to the user,let me know it! thank you very much!

I've been told that some of those messages are not implemented yet
through the MessageRouter. But the functionality of adding documents and
creating collections is already available in Greenstone, since GLI
creates new documents and collections and imports collections into
Greenstone. You might want to look at the GLI code to see how it does
all this. GLI uses both Java and Perl code.
GLI java code:
http://trac.greenstone.org/browser/gli/trunk/src/org/greenstone/gatherer
The Greenstone Perl code that GLI uses is in
http://trac.greenstone.org/browser/gsdl/trunk/perllib and
http://trac.greenstone.org/browser/gsdl/trunk/bin/script


(2) I found a warning by preparing the install of GSDL3 about the
javagdbm.jar
/root/Downloads/greenstone3/greenstone3/build.xml:1064: Warning: Could
not find file
/root/Downloads/greenstone3/greenstone3/src/packages/javagdbm/javagdbm.jar
to copy.

BUILD FAILED
/root/Downloads/greenstone3/greenstone3/build.xml:1087: Warning: Could
not find file
/root/Downloads/greenstone3/greenstone3/gs2build/indexers/mg/mg.jar to copy.

Something may have failed during the compilation step because I think
both these jar files are built by compiling things up with Greenstone's
ant build file.
Have you got your JAVA_HOME set (and the JDK bin folder also on the
PATH) and is it finding JAVA_HOME?

For instance, my .profile file contains:
export JAVA_HOME=/opt/jdk1.5.0_10/
PATH=/opt/jdk1.5.0_10/bin:/opt/jdk1.5.0_10/bin/javac:$PATH

You need to have both environment variables pointing to the actual
location of Java (and not pointing to a symbolic link that points
indirectly to Java). If building fails, it may be due to an earlier
failure during compilation so it's good to keep an eye out during the
installation for any compile-time errors that may flash on screen.

This helped my GS3 compilation and I've also had it confirmed just now
by a developer here who said to check that the JAVA_HOME is properly set
if the jar files aren't being generated as they should.

Regards,
Anupama


feng wang wrote:
> Hi Anupama,
> I have tried to install the gsdl3 completely new from the svn server online. By using the following information:
>
> svn co http://svn.greenstone.org/greenstone3/trunk greenstone3
> cd greenstone3
> (edit build.properties as appropriate)
> ant prepare install
> I found a warning by preparing the install of GSDL3 about the javagdbm.jar
>
> /root/Downloads/greenstone3/greenstone3/build.xml:1064: Warning: Could not find file /root/Downloads/greenstone3/greenstone3/src/packages/javagdbm/javagdbm.jar to copy.
>
>
> I didn't find the jar file in my folder. Do you know where i could find the file, or could i maybe skip the step?
> Thanks
> Regards
> Feng Wang
>
> Hi again,
> The reason for the last warning by preparing the install was found. Now i have some thing news!!
> configure-gs2building:
> ....
> ....
> [exec] configure: error: /bin/sh '/root/Downloads/greenstone3/greenstone3/gs2build/indexers/mg/configure' failed for mg
> [exec] checking for C++ compiler default output file name...
>
> BUILD FAILED
> /root/Downloads/greenstone3/greenstone3/build.xml:1087: Warning: Could not find file /root/Downloads/greenstone3/greenstone3/gs2build/indexers/mg/mg.jar to copy.
>
> As you knew, i tried to run the ./configure in the folder /indexers. And updated the GDBM Library in my Linux or edit the build.properties file in the line for install.gdbm as false.. still got the error
> Please tell me how can i do now
>
> Regards
> Feng
>
>