Deployment runthrough » History » Version 1

Chris Cannam, 2014-02-24 10:16 AM

1 1 Chris Cannam
h1. Deployment runthrough
2 1 Chris Cannam
3 1 Chris Cannam
This is an example deployment, on a 64-bit Linux host. There are various different ways to do this and the details will vary from one platform to another.
4 1 Chris Cannam
5 1 Chris Cannam
h2. 1. Obtain the current code from Mercurial repository
6 1 Chris Cannam
7 1 Chris Cannam
<pre>
8 1 Chris Cannam
$ hg clone https://code.soundsoftware.ac.uk/hg/human-echolocation-java-webapp
9 1 Chris Cannam
http authorization required for https://code.soundsoftware.ac.uk/hg/human-echolocation-java-webapp
10 1 Chris Cannam
realm: Mercurial repository for Human Echolocation WebApp
11 1 Chris Cannam
user: chrisca
12 1 Chris Cannam
password: 
13 1 Chris Cannam
destination directory: human-echolocation-java-webapp
14 1 Chris Cannam
requesting all changes
15 1 Chris Cannam
adding changesets
16 1 Chris Cannam
adding manifests
17 1 Chris Cannam
adding file changes
18 1 Chris Cannam
added 41 changesets with 93 changes to 40 files
19 1 Chris Cannam
updating to branch default
20 1 Chris Cannam
23 files updated, 0 files merged, 0 files removed, 0 files unresolved
21 1 Chris Cannam
$
22 1 Chris Cannam
</pre>
23 1 Chris Cannam
24 1 Chris Cannam
h2. 2. Install the MATLAB Compiler Runtime
25 1 Chris Cannam
26 1 Chris Cannam
Navigate to http://www.mathworks.co.uk/products/compiler/mcr/ and find the download URL, then use as follows.
27 1 Chris Cannam
28 1 Chris Cannam
<pre>
29 1 Chris Cannam
$ mkdir mcr
30 1 Chris Cannam
$ cd mcr
31 1 Chris Cannam
$ wget 'http://www.mathworks.co.uk/supportfiles/downloads/R2013b/deployment_files/R2013b/installers/glnxa64/MCR_R2013b_glnxa64_installer.zip'
32 1 Chris Cannam
--2014-02-24 10:00:10--  http://www.mathworks.co.uk/supportfiles/downloads/R2013b/deployment_files/R2013b/installers/glnxa64/MCR_R2013b_glnxa64_installer.zip
33 1 Chris Cannam
Resolving www.mathworks.co.uk (www.mathworks.co.uk)... 23.214.117.160
34 1 Chris Cannam
Connecting to www.mathworks.co.uk (www.mathworks.co.uk)|23.214.117.160|:80... connected.
35 1 Chris Cannam
HTTP request sent, awaiting response... 200 OK
36 1 Chris Cannam
Length: 488473010 (466M) [application/zip]
37 1 Chris Cannam
Saving to: ‘MCR_R2013b_glnxa64_installer.zip’
38 1 Chris Cannam
39 1 Chris Cannam
100%[======================================>] 488,473,010 7.81MB/s   in 60s    
40 1 Chris Cannam
41 1 Chris Cannam
2014-02-24 10:01:11 (7.71 MB/s) - ‘MCR_R2013b_glnxa64_installer.zip’ saved [488473010/488473010]
42 1 Chris Cannam
$ unzip MCR_R2013b_glnxa64_installer.zip 
43 1 Chris Cannam
Archive:  MCR_R2013b_glnxa64_installer.zip
44 1 Chris Cannam
  inflating: archives/mpc_resources_common_1348598029.enc  
45 1 Chris Cannam
  inflating: archives/cgir_mi_core_glnxa64_1375749553.xml  
46 1 Chris Cannam
[etc]
47 1 Chris Cannam
$ ./install
48 1 Chris Cannam
</pre>
49 1 Chris Cannam
50 1 Chris Cannam
The installer window then pops up (X server connection required for graphical interaction here).
51 1 Chris Cannam
52 1 Chris Cannam
The default installation folder is @/usr/local/MATLAB/MATLAB_Compiler_Runtime@. I'm going to accept that.