I've recently started trying out Chandler on Fedora 11.  Here are the steps I 
took to install the Chandler 1.0.3.1 package and its (Ubuntu-based) 
dependencies.  There might still be more required components (for features I 
haven't tried yet) but this got me to the initial pages successfully.  I wrote 
out the commands in a script so you can just cut, save and run it from the 
command line or run the commands individually.  At the end, you should have a 
directory named 'chandler' in your home directory and you should be able to 
launch the chandler desktop by running the 'client' script.  Let me know if you 
run into problems and I'll try to help.

-----------------------------------------------------------------------------------------------------------------
#
set -ex

# 1. Make a directory into which you will install the Chandler client,
#    "cd" into that directory, and make a 'deb' directory there

  mkdir ~/chandler
  cd ~/chandler
  mkdir deb
  cd deb

# 2. Get a JRE from http://www.java.com/en/download/linux_manual.jsp

  wget \
    -O jre-6u16-linux-i586.bin \
    http://javadl.sun.com/webapps/download/AutoDL?BundleId=33880

# 3. Get the Chandler for "Jaunty" package

  wget \
    
http://downloads.osafoundation.org/chandler/releases/1.0.3.1/Chandler_jaunty_1.0.3.1-1_i386.deb

# 4. Get the following Ubuntu "Jaunty" packages
#
#    libasound2 libdirectfb-1.0-0 libsdl1.2debian-alsa
#    libexpat1 libicu38 libssl0.9.8 libsqlite3-0
#    python-pkg-resources python-configobj
#    python-m2crypto python-pyicu
#    python-dateutil python-parsedatetime
#    python-twisted-core python-twisted-mail python-twisted-web
#    python-vobject python-zopeinterface
#    python2.6 python2.6-minimal

  wget \
    
http://mirrors.kernel.org/ubuntu/pool/main/a/alsa-lib/libasound2_1.0.18-1ubuntu9_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/d/directfb/libdirectfb-1.0-0_1.0.1-11ubuntu1_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/e/expat/libexpat1_2.0.1-4_i386.deb \
    
http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu38_3.8.1-3ubuntu1_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/libs/libsdl1.2/libsdl1.2debian-alsa_1.2.13-4ubuntu3_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/p/python-dateutil/python-dateutil_1.4.1-2_all.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/p/python-setuptools/python-pkg-resources_0.6c9-0ubuntu4_all.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/p/python-vobject/python-vobject_0.6.0-1_all.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/p/python2.6/python2.6-minimal_2.6.2-0ubuntu1_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/p/python2.6/python2.6_2.6.2-0ubuntu1_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/s/sqlite3/libsqlite3-0_3.6.10-1_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/t/twisted-mail/python-twisted-mail_8.2.0-2_all.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/t/twisted-web/python-twisted-web_8.2.0-2_all.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/t/twisted/python-twisted-core_8.2.0-2_all.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/main/z/zope3/python-zopeinterface_3.4.0-0ubuntu3_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/universe/c/configobj/python-configobj_4.5.3-1_all.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/universe/m/m2crypto/python-m2crypto_0.18.2-2build1_i386.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/universe/p/parsedatetime/python-parsedatetime_0.8.6-1_all.deb
 \
    
http://mirrors.kernel.org/ubuntu/pool/universe/p/pyicu/python-pyicu_0.8.1-3ubuntu1_i386.deb
 \
    
http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl0.9.8_0.9.8g-15ubuntu3.3_i386.deb
 \
    #

# 5. All packages in

  cd ..

# 6. Extract the Chandler and Python 2.5 runtime files, plus additional
#    python components and shared libraries.
#    Also run the Java installer; this requires a reply.

# ---- unpack.sh ----
#
  rm -fr c103 py26 usr

  un() {
    deb=$1; shift;
    ar p ${deb} data.tar.gz | tar zxf - $@
  }
  sp() {
    mv $1 py26/lib/python2.6/dist-packages/$2
  }
  ul() {
    un $1 ./usr/lib
    mv ./usr/lib/lib* py26/lib/
    rm -fr usr
  }
  ll() {
    un $1 ./lib
    mv ./lib/lib* py26/lib/
    rm -fr lib
  }

  un deb/Chandler_*.deb
  mv ./usr c103

  un deb/python2.6-minimal_*.deb ./usr/lib ./usr/bin
  un deb/python2.6_*.deb ./usr/lib
  mv ./usr py26

  un deb/python-pkg-resources_*.deb ./usr/share/pyshared
  sp ./usr/share/pyshared/*
  rm -fr usr

  un deb/python-zopeinterface_*.deb ./usr/share/pyshared/zope 
./usr/lib/python2.6/dist-packages
  sp ./usr/share/pyshared/zope
  sp ./usr/lib/python2.6/dist-packages/zope/interface/* zope/interface/
  rm -fr usr

  un deb/python-pyicu_*.deb ./usr/lib/python-support/python-pyicu/python2.6 
./usr/share/python-support/python-pyicu
  sp ./usr/lib/python-support/python-pyicu/python2.6/*
  sp ./usr/share/python-support/python-pyicu/*.py
  rm -fr usr

  ul deb/libicu38_*.deb

  un deb/python-m2crypto_*.deb 
./usr/share/python-support/python-m2crypto/M2Crypto 
./usr/lib/python-support/python-m2crypto/python2.6
  sp ./usr/share/python-support/python-m2crypto/M2Crypto
  sp ./usr/lib/python-support/python-m2crypto/python2.6/M2Crypto/* M2Crypto/
  rm -fr usr

  ll deb/libssl0.9.8_*.deb

  un deb/python-configobj_*.deb ./usr/share/python-support/python-configobj
  sp ./usr/share/python-support/python-configobj/\*.py
  rm -fr usr

  ul deb/libexpat1_*.deb

  ul deb/libsdl1.2debian-alsa_*.deb
  ul deb/libdirectfb-1.0-0_*.deb
  ul deb/libasound2_*.deb

  rm -fr py26/lib/python2.6/dist-packages/twisted
  un deb/python-twisted-core_*.deb ./usr/share/pyshared/twisted
  un deb/python-twisted-web_*.deb ./usr/share/pyshared/twisted
  un deb/python-twisted-mail_*.deb ./usr/share/pyshared/twisted
  sp ./usr/share/pyshared/twisted
  rm -fr usr

  un deb/python-dateutil_*.deb 
./usr/share/python-support/python-dateutil/dateutil
  sp ./usr/share/python-support/python-dateutil/dateutil
  rm -fr usr

  un deb/python-vobject_*.deb ./usr/share/python-support/python-vobject/vobject
  sp ./usr/share/python-support/python-vobject/vobject
  rm -fr usr

  un deb/python-parsedatetime_*.deb 
./usr/share/python-support/python-parsedatetime/parsedatetime
  sp ./usr/share/python-support/python-parsedatetime/parsedatetime
  rm -fr usr

  chmod +x deb/jre-6u16-linux-i586.bin
  deb/jre-6u16-linux-i586.bin
  mv jre1.6.0_16 jre6

  test -e /lib/libbz2.so.1 &&
    ln -s /lib/libbz2.so.1 py26/lib/libbz2.so.1.0
#
# ---- END of unpack.sh ----

# 7. Make the Chandler client launcher script

# ---- client.sh ----
cat  > client << '...'
#
set -e

cd $(dirname $0)
P=$(pwd)

CHANDLERHOME=$P/c103/lib/chandler
CHANDLERBIN=$CHANDLERHOME

export CHANDLERBIN CHANDLERHOME

PYTHONHOME=$P/py26
PYTHONBIN=$PYTHONHOME/bin/python2.6
PYTHONPATH=$CHANDLERHOME:$CHANDLERHOME/release/site-packages:$CHANDLERHOME/release/parcels

export PYTHONHOME PYTHONBIN PYTHONPATH

JRE=$P/jre6
JRELIB=$JRE/lib/i386:$JRE/lib/i386/client

LC_PATH=$CHANDLERHOME/release/share/locale
LD_LIBRARY_PATH=$CHANDLERHOME/release/lib:$CHANDLERHOME/release/db/lib:$PYTHONHOME/lib:$JRELIB

export JRE LC_PATH LD_LIBRARY_PATH

arch=i386
link=../lib/chandler/chandler
vm=client

cd ${CHANDLERBIN}
${PYTHONBIN} -O Chandler.py

...
# ---- END of client.sh ----

# 8. Make the launcher executable and try to start it

  chmod +x client
  ./client

# 9. Hopefully, all done :)
_______________________________________________
[email protected] mailing list
unsubscribe here: http://lists.osafoundation.org/mailman/listinfo/chandler-users
Chandler wiki: http://chandlerproject.org/wikihome

Reply via email to