LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-11-2014, 11:47 AM   #1
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Rep: Reputation: 9
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?
 
Old 01-11-2014, 12:06 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
If Ubuntu works like Debian in this regard then all you have to do is append ":i386" to the name to install it. For example I had to run
Code:
apt-get install libpango:i386"
so that a particular program would run.
 
Old 01-11-2014, 12:19 PM   #3
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Original Poster
Rep: Reputation: 9
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.
odd...
 
Old 01-11-2014, 04:13 PM   #4
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
I did...

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.
 
Old 01-11-2014, 04:38 PM   #5
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Original Poster
Rep: Reputation: 9
I was able to find the source code and I just compiled the program from source and it seems to work. Thanks anyway, though.
 
Old 01-11-2014, 04:48 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by CamTheSaxMan View Post
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.
 
  


Reply

Tags
32-bit, library



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Run 32-bit executables on 64-bit system with shared libraries. _madman_ Linux - General 2 11-21-2013 10:19 AM
Howto install 32-bit libraries on 64-bit Linux using yum shawn_t Linux - Server 16 07-13-2012 02:46 AM
how to find and install 32-bit X11 libraries on 64-bit ubuntu 10.04 maxreason Linux - Software 8 08-30-2010 08:51 PM
how to find and install 32-bit X11 libraries on 64-bit ubuntu 10.04 maxreason Ubuntu 1 08-27-2010 08:25 PM
how do I install 32-bit compiler libraries onto a 64-bit machine? charleycat Linux - Software 1 08-16-2007 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration