Configuring Fedora 10 For Harmony Development

These instructions presume a fresh install of Fedora 10 (although should work with other versions) and that you have the ability to sudo or become the root (Super User).

1) As root install subversion and g++:

$ yum install subversion
$ yum install gcc-c++

2) Check whether Java is installed on your system.

$ java -version

Should print something similar to :

java version "1.6.0_0"
IcedTea6 1.4 (fedora-15.b14.fc10-i386) Runtime Environment (build 1.6.0_0-b14)
OpenJDK Client VM (build 14.0-b08, mixed mode)

If Java is installed, please proceed to step 4.

3) Install java (as root) :

$ yum install java-1.6.0-openjdk-devel

4) Install ant (1.7.1) :

Although ant can be installed via yum, I was unable to get it to find the ecj.jar file, so I recommend installing it manually:

Download apache-ant-1.7.1-bin.tar.gz from http://ant.apache.org. I have assume you downloaded it to your home directory and want to install it for the current user only perform the following:

$ cd ~
$ mkdir java-tools
$ cd java-tools
$ tar -xzvf ~/apache-ant-1.7.1-bin.tar.gz

Alternatively you could install to /usr/local/share if you wish it to be available to all users.

Then update your .bashrc file to prefer this version of ant to any others:

# User specific aliases and functions
....
ANT_HOME=/home/username/java-tools/ant
PATH=$ANT_HOME/bin:$PATH:$HOME/bin

export PATH ANT_HOME

You may need to log out and log back in for the changes to take effect. Then test that ant is working by issuing the following commands:

$ ant -version

Should print something similar to:

Apache Ant version 1.7.1 compiled on June 27 2008

And

$ which ant

Should print something similar to:

~/java-tools/ant/bin/ant

5) Download ecj-3.4.2.jar from http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#JDTCORE and copy to ~/.ant/lib

6) Install other dependencies (as root):

$ yum install lcms-devel
$ yum install libpng-devel
$ yum install libjpeg-devel
$ yum install libX11-devel
$ yum install libXft-devel
$ yum install binutils-devel
$ yum install libxml2-devel
$ yum install xorg-x11-proto-devel
$ yum install libXtst-devel
$ yum install eclipse-ecj
$ yum install libXext-devel

Now you can continue with the build instructions as found at http://harmony.apache.org/quickhelp_contributors.html

DevConfiguration_Fedora10 (last edited 2009-09-20 21:54:22 by localhost)