Dashboard > Admin > Home > 06 Reference > Development Environment on Debian linux
Admin
Development Environment on Debian linux
Added by Administrator , last edited by Jody Garnett on Jun 02, 2008  (view change)
Labels: 
(None)

This is a guide to setting up a uDig development environment for the Debian linux testing (etch) distribution.

Where possible tools have been installed from scratch as I'm hoping that one day this can form the basis of a Debian GIS HOW-TO for uDig development.

Installing Subversion

  1. Install Subversion:
    apt-get install subversion
  2. [Configure] Subversion.
  3. Create a directory and checkout trunk:
    /usr/src/sis$ mkdir udig
    /usr/src/sis$ cd udig
    /usr/src/sis/udig$ svn co http://svn.geotools.org/udig/trunk
    

Installing Java

  1. Debian provides the java-package utility to create a Debian installation package from supported Java(TM) 2 RE or SDK self-extracting archives (see the make-jpkg man page for details):
    /pkgs/java$ apt-get install java-package
    
  2. Download the appropriate [Java] self -extracting archive (.bin, not the .rpm)
  3. Create the Debian package
    /pkgs/java$ fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin
    
  4. Install the package
    /pkgs/java# dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb
    

Unfortunately no method exists yet for packaging Java Advanced Imaging (JAI) or Java Image IO (ImageIO) so we have to install these [manually]

Installing Eclipse

  1. Download [Eclipse] and unzip into a directory, in my case /opt
  1. Create a shell script to launch eclipse:
    /opt/eclipse# echo '#!/bin/sh' >/usr/local/bin/eclipse
    /opt/eclipse# echo '/opt/eclipse/eclipse -startup /opt/eclipse/startup.jar' >>/usr/local/bin/eclipse
    /opt/eclipse# chmod a+x /usr/local/bin/eclipse
    
  2. Configure the Eclipse Update Manager:
    • Choose Help > Software Updates > Find and Install...
    • Select Search for new features to install
    • Click on Import sites
    • Import the attached bookmarks [DEV:file|^EclipseUpdateSitesBookmarks.xml]
  3. Install the following minimal set of extras (of course you can just select whole packages - however you might run into problems with dependencies):
    • EMF/SDO/XSD Secondary Update Site
      • EMF SDK
    • GEF Update Site
      • Graphical Editing Framework
    • Subclipse Update Site
      • Subclipse
    • TPTP Update Site
      • TPTP Features
        • TPTP ProbeKit
        • TPTP Test Tools
        • TPTP Core
        • TPTP Charting Service
        • TPTP Platform Trace
        • TPTP Test
  4. Configure Eclipse

Powered by a free Atlassian Confluence Open Source Project License granted to uDig. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators
User-friendly Desktop Internet GIS