]> git.donarmstrong.com Git - neurodebian.git/blob - sandbox/2013-05-31_matlab_64bit_on_32bit.rst
Added also build env (g++,gcc,binutils) for matlab multiarch post
[neurodebian.git] / sandbox / 2013-05-31_matlab_64bit_on_32bit.rst
1 :date: 2012-06-03 14:00: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 experienced problems due the recent move of Mathworks to
11 drop 32-bit Linux builds of their products (i.e. Matlab R2013a and
12 co.). Please note that this is not the first time Mathworks values its own
13 costs higher than the benefits of a few scientists.  In 1998 PowerPC builds
14 for Macs were abandoned, causing a `furious reaction
15 <http://www.mathworks.com/matlabcentral/newsreader/view_thread/5910>`__
16 of the community.
17
18 Luckily, users of the fresh Debian stable release *wheezy* (or more recent
19 variants of Debian and its derivatives) who still need a 32bit OS on
20 64bit-capable hardware can take advantage of the new `multiarch
21 <http://wiki.debian.org/Multiarch>`_ support.  Multiarch allows for
22 multiple architecturesi to co-exist on a hardware/kernel
23 that is capable of supporting both (e.g. i386 and amd64).
24
25 Below we describe how you can use multiarch support and in few simple steps
26 that prepare your existing 32bit user-land for running 64bit Matlab.
27
28
29 Procedure
30 ---------
31
32 - [2-10 min] Install 64-bit kernel and reboot::
33
34    sudo apt-get install linux-image-amd64
35
36 - [1-3 min] Enable multi-arch support for amd64 architecture::
37
38    sudo dpkg --add-architecture amd64
39    sudo apt-get update
40
41 - [1-5 min] Install 64bit libraries (and compilers) needed for matlab::
42
43    sudo apt-get install libstdc++6:amd64 zlib1g:amd64 libncurses5:amd64 \
44      libxp6:amd64 libstdc++6-4.4-dev:amd64 libxt6:amd64 libxmu6:amd64 libxtst6:amd64 \
45      g++:amd64 gcc:amd64 binutils:amd64
46
47 Now your 64bit matlab (which you hopefully "registered" with
48 :ref:`matlab-support <binary_pkg_matlab-support>`) is 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