LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-29-2011, 10:44 AM   #1
Tynged
LQ Newbie
 
Registered: Jun 2010
Location: United States
Distribution: Yellow Dog Linux 6.2, CentOS 5.4, Easy Peasy 1.6
Posts: 7

Rep: Reputation: 0
Running 32-bit applications on 64-bit Amazon Linux AMI.


I am attempting to run a 32-bit application on a 64-bit Linux distribution. The application (Kaseya Agent) is installed with a shell script, KcsSetup.sh.

The entirety of the comments at the beginning of this shell script read:

Code:
#
# Some 64-bit Linux systems cannot run 32-bit binaries without the addition of the ia32-libs
# package. This script knows of all of the 64-bit Linux distributions we've encountered which
# require this library. It checks those systems to see if the package is required to be able
# to run the binary installer embedded into this script. If so, it attempts to load the ia32-libs
# package.
#
# Next, this script extracts the binary installer and runs it. If you encounter a 64-bit system
# where the intaller does not work, please let us know. You might see if there is a 32-bit
# library package other than ia32-libs required to run the binary installer. Hand installing
# that package may allow the binary installer to run.
#
# Note: This script requires perl to extract the base_64 embedded binary installer. If your
# system does not have perl, then the script portion of this installer will fail.
#
The output of running the script, whether using sh KcsSetup.sh or bash KcsSetup.sh, is as follows:

Code:
Warning: Some 64-bit Linux distributions cannot run 32-bit applications without installing
         a 32-bit library package. If you run into installation problems please let Kaseya
         support know what Linux distribution you are using.
Fatal:          Installation of the Agent failed because this system cannot run 32-bit programs.
The flavor of Linux I am using is Amazon Linux AMI which, according to this external thread, is based on RHEL 5.x and parts of RHEL 6. They also mention binary compatibility with CentOS 5.x.

Code:
$ uname -a
Linux domU-12-31-38-04-B2-64 2.6.35.11-83.9.amzn1.x86_64 #1 SMP Sat Feb 19 23:42:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu has a package called ia32-libs and Red Hat supposedly has something called multilib that accomplishes running 32- and 64-bit programs concurrently. (I could not find an equivalent package for CentOS.) However when I try to search for or install these packages no matches are found.

Code:
$ yum search ia32-libs
Loaded plugins: fastestmirror, priorities, security
amzn-main                                                | 2.1 kB     00:00
amzn-main-debuginfo                                      | 1.9 kB     00:00
amzn-main-nosrc                                          |  951 B     00:00
amzn-updates                                             | 2.1 kB     00:00
Warning: No matches found for: ia32-libs
No Matches found
Code:
$ yum search multilib
Loaded plugins: fastestmirror, priorities, security
Warning: No matches found for: multilib
No Matches found
Is there another name a package like this might go by, a broader update repository I'm not using, or possibly another solution all-together?

Thanks in advance.
 
Old 09-29-2011, 12:26 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You'll need to run:
Code:
yum install alsa-lib.i686 atk.i686 audit-libs.i686 avahi-libs.i686 cairo.i686 cups-libs.i686    \
            dbus-libs.i686 expat.i686 flac.i686 fontconfig.i686 freetype.i686 gamin.i686        \
            gdk-pixbuf2.i686 glib2.i686 glibc.i686 gnutls.i686 gtk2.i686 jasper-libs.i686       \
            keyutils-libs.i686 krb5-libs.i686 libICE.i686 libSM.i686 libX11.i686 libXau.i686    \
            libXcomposite.i686 libXcursor.i686 libXdamage.i686 libXext.i686 libXfixes.i686      \
            libXft.i686 libXi.i686 libXinerama.i686 libXrandr.i686 libXrender.i686 libXtst.i686 \
            libasyncns.i686 libcom_err.i686 libgcc.i686 libgcrypt.i686 libgpg-error.i686        \
            libjpeg-turbo.i686 libogg.i686 libpng.i686 libselinux.i686 libsndfile.i686          \
            libstdc++.i686 libtasn1.i686 libthai.i686 libtiff.i686 libuuid.i686 libv4l.i686     \
            libvorbis.i686 libxcb.i686 nss-softokn-freebl.i686 pango.i686 pixman.i686           \
            pulseaudio-libs.i686 tcp_wrappers-libs.i686 xcb-util.i686 zlib.i686
Your distribution may use the i386 or i586 suffix instead for these packages.
 
Old 09-29-2011, 01:03 PM   #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 macemoneta View Post
You'll need to run ...
It's hard to believe Kaseya Agent needs even a significant fraction of those packages.

But I guess it is also hard to find out what packages Kaseya Agent does need, so maybe it is easiest to just install a giant collection of 32 bit libraries rather than figure out which are actually needed.

Quote:
Originally Posted by Tynged View Post
Is there another name a package like this might go by
Centos does have higher level bundle packages similar to ia32-libs in Ubuntu (that pull a bunch of related packages together under one name). I never figured out how one might search for such a package name. So I always used "yum provides" to find the names of individual packages I needed starting from the names of individual files (usually .so files) that I needed. But that only works after using an installer that has the decency to tell you which .so was lacking that caused the install to abort. You seem to have an installer with a less useful fail message.

You should understand one relevant big difference between Debian based distributions and Red Hat based distributions:

In 64-bit Debian based distributions, you can't normally use an ordinary install of the 686 architecture version of a package, because 32 bit .so files normally go into a different directory on 64 bit Debian than on 32 bit Debian. So you need either special repackaging of the 32 bit package under a different name, such as ia32-libs, or a standard 686 package installed in a non standard way.

In 64-bit Red Hat, the 32 bit .so files go in the same directory they would go in on a 32-bit Red hat. So to get 32 bit libraries, you can install the same name/version/architecture of a package of .so files as you would install on a 32 bit Red Hat.

Last edited by johnsfine; 09-29-2011 at 01:17 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Running 32-bit Applications on 64-bit Debian GNU/Linux LXer Syndicated Linux News 2 01-06-2010 12:26 PM
LXer: Using Adobe Flash and other 32-bit applications on 64-bit Linux LXer Syndicated Linux News 0 07-24-2008 07:10 PM
Running Linux 64 bit applications on 32 bit Linux OS ashish.mangla Linux - Software 1 02-24-2007 02:05 PM
Running Linux 64 bit applications on linux 32 bit OS ashish.mangla Linux - Server 1 02-24-2007 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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