Skip Navigation

Howto

Build MKSearch with GCJ

Run the MKSearch indexer

Compilation with GCJ

Earlier MKSearch installation

Jpackage on FC3

Jpackage with Sun Java on FC3

Using MKSearch source releases

Database storage configuration

Sign up

If you sign up for an account on this web site you can customise elements of this site and subscribe to an email newsletter.

If you have an account on this web site you may login.

If you have an account on this site but have forgotten your user name and / or your password then you can request an account reminder email.

Jpackage on FC3

The JPackage project has RPMs for lots of Free Java packages and also SRPMs that you can build against various non-Free packages like Java from Sun.

This page documents how to install only Free software packages, see the JPackage with Sun Java on FC3 page for information about using Java from Sun.

This page explains how to install the packages required to build and deploy MKSearch on Fedora Core 3 using Apache Ant, Tomcat 5.x and JUnit regression tests. This configuration is documented because it is the primary configuration used in the development of the system. It is possible to build the project without Ant or JUnit and deploy to other servlet containers, see $mk_home/bin/README.txt for further details.

Lines in the examples that start with a $ prompt are things you can do as a normal user, lines that start with a # are things that have to be done by root. To revert to your normal user account, enter su user with your own user name. When copying these instructions, you do not need to copy the $ or the #!

Configuring Yum

The first thing to do is either configure Yum (which comes with FC3) to get the Free JPackage packages or configure Apt (which comes from other repos such as Freshrpms) - you don't need to configure both. If you are not sure which to use then Yum is probably best. The JPackage site has Apt and Yum configuration instructions, or you can follow the short Yum instructions that have been taken from there.

GPG

To ensure that the packages you install are not corrupted you first need to install the JPackage GPG key. You can download the key as a normal user but you need to install it as root:

  $ cd /tmp/
$ wget http://jpackage.org/jpackage.asc
$ su
# rpm --import jpackage.asc

Yum

It is simply a matter of downloading the jpackage.repo list and installing it as root. The repo list is a configuration file that has pointers to authorised mirror sites for JPackage.

  $ cd /tmp/
$ wget http://jpackage.org/jpackage.repo
$ su
# mv jpackage.repo /etc/yum.repos.d/

You can then run yum update to update the list of available packages. You must be logged in as root to run this command. Depending on how up to date your system is, yum may initiate a more extensive upgrade of installed software.

Installing Packages

The first thing to do is to install the "java compat" packages, which make the GNU Compiler for Java behave as if it were the Sun version. The forward slash, /, indicates a continuation of the command line, do not type the slash.

  # yum install gcc-java compat-gcc-java \
java-1.4.2-gcj-compat java-1.4.2-gcj-compat-devel

Dependencies Resolved
Transaction Listing:
Install: compat-gcc-java.i386 0:8-3.3.4.2
Install: java-1.4.2-gcj-compat.noarch 0:1.4.2.0-11jpp
Install: java-1.4.2-gcj-compat-devel.noarch 0:1.4.2.0-11jpp

Performing the following to resolve dependencies:
Install: compat-libgcj.i386 0:8-3.3.4.2
Install: compat-libgcj-devel.i386 0:8-3.3.4.2
Install: ecj.i386 0:2.1.3-5
Install: katana.noarch 0:2.0.0-1
Is this ok [y/N]: y

The three key packages that are required for this deployment are named tomcat5, ant and junit, so start by trying to install these.

  # yum install tomcat5 ant junit
Error: missing dep: jta >= 0:1.0.1-0.a.1 for pkg tomcat5
Error: missing dep: j2sdk = 2000:1.4.2_06-fcs for pkg java-1.4.2-sun-compat

So, non-Free packages are required and you need to follow the instructions on the JPackage with Sun Java on FC3 page.

<< | Up | >>

This document was last modified by Philip Shaw on 2005-02-01 07:09:08
Copyright MKDoc Ltd. and others.
The Free Documentation License http://www.gnu.org/copyleft/fdl.html