What do I need to do to install and run Sourcery CodeBench on an x86 64-bit Linux host system?
Question
What do I need to do to install and run Sourcery CodeBench on an x86 64-bit Linux host system?
Answer
In order to use Sourcery CodeBench on an x86 64-bit Linux host system, you must have 32-bit system libraries installed. You can install these 32-bit libraries using your system's package management tool, or build them from source.
If installing CodeBench 2013.03.x and later, it is not necessary to install xulrunner as this component is now packaged with CodeBench.
Distribution Notes:
Debian/Ubuntu
The following 32-bit libraries are available as packages that can be installed using apt-get on the command line or graphically using Synaptic:
- ia32-libs
- ia32-libs-gtk (not required for Hardy 8.04 and later)
To install these packages from the command line:
sudo apt-get install ia32-libs ia32-libs-gtk (NOTE for Ubuntu 12.04+, see below)
Next you will need to use Getlibs to install a 32-bit version of xulrunner:
Download getlibs-all.deb
Install getlibs-all.deb by running:
sudo dpkg -i getlibs-all.debInstall the 32-bit xulrunner by running:
sudo getlibs -p xulrunner-1.9.2Setup the IDE to use your recently installed 32-bit xulrunner:
export MOZILLA_FIVE_HOME=/usr/lib32/xulrunner-1.9.2.XSubstitute X for the version you see installed on your system. You will need to set this environment variable every time you start the IDE.
Ubuntu 12.04 and later
Since 12.04 Ubuntu introduced Multi Arch (https://wiki.ubuntu.com/MultiarchSpec) and removed ia32-libs ia32-libs-gtk packages from the repository. To install 32-bit libs you need the run the following command line:
sudo apt-get update sudo apt-get install libgtk2.0-0:i386 libxtst6:i386 gtk2-engines-murrine:i386 \ lib32stdc++6 libxt6:i386 libdbus-glib-1-2:i386 libasound2:i386
Note, you may need to run the following command first if the message Unable to locate package <package name> appears:
sudo dpkg --add-architecture i386
Red Hat Enterprise Linux
Logged in as the root user run the following:
RHEL 4 and older:
up2date-nox -i --arch=i386 glibc
RHEL 5 and later:
yum install glibc-devel.i686 gtk2-devel.i686 libcanberra.i686 \ libcanberra-gtk2.i686 PackageKit-gtk-module.i686 GConf2.i686 \ ncurses-libs.i686 xulrunner.i686
Fedora
If working with a new installation of the operating system please run yum update before attempting the following steps.
Logged in as the root user run the following:
Fedora 14:
yum install glibc-devel.i686 gtk2-devel.i686 gtk-nodoka-engine.i686 \ libcanberra.i686 libcanberra-gtk2.i686 PackageKit-gtk-module.i686 \ GConf2.i686 ncurses-libs.i686 xulrunner.i686
Fedora 11:
yum install glibc-devel.i586 gtk2-devel.i586 gtk-nodoka-engine.i586 \ libcanberra.i586 libcanberra-gtk2.i586 PackageKit-gtk-module.i586 \ GConf2.i586 ncurses-libs.i586 xulrunner.i586
This entry was last updated on 30 September 2014.