]> git.donarmstrong.com Git - neurodebian.git/blob - sandbox/2013-05-31_matlab_64bit_on_32bit.rst
b71d01afc377135fabedbe6435e6d3c74c5d0f7a
[neurodebian.git] / sandbox / 2013-05-31_matlab_64bit_on_32bit.rst
1 :date: 2012-05-31 22:16:00
2 :tags: debian, neuroscience, software, matlab, multiarch, 
3
4 .. _chap_matlab_64bit_on_32bit:
5
6
7 Running 64bit Matlab on 32bit host OS
8 =====================================
9
10 Some of you have been impacted by the recent decision of Mathworks to
11 drop 32-bit Linux builds of their products (i.e. Matlab R2013a and
12 co.).  So that you do not feel particularly bad about it -- this is
13 not a novel move by Mathworks.  In 1998 PowerPC builds for Macs were
14 abandoned as well, bringing a `furious reaction
15 <http://www.mathworks.com/matlabcentral/newsreader/view_thread/5910>`__
16 of the community.
17
18 Luckily enough users of Debian (and its derivatives) who still use
19 32bit OS on 64bit capable systems can take advantage of rolled out in
20 recently released Wheezy `multiarch
21 <http://wiki.debian.org/Multiarch>`_ support.  Multiarch allows to
22 install and run multiple user-level builds (e.g. i386 and amd64) on a
23 hardware/kernel capable to support both.
24
25 Below we describe how you could take advantage of multiarch support
26 and in few simple steps prepare your 32bit user-land for running 64bit
27 Matlab.
28
29
30 Procedure
31 ---------
32
33 - [2-10 min] Install 64-bit kernel and reboot::
34
35    sudo apt-get install linux-image-amd64
36
37 - [1-3 min] Enable multi-arch support for amd64 architecture::
38
39    sudo dpkg --add-architecture amd64
40    sudo apt-get update
41
42 - [1-5 min] Install 64bit libraries needed for matlab::
43
44    sudo apt-get install libstdc++6:amd64 zlib1g:amd64 libncurses5:amd64 \
45      libxp6:amd64 libstdc++6-4.4-dev:amd64 libxt6:amd64 libxmu6:amd64 libxtst6:amd64
46
47 Now your 64bit matlab (which hopefully you "registered" with
48 :ref:`matlab-support <binary_pkg_matlab-support>` package) should be ready to run.
49
50 If you have any comments (typos, improvements, etc) -- feel welcome to
51 leave a comment below, or `contact us`_ .
52
53 .. _contact us: http://neuro.debian.net/#contacts