Is it possible to install 32-bit libraries on a 64-bit system?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161
Rep:
Is it possible to install 32-bit libraries on a 64-bit system?
I'm trying to run a program that is only available for 32-bit Linux in a .deb package. I've already installed ia32-libs and multiarch-support, however the program requires the library libXxf86dga.so.1 which isn't included in ia32-libs. So, trying to run the program gives me the error:
error while loading shared libraries: libXxf86dga.so.1: wrong ELF class: ELFCLASS64
since it's trying to use the 64-bit version. Is it possible to install the 32-bit version of that library. Can I just download the 32-bit package and install it? Or copy the library from an existing 32-bit Ubuntu installation?
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161
Original Poster
Rep:
When I try to do that, it and says I can autoremove a whole bunch of libraries and then threatens to remove some of my programs:
Code:
cameron@HP-Pavilion-g7-Notebook-PC ~ $ sudo apt-get install libxxf86dga1:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bluez-alsa:i386 libsdl-ttf2.0-0:i386 libgconf-2-4:i386 libatk1.0-0:i386
libstdc++5:i386 libqt4-declarative:i386 libgail18:i386 libao-common
libqt4-qt3support:i386 libunistring0:i386 libcupsimage2:i386 libidn11:i386
libnss3:i386 libcaca0:i386 gtk2-engines:i386 libgudev-1.0-0:i386
libcairo-gobject2:i386 libavc1394-0:i386 libaio1:i386 odbcinst1debian2:i386
libqt4-test:i386 libqt4-script:i386 libqt4-designer:i386
libsdl-mixer1.2:i386 libqt4-network:i386 libqt4-dbus:i386 libcap2:i386
libproxy1:i386 ibus-gtk:i386 libdbus-glib-1-2:i386 libtdb1:i386
libspeex1:i386 libgomp1:i386 libibus-1.0-0:i386 libcairo2:i386
libcanberra-gtk-module:i386 libcanberra0:i386 gtk2-engines-murrine:i386
libwavpack1:i386 libqt4-opengl:i386 libsoup-gnome2.4-1:i386
libmysqlclient18:i386 gstreamer0.10-plugins-good:i386
libqt4-xmlpatterns:i386 librsvg2-common:i386 libdatrie1:i386
libiec61883-0:i386 libgdk-pixbuf2.0-0:i386 libsdl-image1.2:i386
libpixman-1-0:i386 libsdl1.2debian:i386 libxaw7:i386 libgdbm3:i386
libcurl3:i386 libqtcore4:i386 libesd0:i386 libmikmod2:i386 libxft2:i386
libcroco3:i386 libpulse-mainloop-glib0:i386 libaa1:i386 libthai0:i386
libao4:i386 libxmu6:i386 libcanberra-gtk0:i386 libvorbisfile3:i386
libqt4-sql:i386 libqt4-svg:i386 libgail-common:i386 libraw1394-11:i386
libnspr4:i386 libshout3:i386 libdv4:i386 libqt4-xml:i386
gstreamer0.10-x:i386 libgettextpo0:i386 libxss1:i386 libsdl-net1.2:i386
libjasper1:i386 libgnome-keyring0:i386 libxtst6:i386
gtk2-engines-pixbuf:i386 libqtgui4:i386 libtag1c2a:i386 librsvg2-2:i386
libssl0.9.8:i386 libmad0:i386 gtk2-engines-oxygen:i386 xaw3dg:i386
libpango1.0-0:i386 libpulsedsp:i386 libqt4-sql-mysql:i386
libxcb-render0:i386 libodbc1:i386 libqt4-scripttools:i386 librtmp0:i386
libqtwebkit4:i386 libxp6:i386 libaudio2:i386 libxcb-shm0:i386 libxv1:i386
mysql-common libmng1:i386 libgtk2.0-0:i386 glib-networking:i386
libsoup2.4-1:i386 libtag1-vanilla:i386 libaudiofile1:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
xserver-xorg
The following packages will be REMOVED:
brasero gecko-mediaplayer gnome-applets gnome-media gnome-mplayer gvfs
gvfs:i386 gvfs-backends gvfs-daemons gvfs-fuse ia32-libs
ia32-libs-multiarch:i386 inxi libxxf86dga1 mencoder mint-meta-codecs
mint-meta-core mplayer nemo nemo-fileroller x11-utils xorg
The following NEW packages will be installed:
libxxf86dga1:i386
The following packages will be upgraded:
xserver-xorg
1 upgraded, 1 newly installed, 22 to remove and 27 not upgraded.
Need to get 90.5 kB of archives.
After this operation, 22.7 MB disk space will be freed.
Do you want to continue [Y/n]?
I DON'T want to remove brasero, nemo, etc. so I pressed n and ran sudo apt-get autoremove, but it says:
Code:
cameron@HP-Pavilion-g7-Notebook-PC ~ $ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
I too have had requests for 32-bit packages as dependencies when installing something. For openSUSE, I search the the package list displayed when I open Software Management, otherwise I look on the Internet for an RPM for my SUSE version. So far there has been not one problem.
I suggest you do the same; install the needed packages after searching for them in the installed repositories for your linux version.
Installed libraries just sit there unless something calls on them. As long as you have the ones that are needed, a few extra or an extra copy of a later version doesn't make any difference.
Last edited by thorkelljarl; 01-11-2014 at 04:22 PM.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by CamTheSaxMan
I was able to find the source code and I just compiled the program from source and it seems to work. Thanks anyway, though.
Probably the best course of action. It's possible that Ubuntu does multilib a little differently to its parent (wouldn't be the only thing) and I realised that the error you posted suggests that the .deb you had wasn't set up for multilib so I'm not sure whether it would work anyhow though I don't know enough of the details to know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.