Cynosure.X International

:

Add Comment | Related Links | TrackBack
Related Content

Running 32-bit Binaries on 64-bit Ubuntu

We have just upgraded to Ubuntu 14.04 LTS for our Android development machine. When I execute the 'aapt' program as part of Android compilation, I have received the following error message:

  $ aapt
aapt: error while loading shared libraries:
libstdc++.so.6: cannot open shared object file:
No such file or directory

That usually means aapt cannot execute, because libstdc++.so.6 is not installed. But you'll find that it is installed. The error message is cryptic. In reality, the 64-bit version of libstdc++.so.6 is installed. aapt is linked against the 32-bit library, which is not installed.

On Ubuntu 13.10 and prior, you can issue the following simple command to install 32-bit libraries:

  sudo apt-get install ia32-libs

But that doesn't work on Ubuntu 14.04 LTS. Apparently ia32-libs has been obsoleted. To do the same thing on Ubuntu 14.04 LTS, it takes a little more work. You have to issue the following commands in sequence:

  sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386
sudo apt-get install libncurses5:i386
sudo apt-get install libstdc++6:i386

Once you issue those commands, 'aapt' and other 32-bit programs will run on 64-bit Ubuntu 14.04 LTS.

Mel
Wed, 21 May 2014 11:46:29 +0400

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 6 - 2?
Click button only once, please!

TrackBack

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

1801 Users Online

Hacking Digital Cameras
Fun for Photographers


Amazon Associate

Copyright © 1996 - 2017. All Rights Reserved.