Turn Slackware64 to be Multilib

Home / Turn Slackware64 to be Multilib

Turn Slackware64 to be Multilib

December 3, 2015 | Article | 7 Comments

A multilib 64bit Linux OS is system which capable of running 64bit as well as 32bit software. By default, a fresh installation of Slackware64 bit is a multilib-ready. This article will discuss about how to turn our pure slackware64 to be multilib.

In FHS (Filesystem Hierarchy Standards), there is a separation of library, the one for 64bit is located on /lib64 directory while the 32bit on /lib directory. This separation ensure a clean system and the slackware team has chose this for the system.

The 64bit application will look for library on /lib64 hence we said the Slackware64 is a multilib-ready. The 32bit application will look for library on /lib, but Slackware is not shipped with any 32bit software.

Basically, what will we do are:

  1. switch the glibc (gnu library c) and gcc (compiler) to multilib version.
  2. System libraries are taken from 32bit Slackware and installed in the 64bit Slackware system which completes the process of creating a 32bit software layer.

We will use the simplest but work method.

Create a working directory. In this article I will use /tmp for that. You might use other directory if you want. Change to that directory and then invoke this command.

lftp -c 'open http://slackware.com/~alien/multilib/ ; mirror 14.0'

That command will download required packages to build multilib system. Wait until the download finished.

Now upgrade the glib and gcc to multilib system (the downloaded one) with this command:

upgradepkg --reinstall --install-new *.t?z

Now proceed with this if you download the directory slackware64-compat32 (in the default you do):

upgradepkg --install-new slackware64-compat32/*-compat32/*.t?z

Congratulations, now your system is Slackware64 multilib-enabled. Now you can download and run any 32bit applications.

For you who use package manager such as slackpkg, you need to add glibc and gcc packages names to blacklist. Otherwise, you have a chance that your multilib version is replaced with pure 64bit version.

Edit /etc/slackpkg/blacklist and add this line:

[0-9]+alien

When you want to install a 32-bit package to multilib Slackware and want to make sure that the system is not tainted, you can do following:

convertpkg-compat32 -i <package>

The script then check the package for compatibility and then make the compatible package for you to install.

,

About Author

about author

xathrya

A man who is obsessed to low level technology.

7 Comments
  1. Installing NVIDIA Graphic Driver on Slackware64 - Xathrya.ID

    […] the X.Org driver and contains the OpenGL implementation as well as the COMPAT32 libraries for multilib Slackware64 system and libvdpau package as requirement of nvidia-driver […]

  2. Installing Virtualbox on Slackware - Xathrya.ID

    […] machine, mine is Slackware64 14.0 with multilib support (non-multilib or even 32-bit system is […]

  3. Installing TeamViewer 8 on Slackware64 - Xathrya.ID

    […] this article we will use Slackware64 14.0 with multilib support. Unfortunately if you are not activating multilib yet, you cannot run teamviewer. It also […]

  4. Installing Netkit for Emulating Linux Networks - Xathrya.ID

    […] 14.0 multilib. If you have Slackware64, you need to enable multilib. Using Slackware 32-bit can […]

  5. Emulating Cisco IOS on Slackware using Dynamips and Dynagen - Xathrya.ID

    […] If you use Slackware64, you can download Dynamips 0.2.8-RC3-community for Linux 64-bit. If you use multilib support, you can choose either 32-bit or 64-bit, but I recommended you to use the 64-bit […]

  6. Install Java Support for Eclipse CDT - Xathrya.ID

    […] with multilib support (although not multilib-enabled is […]

  7. NVidia Optimus Support for Slackware - Xathrya.ID

    […] 14.0 with multilib (although any slackware is […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Social media & sharing icons powered by UltimatelySocial