Difference between revisions of "Installing GDOME on Fedora Core 3"

From EPrints Documentation
Jump to: navigation, search
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
[[Category:Installing EPrints Dependancies]]
 
Gdome is the Gnome DOM engine, and aims to provide compatibility with all
 
Gdome is the Gnome DOM engine, and aims to provide compatibility with all
 
of DOM2 and some of DOM3 XPath. In eprints XML::GDOME is recommended as it's faster and uses much less RAM.
 
of DOM2 and some of DOM3 XPath. In eprints XML::GDOME is recommended as it's faster and uses much less RAM.
Line 7: Line 8:
  
 
  gdome2-0.8.1-1.i386.rpm
 
  gdome2-0.8.1-1.i386.rpm
  gdome2-devel-0.8.0-1.i386.rpm  
+
  gdome2-devel-0.8.0-1.i386.rpm   
   
+
  
 
RPMs can be obtained from
 
RPMs can be obtained from
Line 19: Line 19:
 
  rpm -Uvh gdome2-0.8.1-1.i386.rpm gdome2-devel-0.8.1-1.i386.rpm
 
  rpm -Uvh gdome2-0.8.1-1.i386.rpm gdome2-devel-0.8.1-1.i386.rpm
  
Fix the bug in gdome-config (already mentioned in Eprints2-wiki Installation on Readhat Enterprise Edition4)
+
 
 +
== Fix the bug in gdome-config ==
 +
 +
(already mentioned in Eprints2-wiki Installation on Readhat Enterprise Edition4)
  
 
'''To see the bug run'''
 
'''To see the bug run'''
 +
 
  gdome-config --libs
 
  gdome-config --libs
  
Line 30: Line 34:
 
  the_libs="$the_libs -L${exec_prefix}/lib -lgdome ` --libs` `xml2-config --libs`"
 
  the_libs="$the_libs -L${exec_prefix}/lib -lgdome ` --libs` `xml2-config --libs`"
 
  the_flags="$the_flags -I${prefix}/include -I${prefix}/include/libgdome ` --cflags` `xml2-config --cflags`"
 
  the_flags="$the_flags -I${prefix}/include -I${prefix}/include/libgdome ` --cflags` `xml2-config --cflags`"
 
  
 
'''change them to this:'''
 
'''change them to this:'''
  
the_libs="$the_libs -L${exec_prefix}/lib -lgdome `/usr/bin/glib-config --libs` `xml2-config --libs`"
+
the_libs="$the_libs -L${exec_prefix}/lib -lgdome `/usr/bin/glib-config --libs` `xml2-config --libs`"
the_flags="$the_flags -I${prefix}/include -I${prefix}/include/libgdome `/usr/bin/glib-config --cflags` `xml2-config --cflags`"
+
the_flags="$the_flags -I${prefix}/include -I${prefix}/include/libgdome `/usr/bin/glib-config --cflags` `xml2-config --cflags`"
  
 
'''If the following error occurs:'''  
 
'''If the following error occurs:'''  

Latest revision as of 11:32, 10 February 2010

Gdome is the Gnome DOM engine, and aims to provide compatibility with all of DOM2 and some of DOM3 XPath. In eprints XML::GDOME is recommended as it's faster and uses much less RAM.

The article deals with missing glib-config in Fedora Core 3. (May be true for other versions of Fedora also).


The following RPMs are to installed for GDOME

gdome2-0.8.1-1.i386.rpm
gdome2-devel-0.8.0-1.i386.rpm  

RPMs can be obtained from

http://gdome2.cs.unibo.it/rpm/gdome2-0.8.1-1.i386.rpm
http://gdome2.cs.unibo.it/rpm/gdome2-devel-0.8.1-1.i386.rpm

To install login as 'root' and execute the command given below:

rpm -Uvh gdome2-0.8.1-1.i386.rpm gdome2-devel-0.8.1-1.i386.rpm


Fix the bug in gdome-config

(already mentioned in Eprints2-wiki Installation on Readhat Enterprise Edition4)

To see the bug run

gdome-config --libs

As root edit /usr/bin/gdome-config

Around line 88 find these two lines:

the_libs="$the_libs -L${exec_prefix}/lib -lgdome ` --libs` `xml2-config --libs`"
the_flags="$the_flags -I${prefix}/include -I${prefix}/include/libgdome ` --cflags` `xml2-config --cflags`"

change them to this:

the_libs="$the_libs -L${exec_prefix}/lib -lgdome `/usr/bin/glib-config --libs` `xml2-config --libs`"
the_flags="$the_flags -I${prefix}/include -I${prefix}/include/libgdome `/usr/bin/glib-config --cflags` `xml2-config --cflags`"

If the following error occurs:

No such file or directory /usr/bin/glib-config 
No such file or directory /usr/bin/glib-config

This means there is no glib-config file in Fedora Core 3.

By default Fedora Core 3 has glib2-2.4.7-1, which doesn't seems to have glib-config.

Solution:

To install GDOME we need to check for glib-config.

glib-config is available in glib1.2-devel.xxx (glib-devel is needed to install XML::Gdome)

We can get glib1.2-devel rpm from

http://rpmfind.net/linux/RPM/redhat/nahant/Desktop/i386/glib-devel-1.2.10-15.i386.html 

Then Install XML::GDOME

XML::GDOME is a perl module that provides the DOM Level 2 Core API for accessing XML documents. It provides a XS wrapper around the gdome2 library.