16
16
# Author: Matt Giuca
19
sudo vim /etc/apt/sources.list
21
# Gutsy by default had the CD-ROM packages selected, and the Internet packages
22
# commented out. (A comment in the apt sources list said it was because it
23
# failed to verify - IMPORTANT?? Probably not.)
24
# Comment out line 4 (deb cdrom:...)
26
# Uncomment ALL the lines for main, restricted and universe
27
# (deb http:...gutsy main restricted, deb-src ... main restricted
28
# deb http:...gutsy universe)
29
# Universe is important for pysvn (python-svn) later on
32
19
##########################################################################
34
21
##########################################################################
37
23
sudo apt-get install subversion
38
24
sudo apt-get install gcc libc6 libc6-dev make
39
25
sudo apt-get install apache2 libapache2-mod-python libapache2-svn
40
26
sudo apt-get install python2.5-dev python-svn python-webpy
41
sudo apt-get install python-numpy python-matplotlib
42
27
sudo apt-get install postgresql python-pygresql python-ldap
43
28
sudo apt-get install php5 php5-pgsql
45
# Note: I had a lot of trouble with the python-svn package.
46
# After playing around a bit it started working.
47
# python -c 'import pysvn'
48
# to test if it worked.
49
# Do Not install python-svn-dbg.
51
##########################################################################
52
# Python packages needed by IVLE or student code
53
##########################################################################
55
# See trunk/doc/dependencies.txt
58
# Note: apt-get install python-cjson puts it in an unexpected place.
59
# Setup doesn't handle this correctly, so just install by hand:
61
wget 'http://pypi.python.org/packages/source/p/python-cjson/python-cjson-1.0.5.tar.gz'
62
tar -zxvf python-cjson-1.0.5.tar.gz
66
sudo ./setup.py install
70
# NLTK for student code
71
wget 'http://prdownloads.sourceforge.net/nltk/nltk-0.9.2.tar.gz'
72
tar -xzvf nltk-0.9.2.tar.gz
73
wget 'http://prdownloads.sourceforge.net/nltk/nltk-data-0.9.2.zip'
74
unzip nltk-data-0.9.2.zip
77
sudo python setup.py install
79
sudo mkdir /usr/share/nltk
80
sudo mv data /usr/share/nltk/
81
sudo chmod -R g+r /usr/share/nltk/data
83
# Beautiful Soup for student code
85
sudo apt-get install python-beautifulsoup
87
wget 'http://www.crummy.com/software/BeautifulSoup/download/BeautifulSoup.tar.gz'
88
tar -xzvf BeautifulSoup.tar.gz
91
sudo python setup.py install
94
# LXML for student code
95
sudo apt-get install python-lxml
97
# Python Imaging Library for student code
98
sudo apt-get install python-imaging
100
# Elementtree 1.3a for student code
101
# Needs libtidy for 'TidyHTML' parts
102
sudo apt-get install libtidy-0.99-0
104
svn co http://svn.effbot.org/public/tags/elementtree-1.3a3-20070912/ elementtree1.3
106
sudo python setup.py install
109
# SimpleTAL for student code
110
sudo apt-get install python-simpletal
112
# SciPy for student code
113
sudo apt-get install python-scipy
115
# Documentation packages needed for tutorial system: Docutils, Epydoc
116
# wget each of these, untar them, and then do: sudo python ./setup.py install
118
http://docutils.sourceforge.net/docutils-snapshot.tgz
119
http://downloads.sourceforge.net/epydoc/epydoc-3.0.1.tar.gz?use_mirror=optusnet
122
# (Note: epydoc doesn't work on Fiesty using apt-get)
29
sudo apt-get install python-cjson
124
30
sudo apt-get install python-docutils python-epydoc
126
32
##########################################################################