Compiling Dehydra and Treehydra on Natty Narwhal

by groleo

While Dehydra is available as a package, it doesn’t contain treehydra.
So, the only other option is to have it compiled from sources.
One thing to note here is that the latest Dehydra requires xulrunner 2.0.

#Pre-requisites
sudo apt-get update
sudo apt-get install gcc-4.5
sudo apt-get install gcc-4.5-plugin-dev
sudo apt-get install xulrunner-2.0-dev

#Compiling
hg clone http://hg.mozilla.org/rewriting-and-analysis/dehydra/
cd dehydra

export CXX="`which g++-4.5`"
export CC="`which gcc-4.5`"

./configure \
        --js-libs=/usr/lib/xulrunner-2.0 \
        --js-headers=/usr/include/xulrunner-2.0 \
        --enable-C \

make
Advertisements