I had the same sort of problem and this what I did on my 64-bit WNs.
I installed Java with jPackage.
***********************************************************************************
#!/bin/bash
#################################################################
# #
# Java Instal using jPackage for gLite 3.1 WN #
# Santanu Das, Cavendish Laboratory, 09/04/2008 #
# Last Modified : 09/04/2008 #
# #
#################################################################
## Basic declaration
top_dir="/usr/src/redhat"
ver=`lsb_release -r | cut -f2 | sed 's/\.//g'`
arch=`uname -i`
rels=`uname -r`
smp=`echo ${rels} | tr '' \\\n | sed 's/smp//g'`
## Remove the installed Java
rpm -e --nodeps `rpm -qa | grep ^java-1`
## Create YUM configuration for jPackage
cat << EOF > /etc/yum.repos.d/jpackage5.repo
[jpackage17-generic]
name=JPackage 1.7, generic
baseurl=http://www.mirrorservice.org/sites/jpackage.org/1.7/generic/free/
http://mirrors.dotsrc.org/jpackage/1.7/generic/free/
enabled=1
protect=1
gpgkey=http://www.jpackage.org/jpackage.asc
gpgcheck=1
[jpackage17-generic-nonfree]
name=JPackage 1.7, generic non-free
baseurl=http://www.mirrorservice.org/sites/jpackage.org/1.7/generic/non-free/
http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/
enabled=1
protect=1
gpgkey=http://www.jpackage.org/jpackage.asc
gpgcheck=1
[jpackage5-generic]
name=JPackage 5, generic
baseurl=http://www.mirrorservice.org/sites/jpackage.org/5.0/generic/free/
http://mirrors.dotsrc.org/jpackage/5.0/generic/free/
enabled=1
protect=1
gpgkey=http://www.jpackage.org/jpackage.asc
gpgcheck=1
[jpackage5-generic-nonfree]
name=JPackage 5, generic non-free
baseurl=http://www.mirrorservice.org/sites/jpackage.org/5.0/generic/non-free/
http://mirrors.dotsrc.org/jpackage/5.0/generic/non-free/
enabled=1
protect=1
gpgkey=http://www.jpackage.org/jpackage.asc
gpgcheck=1
EOF
## Install GPG key
rpm --import http://www.jpackage.org/jpackage.asc
## Install JPackage Utils first
yum -y install jpackage-utils
## Install SUN JDK (1.5.0.14) with jPackage
cat <<EOF > ~/.rpmmacros
%_topdir /usr/src/redhat
%packager Santanu Das <[log in to unmask]>
EOF
cp /post-config/RPMs/java/jdk-1_5_0_14-linux-amd64.bin ${top_dir}/SOURCES/.
chmod +x ${top_dir}/SOURCES/jdk-1_5_0_14-linux-amd64.bin
rpm -Uvh http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/SRPMS/java-1.5.0-sun-1.5.0.14-1jpp.nosrc.rpm
rpmbuild -ba ${top_dir}/SPECS/java-1.5.0-sun.spec
yum -y localinstall ${top_dir}/RPMS/${arch}/java-1.5.0-{sun,sun-devel}-1.5.0.14-1jpp.${arch}.rpm
yum -y install xerces-j2
mv /etc/java/java.conf /etc/java/java.conf-ORG
sed 's/\#JAVA_HOME/JAVA_HOME/' /etc/java/java.conf-ORG > /etc/java/java.conf
**********************************************************************************************************
I've no problem at all, since then.
Cheers,
Santanu
Andreas Petzold wrote:
> Hi,
>
> we've run into a bit of trouble with java/jdk during gLite 3.1 UI install on
> x86_64. We've enabled all the jpackage repos according to
>
> https://twiki.cern.ch/twiki/bin/view/LCG/GenericInstallGuide310#The_jpackage_and_java_repository
>
> Upon yum update we get the following error:
>
> [root@pktf05 ~]# yum update
> Loading "kernel-module" plugin
> Loading "protectbase" plugin
> Setting up Update Process
> Setting up repositories
> Reading repository metadata in from local files
> 6004 packages excluded due to repository protections
> Resolving Dependencies
> --> Populating transaction set with selected packages. Please wait.
> ---> Package xerces-c.i386 0:2.7.0-1.2.el4.rf set to be updated
> ---> Package java-1.5.0-sun-compat.noarch 0:1.5.0.14-1.sl4.jpp set to be
> updated
> --> Running transaction check
> --> Processing Dependency: jdk = 2000:1.5.0_14-fcs for package:
> java-1.5.0-sun-compat
> --> Processing Dependency: jaxp_parser_impl for package: log4j
> --> Processing Dependency: xml-commons-apis for package: log4j
> --> Restarting Dependency Resolution with new changes.
> --> Populating transaction set with selected packages. Please wait.
> ---> Package xml-commons-jaxp-1.3-apis.noarch 0:1.3.03-14.jpp5 set to be
> updated
> ---> Package crimson.noarch 0:1.1.3-17jpp set to be updated
> --> Running transaction check
> --> Processing Dependency: jdk = 2000:1.5.0_14-fcs for package:
> java-1.5.0-sun-compat
> --> Processing Dependency: xml-commons = 0:1.3.03-14.jpp5 for package:
> xml-commons-jaxp-1.3-apis
> --> Restarting Dependency Resolution with new changes.
> --> Populating transaction set with selected packages. Please wait.
> ---> Package xml-commons.noarch 0:1.3.03-14.jpp5 set to be updated
> --> Running transaction check
> --> Processing Dependency: jdk = 2000:1.5.0_14-fcs for package:
> java-1.5.0-sun-compat
> --> Finished Dependency Resolution
> Beginning Kernel Module Plugin
> Finished Kernel Module Plugin
> Error: Missing Dependency: jdk = 2000:1.5.0_14-fcs is needed by package
> java-1.5.0-sun-compat
> [root@pktf05 ~]# rpm -q jdk
> jdk-1.5.0_14-fcs.i586
>
> According to
>
> http://wiki.egee-see.org/index.php/SL4_WN_glite-3.1
>
> we are supposed to rebuild the rpms ourselves, well no problem - so we
> thought!
>
> We tried to follow the guide using jdk version 1.5.0_14, however the jpackage
> nosrc.rpm for version 1.5.0_14 does no longer exist. Instead, there is a
> nosrc.rpm for version 1.5.0_15 for which we can't find a jdk package from
> SUN. So we changed the spec file of the 1.5.0_15 nosrc.rpm to work with
> version 1.5.0_14 but then we hit a problem with the architecture. We are
> running SL4.6 x86_64 but we want to build the java rpm for i586. Now we are
> stuck. Maybe we have missed an important hint somewhere?
>
> Thanks for your help,
>
> Andreas, Thomas
>
|