Last updated: 16.06.08
# set up the 32 bit chroot
> sudo apt-get install debootstrap
> sudo mkdir /chroot
> sudo mkdir /chroot/gutsy-ia32
> sudo debootstrap –arch=i386 gutsy /chroot/gutsy-ia32 http://archive.ubuntu.com/ubuntu
(update for ubuntu 8.10)
> sudo debootstrap –arch=i386 intrepid /chroot/intrepid-ia32 http://archive.ubuntu.com/ubuntu
# edit /etc/fstab, add the following lines:
/home /chroot/gutsy-ia32/home none bind 0 0
/tmp /chroot/gutsy-ia32/tmp none bind 0 0
/dev /chroot/gutsy-ia32/dev none bind 0 0
/proc /chroot/gutsy-ia32/proc none bind 0 0
# now go into the chroot
> sudo chroot /chroot/gutsy-ia32/
> dpkg-reconfigure locales
> apt-get install nano
> nano /etc/apt/sources.list
# edit contents to this:
deb http://archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
# update the chroot system:
> apt-get update
> apt-get upgrade
# install the required packages
> apt-get install scons libsndfile1 libsndfile1-dev libjack-dev libavahi-common-dev libavahi-common-data libavahi-core-dev libavahi-client-dev libasound2-dev libxt-dev localepurge subversion gcc g++ fftw3-dev emacs w3m-el
# install optional packages
> apt-get install libcurl4-openssl-dev libcwiid1-dev
- at this point you may have to reboot to have the changes in /etc/fstab take effect. Otherwise you will not be able to go into your home directory from the chroot.
# download and build
> cd /home/matthew/src/SC_32
> svn co https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk supercollider
> cd supercollider
> scons
> scons install
# install the server as a 64 bit
# quit the chroot
> exit
> cd /home/matthew/src/SC_64
# get ready:
> apt-get install scons libsndfile1 libsndfile1-dev libjack-dev libavahi-common-dev libavahi-common-data libavahi-core-dev libavahi-client-dev libasound2-dev libxt-dev localepurge subversion gcc g++ fftw3-dev emacs
> svn co https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk supercollider
> cd supercollider
> scons LANG=no
> sudo scons install
# To get the 64 bit system to be able to run the 32 bit sclang:
> sudo apt-get install libc6-i386
> sudo apt-get install ia32-libs
# make sclang mode available for emacs
> sudo ln -s /chroot/gutsy-ia32/usr/local/share/SuperCollider /usr/local/share/
# add sclang to your path (this works better than editing the PATH environment as then you can't see the 64 bit server)
> sudo ln -s /chroot/gutsy-ia32/usr/local/bin/sclang /usr/local/bin/
# put this in your .bashrc so that sclang can see the libraries it needs
export LD_LIBRARY_PATH=/chroot/gutsy-ia32/usr/lib/:/chroot/gutsy-ia32/usr/local/lib/
# edit the .emacs file - add this line:
(require 'sclang)
# that's it (hopefully)
emacs -sclang
# for scvim
# add these lines to /etc/ld.so.conf
/chroot/gutsy-ia32/usr/lib/
/chroot/gutsy-ia32/usr/local/lib/
- This is actually only tested for hardy but should work on gutsy and intrepid too.
# updating the GNU linker
sudo ldconfig