LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-26-2014, 11:10 AM   #1
cooltoad
Member
 
Registered: May 2013
Posts: 33

Rep: Reputation: Disabled
Install 32-bit binaries on 64-bit CentOS?


I have a 32-bit installer which needs 32-bit libXext.so.6 but my CentOS 6.1 x86_64 installation does not have that. This is the output when I run the installer...
# sh /home/username/iscape.04.21-p004/bin/iscape.sh
Initializing InstallScape using JVM at /home/username/iscape.04.21-p004/runtime/LNX86/bin/java. This might take some time...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/username/iscape.04.21-p004/runtime/LNX86/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Unknown Source)
at java.awt.Toolkit.<clinit>(Unknown Source)
at com.khanpur.installer.gui.InstallerUI.main(InstallerUI.java:107)

When I try to locate libXext.so.6 file I get this
# locate libXext.so.6
/usr/lib64/libXext.so.6
/usr/lib64/libXext.so.6.4.0

and when I try to install the 32-bit rpms I get this
# rpm -Uhv libXext-1.3.1-2.el6.i686.rpm
warning: libXext-1.3.1-2.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
libX11.so.6 is needed by libXext-1.3.1-2.el6.i686
# rpm -Uhv libX11-1.5.0-4.el6.i686.rpm
warning: libX11-1.5.0-4.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
libX11-common = 1.5.0-4.el6 is needed by libX11-1.5.0-4.el6.i686
libxcb.so.1 is needed by libX11-1.5.0-4.el6.i686
# rpm -Uhv libX11-common-1.5.0-4.el6.noarch.rpm
warning: libX11-common-1.5.0-4.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
libX11-common = 1.3-2.el6 is needed by (installed) libX11-1.3-2.el6.x86_64

With this error how can I install 32-bit package?
When I try to install using yum
# yum install libXext-1.3.1-2.el6.i686.rpm
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
No package libXext-1.3.1-2.el6.i686.rpm available.
Error: Nothing to do

I have already added EPEL and RPMForge Repository.

Last edited by cooltoad; 01-26-2014 at 11:11 AM.
 
Old 01-26-2014, 12:09 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,503
Blog Entries: 35

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Code:
yum search libXext | grep '^libXext'
#let's say for example the package name is libXext
yum install libXext.i686
Let yum do the heavy lifting.
 
Old 01-26-2014, 02:03 PM   #3
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,125

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
Quote:
Originally Posted by sag47 View Post
Code:
yum install libXext.i686
Let yum do the heavy lifting.
cooltoad, The above answer from sag47 is all you need. I just want to also explain what went wrong for you.

An important general rule is to put .i686 after the package name when you want yum to install the 32-bit version.

Quote:
Originally Posted by cooltoad View Post
When I try to locate libXext.so.6 file I get this
# locate libXext.so.6
/usr/lib64/libXext.so.6
/usr/lib64/libXext.so.6.4.0
That tells you that you have the 64 bit version. You probably understood that.

Quote:
and when I try to install the 32-bit rpms
Don't download and install rpm's that way unless you can't get them with yum.

Quote:
I get this
# rpm -Uhv libXext-1.3.1-2.el6.i686.rpm
warning: libXext-1.3.1-2.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
libX11.so.6 is needed by libXext-1.3.1-2.el6.i686
# rpm -Uhv libX11-1.5.0-4.el6.i686.rpm
warning: libX11-1.5.0-4.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
The long chain of manual dependencies is only ONE of multiple reasons why it is better to use yum.

Quote:
When I try to install using yum
# yum install libXext-1.3.1-2.el6.i686.rpm
You aren't supposed to type the .rpm part of the name when using yum install. Usually you are not supposed to type the "-1.3.1-2.el6" part either. Usually you should let yum get the current (for your system) version. But you do need the ".i686" part if you don't want the default (x86_64).

Sometimes you need a specific other version, but that can get complicated. Don't ask for a specific version unless you really need it.

Quote:
I have already added EPEL and RPMForge Repository.
Good. But that package is in base.

Last edited by johnsfine; 01-26-2014 at 02:05 PM.
 
Old 01-27-2014, 09:57 AM   #4
cooltoad
Member
 
Registered: May 2013
Posts: 33

Original Poster
Rep: Reputation: Disabled
Couldn't install using yum

# yum search libXext | grep '^libXext'
libXext.x86_64 : X.Org X11 libXext runtime library
libXext-devel.x86_64 : X.Org X11 libXext development package

# yum install libXext.i686
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
No package libXext.i686 available.
Error: Nothing to do
 
Old 01-27-2014, 10:27 AM   #5
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,125

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
That is a surprising result and you are getting beyond my yum knowledge. But I think the following might yield an explanation:
Code:
cat /etc/yum.conf
 
Old 01-27-2014, 09:56 PM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 13,277

Rep: Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775Reputation: 1775
the repos for centos 6.1 were moved to the archive ( the VAULT) 2 years back
this is the place holder for the 6.1 mirrors
Quote:
This directory (and version of CentOS) is depreciated. For normal users,
you should use /6/ and not /6.1/ in your path. Please see this FAQ
concerning the CentOS release scheme:

http://www.centos.org/modules/smartfaq/faq.php?faqid=34

If you know what you are doing, and absolutely want to remain at the 6.1
level, go to http://vault.centos.org/ for packages. Please keep in mind that 6.0 no longer gets any updates
there might be a few mirrors that still have the base repo ??? maybe ???
but all the code is 2 years out of date

CentOS 6.5 is the current

please UPGRADE

6.1 is unsupported and so is 6.2,6.3,and 6.4

libXext would be in the base repo for 6.1 and that is NOT at the location used in the cent.repo
it was MOVED 2 years ago

Code:
su -
yum search libXext
----and also ---
yum info libXext
to see what repos are installed and used
Code:
su -
yum repolist all
and your version of cent
Code:
cat /etc/redhat-release

Last edited by John VV; 01-27-2014 at 09:59 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Install OpenSUSE 32 bit and CentOS 64 bit in Dualboot Mode GMaK007 Linux - Newbie 7 10-25-2013 07:04 AM
Can't find 32 bit libs to run 32 bit prog on 64 bit CentOS homer_3 Linux - Distributions 2 09-30-2013 09:45 PM
[SOLVED] CentOS 5.8 64-bit - cannot execute 32-bit binaries jonatan Linux - Software 1 12-12-2012 02:27 AM
LXer: Install HVM FreeBSD 7.0 DomU (32-bit) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) LXer Syndicated Linux News 0 05-01-2008 09:00 PM
LXer: Install Xen 3.1 Solaris domU (64 bit) under CentOS 5 dom0 (64 bit) LXer Syndicated Linux News 0 09-21-2007 01:00 AM


All times are GMT -5. The time now is 09:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration