C4DM2013 Software » History » Version 18
Luis Figueira, 2013-03-11 05:08 PM
1 | 1 | Luis Figueira | h1. C4DM2013 Software |
---|---|---|---|
2 | 1 | Luis Figueira | |
3 | 16 | Luis Figueira | You should ensure the following software is installed on your laptop before you arrive at the [[c4dm2013|C4DM SWC 2013 bootcamp]], so that we can get started promptly with the tutorials. |
4 | 1 | Luis Figueira | |
5 | 1 | Luis Figueira | h2. Shortlist |
6 | 1 | Luis Figueira | |
7 | 1 | Luis Figueira | * Bash (the particular Unix shell we’ll be using) |
8 | 11 | Luis Figueira | * Python 2.6+ (the scripting language used in the course) |
9 | 11 | Luis Figueira | * "Mercurial":http://mercurial.selenic.com/ and "EasyMercurial":http://easyhg.org (for version control) |
10 | 1 | Luis Figueira | * A text editor (for programming!) |
11 | 2 | Luis Figueira | * You can also save time on the day by creating an account beforehand at the "SoundSoftware code site":http://code.soundsoftware.ac.uk. |
12 | 1 | Luis Figueira | |
13 | 2 | Luis Figueira | For the second day of the bootcamp you'll need the following Python packages: |
14 | 1 | Luis Figueira | |
15 | 11 | Luis Figueira | * "Numpy":http://www.numpy.org/ |
16 | 11 | Luis Figueira | * "SciPy":http://www.scipy.org/ |
17 | 11 | Luis Figueira | * "Matplotlib":http://matplotlib.org/ |
18 | 11 | Luis Figueira | * "Scikits Audiolab":https://pypi.python.org/pypi/scikits.audiolab/ |
19 | 2 | Luis Figueira | |
20 | 6 | Luis Figueira | If you run into any trouble, please send us an email: info@soundsoftware.ac.uk. |
21 | 1 | Luis Figueira | |
22 | 3 | Luis Figueira | h2. Installation on Linux |
23 | 1 | Luis Figueira | |
24 | 9 | Luis Figueira | * Bash, Python and Firefox are all available using the appropriate package management tool in all major Linux distributions. Please check that the Python version is 2.x, (2.6 or higher, preferrably). If not, you may need to install a newer version “by hand” or upgrade your Linux installation. |
25 | 14 | Luis Figueira | * EasyMercurial can be downloaded as a .deb package (for Debian or Ubuntu installations) from the "EasyMercurial Download page":http://easyhg.org/download.html. Your package manager should automatically install any dependencies, including Mercurial itself. On Red Hat or other Linux distributions you will probably need to install Mercurial first using your package manager, then download the EasyMercurial source code package and compile and install it using the instructions in the included file README.txt: just run qmake and then make. The qmake tool is part of the qt-devel package, which you may need to install first. |
26 | 9 | Luis Figueira | * If you use Linux, you probably already have a favourite text editor. Emacs and Nano are popular choices, but there are many others. |
27 | 1 | Luis Figueira | |
28 | 3 | Luis Figueira | h2. Installation on Windows |
29 | 1 | Luis Figueira | |
30 | 13 | Luis Figueira | * You should install "MinGW and MSYS":http://www.mingw.org/. Check that you can run (from the Windows Start menu) MinGW -> MinGW Shell in order to open a Bash prompt. |
31 | 13 | Luis Figueira | * Install Python 2.7 using the MSI installer from python.org |
32 | 13 | Luis Figueira | * Install NumPy and SciPy packages from scipy.org |
33 | 4 | Luis Figueira | * Install the scikits.audiolab package from this site, and matplotlib from SourceForge. |
34 | 14 | Luis Figueira | * EasyMercurial can be downloaded from the "EasyMercurial Download page":http://easyhg.org/download.html (the Windows installer will also install Mercurial itself). |
35 | 4 | Luis Figueira | * You will need to edit the PATH environment variable to add Python and Mercurial. To do this, go to Control Panel -> System and Security -> System -> Advanced system settings -> Advanced and click the Environment Variables button; then edit the PATH user variable and copy and paste |
36 | 4 | Luis Figueira | <pre> |
37 | 1 | Luis Figueira | C:\Python27;C:\Program Files\EasyMercurial;C:\Program Files (x86)\EasyMercurial |
38 | 4 | Luis Figueira | </pre> |
39 | 1 | Luis Figueira | onto the end of it. |
40 | 1 | Luis Figueira | |
41 | 1 | Luis Figueira | You can use Wordpad or Notepad as a text editor, or install another editor such as Sublime Text. |
42 | 1 | Luis Figueira | |
43 | 5 | Luis Figueira | h3. Installation on Mac OSX |
44 | 1 | Luis Figueira | |
45 | 12 | Luis Figueira | * OSX comes with Bash and Python; |
46 | 12 | Luis Figueira | * You can download Mercurial from the Mercurial web site and EasyMercurial from the EasyMercurial download page; |
47 | 5 | Luis Figueira | * There are many text editors available for OSX. |
48 | 1 | Luis Figueira | |
49 | 5 | Luis Figueira | h4. Python under OSX |
50 | 1 | Luis Figueira | |
51 | 1 | Luis Figueira | The following instructions have been tested under OSX Lion (10.7). Please let us know if you run into any problem. |
52 | 1 | Luis Figueira | |
53 | 1 | Luis Figueira | You’ll need to have both XCode and Homebrew installed. |
54 | 5 | Luis Figueira | |
55 | 17 | Luis Figueira | * XCode: Please follow the instructions on this page to install XCode using the AppStore; |
56 | 17 | Luis Figueira | * Homebrew: Please follow the instructions in the Homebrew’s page. |
57 | 17 | Luis Figueira | * The easiest way to install SciPy, Numpy and Matplotlib is to use the following script: "ScipySuperpack":http://fonnesbeck.github.com/ScipySuperpack/ |
58 | 1 | Luis Figueira | |
59 | 1 | Luis Figueira | Audiolab depends on libsndfile, so you need to install it first. To install it run the following command on the Terminal: |
60 | 1 | Luis Figueira | |
61 | 17 | Luis Figueira | <pre> |
62 | 1 | Luis Figueira | brew install libsndfile |
63 | 17 | Luis Figueira | </pre> |
64 | 1 | Luis Figueira | |
65 | 1 | Luis Figueira | After this, you need to install Audiolab. To install Audiolab, you need to run the following commands on the Terminal (you might need to be sudo): |
66 | 1 | Luis Figueira | |
67 | 17 | Luis Figueira | <pre> |
68 | 1 | Luis Figueira | easy_install pip |
69 | 1 | Luis Figueira | pip install scikits.audiolab |
70 | 17 | Luis Figueira | </pre> |
71 | 1 | Luis Figueira | |
72 | 4 | Luis Figueira | h2. Testing the installed software |
73 | 4 | Luis Figueira | |
74 | 1 | Luis Figueira | We recommend that you try the following simple tests to ensure that everything is installed and working correctly before the course starts. |
75 | 1 | Luis Figueira | |
76 | 4 | Luis Figueira | h3. Bash |
77 | 1 | Luis Figueira | |
78 | 1 | Luis Figueira | At the prompt, type “whoami”. You should be told what your user name is on the computer you are using. |
79 | 1 | Luis Figueira | |
80 | 4 | Luis Figueira | h3. Python |
81 | 1 | Luis Figueira | |
82 | 1 | Luis Figueira | At the prompt, type “print 2+2″ and check that you agree with the result. |
83 | 1 | Luis Figueira | |
84 | 1 | Luis Figueira | Then type “import sqlite3″ and verify that you don’t see an error message. |
85 | 1 | Luis Figueira | |
86 | 4 | Luis Figueira | h3. Mercurial |
87 | 1 | Luis Figueira | |
88 | 1 | Luis Figueira | At the Bash prompt, type “hg”. You should see a list of basic Mercurial commands. |
89 | 1 | Luis Figueira | |
90 | 4 | Luis Figueira | h3. EasyMercurial |
91 | 1 | Luis Figueira | |
92 | 1 | Luis Figueira | Create a directory (folder) somewhere on your computer. |
93 | 1 | Luis Figueira | |
94 | 1 | Luis Figueira | Start EasyMercurial and create a repository in your new directory: Open -> File folder -> navigate to your directory and click “OK”. |
95 | 1 | Luis Figueira | |
96 | 4 | Luis Figueira | h3. Text editor |
97 | 1 | Luis Figueira | |
98 | 1 | Luis Figueira | Create and save a file with some plain text in it. |