Re: Install both i586 and x86_64 RPM?



On Wed, 16 Jul 2008 14:59:28 +0000, Jan Wielemaker typed this message:

On 2008-07-16, Nikos Chantziaras <realnc@xxxxxxxx> wrote:
Jan Wielemaker wrote:
I need to build a 32-bit binary of a package that links against JVM on
what is otherwise a 64-bit install of SuSE 11.0. For all other
required libraries there are 32-bit development versions, but not for
Java.

Is there a way to install
suse/i586/java-1_6_0-sun-1.6.0.u6-8.1.i586.rpm alongsite
suse/x86_64/java-1_6_0-sun-1.6.0.u6-8.1.x86_64.rpm?

I guess I can unpack the RPM and install the files, for example
through rpm2cpio. Would that work, and more importantly would it work
without getting into trouble with automatic updates, etc.?

AFAIK, Java is always 32-bit even on openSUSE x86-64. Sun never ported
it to 64-bit.

I guess your info is outdated:

gollem (~) 5_> file
/usr/lib64/jvm/java-1.6.0-sun-1.6.0.u6/jre/lib/amd64/libjava.so
/usr/lib64/jvm/java-1.6.0-sun-1.6.0.u6/jre/lib/amd64/libjava.so: ELF
64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically
linked, not stripped gollem (~) 6_> rpm -qf
/usr/lib64/jvm/java-1.6.0-sun-1.6.0.u6/jre/lib/amd64/libjava.so
java-1_6_0-sun-1.6.0.u6-8.1
gollem (~) 7_>

Cheers --- Jan

Generally, SuSe installs/updates both 32 and 64bit libraries. So, if you
need the java libraries use YaST or zypper to install the JAVA libraries
and resolve dependencies.

zypper search java

if needed
zypper install non-oss-java-32bit
.



Relevant Pages

  • Re: [SLE] Can a native 64-bit CPU run 32-bit code ?
    ... In the following I'm copying my supervisor's suggestion based on a ... previous experience they had at trying to install MARS (A Mongte Carlo ... But it appears you mistakenly attribute your MARS problem with SuSE ... 32 bit libraries, they need those libraries available in a 64 bit ...
    (SuSE)
  • Re: Minimal 10.0 installation
    ... SLES 10 is supposed to be very close to the current Suse 10.0, ... The only problem is that it's configured to install the kitchen sink, ... well as their associated libraries. ... then scroll through ALL of the selections and UNCHECK ...
    (alt.os.linux.suse)
  • Re: [opensuse] To all people who have JAVA problems, please read
    ... SUSE always has screwed up the Java implementation. ... reason why SUSE/Novell can't install Java where it belongs? ... I would vote to have SUSE install Java where it belongs (as defined by ...
    (SuSE)
  • Re: SuSE compatibility problems
    ... It only runs on Redhat. ... Run it on SuSE and you get Glibc ... Did you install the 32-bit or the 64-bit version of SuSE? ... 32-bit support libraries and is only finding the 32-bit versions... ...
    (alt.os.linux.suse)
  • Re: [opensuse] Sun JDK 1.5.10 and JDK 6
    ... instance if I want to install it for all users or just me and ask for ... I've used SuSE ... will have the time to make a rpm for SUSE out of things like java. ... Summary: Java5 Runtime Environment ...
    (SuSE)