CentOS 6.4: Yum is not showing any 32 bit options for packages to install

centosyum

I did a minimal CentOS 6.4 install (x64) and now I need to install Java JRE 32 bits. However, everywhere I read, I understand the .i386 or .i686 packages should be available by default. I cannot find any tutorial with something like "Add this repo for 32 bit packages" and also I am a newbie with YUM as my experience has been mostly with aptitude and deb packages.

So other than downloading the rpm from the web and using the rpm tool, is there any way to have the option to install 32 bit libraries and binaries from yum?

The reason I need this is to make this particular version of Eclipse (provided by a company for their processor). When I do ./eclipse I get:

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m;
support was removed in 8.0
OpenJDK 64-Bit Server VM warning: You have loaded library
/home/usuario/eSi-RISC/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20130521-0416/eclipse_1506.so
which might have disabled stack guard. The VM will try to fix the
stack guard now.
It's highly recommended that you fix the library with 'execstack -c
<libfile>', or link it with '-z noexecstack'.
Eclipse:
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/usuario/eSi-RISC/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/usuario/eSi-RISC/eclipse//plugins/org.eclipse.platform_4.3.0.v20130605-2000/splash.bmp
-launcher /home/usuario/eSi-RISC/eclipse/eclipse
-name Eclipse
--launcher.library
/home/usuario/eSi-RISC/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20130521-0416/eclipse_1506.so
-startup /home/usuario/eSi-RISC/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.appendVmargs
-exitdata f0003
-product org.eclipse.epp.package.cpp.product vm
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-1.b17.el6.x86_64/jre/bin/java
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/usuario/eSi-RISC/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar

In my other machine (uses debian) I installed java 32 bit and added the line:

-vm /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java

And this made it work. However one of the programs in the toolchain requires a library that I cannot find in Debian. When I asked they told me they have their SDK working in CentOS. However, they did not tell me which architecture. I'm betting it was a 32 bit architecture and this is why I can't get it to work.

I hope this clarifies the problem.

Best Answer

All you usually need to do in order to force the installation of a 32-bit package is to:

yum install package name.i686

This won't work for the java packages, but I don't think you'd need a 32-bit Java JRE... It normally shouldn't matter, but if you need it, you can pull the package down from http://rpm.pbone.net or a CentOS mirror.