Edit detail for Building OpenKomodo revision 27 of 27

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Editor: edreamleo
Time: 2008/01/26 14:57:22 GMT-8
Note: Komodo startup (NameError: name 'sys' is not defined)

added:
The following 6 steps show how to build and run OpenKomodo.


changed:
-
-These pages contain output from the script above:
Here are the logs:

changed:
-Here are various logs.
Here are the logs:

removed:
- 

removed:
-

removed:
-

My system is Ubuntu 7.10 (Gutsy Gibbon) with all updates installed, running on a Gateway/Intel laptop.

This page provides as many details concerning the builds as possible. All logs are given verbatim. Other details have been entered here as they occurred, but errors may have crept in.

Finding the sources was confusing at first. The Aha: use the svn sources, not the sources from the OpenKomodo download page!

See Building OpenKomodo docs for details of building the OpenKomodo docs. Alas, all the built docs are user-level docs: there appear to be no code-level docs for the code intelligence system.

The following 6 steps show how to build and run OpenKomodo.

  1. Read the instructions. Go to the svn page:

    http://svn.openkomodo.com/openkomodo/browse/openkomodo/trunk
    

readme.txt contains the download and build instructions.

  1. Get the sources:

    svn co http://svn.openkomodo.com/repos/openkomodo/trunk openkomodo
    
  2. Get all necessary tools. See:

    http://developer.mozilla.org/en/docs/Linux_Build_Prerequisites

I did the following:

  • Installed flex and bixon using the synaptic package manager.

  • Downloaded libIDL from ftp://ftp.gnome.org/pub/GNOME/sources/libIDL/0.8/

  • Installed libIDL using ./configure & make, per the install directions.

  • Installed additional dependencies using:

    apt-get build-dep firefox
    apt-get libcurl4-openssl-dev
    
  1. Make mozilla. Like this on Ubuntu:

    cd openkomodo/mozilla
    python build.py configure -k 4.3 --moz-src=cvs:1.8 --release \
        --no-strip --shared --tools > ekr_config_log.txt
    python build.py distclean all > ekr_build_log.txt
    

The "build.py distclean all" script downloads many files from cvs and compiles them. This script takes about 30 minutes. Here are the logs:

  • mozilla_log.txt: the console output (non-redirected) from the scripts above.
  • ekr_config_log.txt: the redirected output from the "build.py configure" script above.
  • ekr_build_log.txt: the redirected output from the "build.py distclean all" script above.
  1. Build OpenKomodo. Like this on Ubuntu:

    cd openkomodo
    export PATH=`pwd`/util/black:$PATH
    bk clean # I didn't do this at first: did it later to try to get more detail.
    bk configure > ekr_bk_config_log.txt
    bk build > ekr_bk_build_log.txt
    

The build took a little more than 5 minutes to complete. Here are the logs:

  1. Run OpenKomodo:

    cd openkomodo
    export PATH=~/openkomodo/util/black:$PATH
    bk run # use -v for more detail.
    

I defined an alias that does this all in one step.

Komodo startup (NameError?: name 'sys' is not defined) --toddw, Sat, 26 Jan 2008 08:03:44 -0800 reply

The reason OpenKomodo is not starting is due to small bug in the fileStatusUtils.py code, missing an "import sys" statement. This has already been fixed, please do a svn update to get the latest sources.

Komodo startup (NameError?: name 'sys' is not defined) --edreamleo, Sat, 26 Jan 2008 14:40:29 -0800 reply

Oh joy. The build appears to work. Thanks very much.