Setting up Multilib on Slackware Linux

slackware dom0 | from source | multilib

Either attempt this quick workaround — but this didn’t work for us

    ln -s /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs-32.h

–or– proceed with the long and hard road of making your XEN host 32-bit compatible

installing the corresponding multilib version of gcc and glibc (and installing compat32-tools),

assuming -current

mkdir multilib/
cd multilib/

slackpkg install lftp
lftp -c 'open http://slackware.com/~alien/multilib/current/ ; mget aaa_glibc-solibs-*'
lftp -c 'open http://slackware.com/~alien/multilib/current/ ; mget compat32-tools-*'
lftp -c 'open http://slackware.com/~alien/multilib/current/ ; mget gcc-11*'
lftp -c 'open http://slackware.com/~alien/multilib/current/ ; mget glibc-2*'
du -sh ./
# 154M --> 43M

upgradepkg --terse --reinstall aaa_glibc-solibs-*.t?z
installpkg --terse compat32-tools-*.t?z
upgradepkg --terse --reinstall gcc-11*.t?z
upgradepkg --terse --reinstall glibc-2*.t?z
cd ../

and this might be useful for other pieces of software, since you’ve got compat32

cp -pi /etc/profile /etc/profile.dist
vi /etc/profile

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

source /etc/profile

Resources

Transitioning to a new GPG key https://alien.slackbook.org/blog/transitioning-to-a-new-gpg-key/

Tag Archives: multilib https://alien.slackbook.org/blog/tag/multilib/

Slackware for x86_64 - multilib packages & build instructions http://www.slackware.com/~alien/multilib/

Adding Multilib Capability to Slackware on x86_64 Architecture https://wiki.alienbase.nl/doku.php?id=slackware:multilib


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun