Skip to content
Joshua Lande edited this page Jun 23, 2013 · 2 revisions

How to get the program running on Debian Ubuntu.

Introduction

I will post below the steps that I have used which have allowed me to successfully install this program using Debian and Ubuntu linux. If you are using a different distribution using a different package manager, this will most likely not work.

Details

I have been working on getting this program to run on Debian linux. The first step is to get all the python installs. To do this, you need to install several python modules. You need to install the PIL, Tkinter, Pmw, gcc (for doing C extensions), python-dev (also for building C extensions), the PIL tk compatability extension

$ sudo apt-get install python-imaging
$ sudo apt-get install python-tk
$ sudo apt-get install python-pmw
$ sudo apt-get install gcc
$ sudo apt-get install python-dev
$ sudo apt-get install python-imaging-tk

Next, You need to properly build levmar. To do this, you will first need to download the source to this program (as is described in the source tab of this github website). Then, you need to go into the source folder and then inside of wrap/levmar and issue the command

$ make

To build the python extensions, you have to go to the main/wrap folder and issue the command

$ sudo python setup.py install

As far as I can tell, this is it. You can then run the program by going to the main folder and running the program

$ python AreaDiffractionMachine.py

Clone this wiki locally