How to install multilib

From Salix OS
Jump to: navigation, search

Original Source: http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:multilib

In this guide we will discuss how to install multilib support for 32bit apps on 64bit O/S. It is based on a 'full' version of Salix. The source guide is more in-depth, this guide is only the minimal steps required for Salix. If you are using a more recent Salix version, adjust '13.0' accordingly.

Contents

Obtain/Install multilib Packages

The multilib-enabled packages and scripts are available for download from http://connie.slackware.com/~alien/multilib/

All the required packages can be downloaded into your home>download with the following command:

cd ~/Download/
wget -r -l1 --no-parent http://connie.slackware.com/~alien/multilib/13.0/

To install the packages, we will run the terminal within the '13.0' directory downloaded above, then install:

cd ~/Download/connie.slackware.com/~alien/multilib/13.0/
su
upgradepkg --reinstall --install-new *.t?z

Obtain/Install 32-Bit Slackware Package Tree

The instructions on the source page require you to setup a package tree and then convert the packages to suit.

Alternatively, the essential and already converted packages can be downloaded and installed with the following commands:

cd ~/Download/
wget -r --no-parent http://connie.slackware.com/~alien/multilib/13.0/slackware64-compat32/
cd ~/Download/connie.slackware.com/~alien/multilib/13.0/slackware64-compat32/
su
installpkg *-compat32/*.t?z

Using 32-Bit Software

Pre-compiled software can be installed and run as-is. If the software you are running requires a library that is not available, follow the instructions to install it here: http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:multilib#running_32-bit_programs

If you are installing software from souce, first you must run the following command to configure the terminal to use the 32-bit packages (The effect will last until you logout from your shell!):

. /etc/profile.d/32dev.sh

If you are installing software from a SlackBuild or similar, please consider the additional instructions here: http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:multilib#compiling_32-bit_programs

Alternatively ....

A script to do it all for you may be found here: [1]

Finally ...

Whichever method you use, you need to add gcc* and glibc* to the excludes in /etc/slapt-get/slapt-getrc, whether directly or through the GSlapt interface; otherwise when you do a package upgrade, the new multilib packages will be downgraded to their original, standard versions in the repositories.