How to install Hedge from Git on Ubuntu

Don't forget that this is a Wiki. If something in here doesn't work for you, either say so on the discussion page linked in the header, or, even better, improve this document if you can. Thanks! (You don't even need to create an account.)

To build, follow the instructions below: (Note that bold face indicates the directory for each command.)

As of June 2013, Hedge uses setuptools to build and install. Previously distribute was the preferred method (See DistributeVsSetuptools for why this changed).

1. First, proceed to install dependencies of hedge:

BOOST_VER=N.NN; sudo aptitude install build-essential python-dev  libboost-serialization$BOOST_VER-dev libboost-python$BOOST_VER-dev libboost-thread$BOOST_VER-dev libboost-math$BOOST_VER-dev python-numpy libopenmpi-dev openmpi-bin git-core You have to adapt the N.NN version numbers for your distribution. Here are some data points:

Jaunty

1.37

Karmic

1.40

Lucid

1.40

Natty

1.42

You may use the command

2. Setup a development enviornment for hedge and some of it dependencies http://wiki.tiker.net/DevEnvironmentHowto. This step has replaced an older method using repotool

3. Depending on your success with step two, you might also need to place place this text in $HOME/.aksetup-defaults.py:

4. If you did not get boost-numeric-bindings from step two, do

5. As also explanined in http://wiki.tiker.net/DevEnvironmentHowto, you can exclude projects by creating a .exclude file in the same directory which contains .repo. For example,

6. If you'd like to use MPI, also install mpi4py (you need a version newer than 1.1.0 or recent svn)

7. The build-all step in http://wiki.tiker.net/DevEnvironmentHowto creates a virtualenv during installation. To use

I just tried this on Ubuntu 11.04, Natty Narwhal . Notes: 1) boost version 1.42. 2) I used apt-get instead of aptitude. 3) I did need to omit the '-mt' from step 5. 4) I did install mpi4py. 5) Have not run, but instructions were great! Got an 'INSTALL OK.' in no time at all. Thanks!

See the parent page for more information on possible extensions or troubleshooting.

Hedge/HowTo/InstallingFromGit/Ubuntu (last edited 2014-05-08 14:43:56 by ::ffff:71)