Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to run an binary for a 32-bit application which is dynaically linked to the libxml2 on a 64-bit Ubuntu (11.10). I have found and installed 32-bit libraries for most of the other libraries used, however I cannot find a package to install all 32-bit version of libxml2-dev. What packages do I have to install in order to make it run?

starting the application will lead to the following error wrong ELF class: ELFCLASS64

I succeeded to install a 32 bit version of zlib in /ust/lib32 but I cannot find a 32 bit version of libxml2.

The synaptic package manager list a libxml2-dev:i386 package. However since this eants to uninstall almost all installed packages I assume that this is for a pure 64 bit Linix

Any help?

share|improve this question

I came across another way of having lib32 version of installed on 64-bit Ubuntu (12.04) - installing Adobe Reader. It's one of popular applications that most of people would need, so it will make you feel a bit more comfortable than obtaining libxml2 by doing something else.

sudo apt-add-repository "deb $(lsb_release -sc) partner"
sudo apt-get update
sudo apt-get install acroread

(Cribbed from

share|improve this answer

I had the same problem.

But incidentally, 32-bit versions were available to me with the installations of Collabnet Subversion (solved my libxml2 for 32 bit Linux). And then all other 32 bit libraries were sourced from Intel's 32 bit compiler installation.

I had to put both these directories into LD_LIBRARY_PATH to get around screwing up other things on my system.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.