LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-05-2014, 03:23 PM   #1
williepabon
Member
 
Registered: May 2007
Location: Florida, USA
Distribution: Ubuntu
Posts: 96

Rep: Reputation: 0
Question Installing a 32 bit app on a 64 bit machine


Guys:
I have two 32 bit apps (to control functions on a ham radio) that I installed on a Ubuntu 12.04 LTS 64 bit. The apps apparently install, but they don't work. I checked that my apps were functional by running them on a 32 bit Ubuntu machine, where they work fine. What I need to do to have these two apps work on a 64 bit machine? Thanks.
 
Old 04-05-2014, 07:32 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Properly designed 32-bit apps should be runnable as long as any needed 32-bit libraries are installed. Please add the actual error that you get. Check for log files created by the app and also do
Code:
tail -n 20 /var/log/syslog
 
Old 04-06-2014, 07:29 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by williepabon View Post
What I need to do to have these two apps work on a 64 bit machine?
You need some 32-bit .so files installed into some lib32 directories (such as /lib32 or /usr/lib32).

First you need to figure out which .so files you need. If those apps are launched by directly invoking 32-bit programs (rather than indirectly through scripts) it is easy to identify the missing .so files using the ldd command.

Code:
ldd appname
will tell you all the .so files and which were found and which were missing.

Next go to the web site http://packages.ubuntu.com/
and scroll down to Search the contents of packages and type the name of a missing .so file in the box below that and search.

If you are lucky, one of the packages you find it in will be a compatibility package (a package of 32-bit .so files designed for use on a 64-bit system). In that case, you can simply install that compatibility package.

Otherwise, you might find the 32-bit .so file only in a 32-bit package. In that case, there may be some better way (such as a chroot to fool the package installer), but the only way I know is to download but not install the package, then open the package file with an archive program instead of a package installer and manually copy the .so files to where you need them. If the package says the .so goes in /lib, you need it in /lib32. If it says /usr/lib, you need to in /usr/lib32. Similar rule for less common places.

If you install .so files manually from a 32-bit package (rather than automatically from a compatibility package) you also need to use ldd on each of those .so files to see if they need other ones that you must find and install.

The basic compatibility package that all the others depend on is this one:
http://packages.ubuntu.com/precise/libc6-i386
So if you don't already have that installed, install it before you even start investigating what you need. It is possible that is all you need. But anyway you do need it, and having it there to start will reduce the time it takes to find out what else you need.

Last edited by johnsfine; 04-06-2014 at 07:47 AM.
 
Old 04-06-2014, 05:11 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
You should also check and make sure the package multiarch-support is installed.

That is the package name in the Debian Wheezy repo. It is possible that this is different in the Ubuntu repo.

This is probably needed in your install of some packages. 12.04 is based on Wheezy.
 
  


Reply

Tags
32 bits, ubuntu 12.04



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
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 02:02 PM
Installing wine app on a 64 bit RHEL machine Aj_Rev Linux - Software 3 07-17-2013 12:41 AM
segmantation fault on a 64 bit machine caused by binary compiled on a 32 bit machine ninofattore Linux - Newbie 1 10-13-2011 01:48 PM
[SOLVED] Installing 32 bit RPMs on 64 bit Linux conflicts with 64 bit packages gheibia Linux - Server 1 08-18-2011 01:33 AM
Installing 32 bit SUSE 10 in 64 bit machine me4linux Linux - General 2 01-22-2007 01:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:54 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