For users using the Ubuntu distribution it is very likely that the STLinux install script will fail unless some additional packages have been installed. This mini guide explains the steps required to make sure that the STLinux installation executes properly. These steps are only required once when installing STLinux for the first time.
The difficulty comes from the fact that Ubuntu uses the Debian package management system DPKG whereas STLinux is distributed as a set of RPM packages. Therefore ... we need two package management systems!
Some of the scripts in the STLinux distribution assume that /bin/sh is bash, while on Ubuntu it is frequently dash. First, make sure that bash is installed (this will fail if it is already installed, but that is OK), and then update your system to use bash as /bin/sh (answer 'No' to the question):
host% sudo apt-get install bash host% sudo dpkg-reconfigure dash
Install the rpm package using apt-get:
host% sudo apt-get install rpmInstall additional packages for stmyum using apt-get:
host% sudo apt-get install python-urlgrabber python-rpm python-sqlitecachechost% sudo rpm -ivh misc/stlinux24-host-STLinux_deps-20110126-1.i386.rpmNote: As of Ubuntu 9.10 you will have to force installation of the rpm using the --force-debian switch:
host% sudo rpm -ivh --force-debian misc/stlinux24-host-STLinux_deps-20110126-1.i386.rpmhost% wget http://www.stlinux.com/sites/default/files/stlinux23-host-STLinux_deps-0.1-5.i386.rpm host% sudo rpm -ivh stlinux23-host-STLinux_deps-0.1-5.i386.rpm
Note: As of Ubuntu 9.10 you will have to force installation of the rpm using the --force-debian switch:
host% sudo rpm -ivh --force-debian stlinux23-host-STLinux_deps-0.1-5.i386.rpmCAUTION: The list of capabilities that are added to the RPM databases are not checked. For example, it adds an entry for 'GCC' even if the GCC compiler was not installed as an Ubuntu package. It is up to the user to make sure all the listed capabilities are properly installed.
We next install the distribution as usual. Run the install script, either from the ISO image or, if the STLinux FTP site is locally mirrored, from the stlinux/2.3/ directory. For example:
host% sudo ./install all-sh4-glibc