From: Kshitij Shashank Limaye [mailto:[EMAIL PROTECTED]
Sent: Thu 11/08/2005 23:05
To: Bernard Li
Cc: [email protected]
Subject: RE: [Oscar-devel] Question regarding Oscar Packaging
Hello Bernard,
I got hold of a machine with FC3 and
rebuilt the rpms on it
apache-ant and junit installed fine on it. There is
problem while installing
Globus.
As I had mentioned that Globus needed
the JAVA_HOME and ANT_HOME paths
set to be
installed. So I saw that they
were set by doing an
echo $ANT_HOME and JAVA_HOME respectively.
When I
start the Globus installation. I need to go to the untarred dir
and
then
do somehting like this
]./install_gt3 /opt/globus/gt3.2
If I
do this step myself by going to that dir it works fine.
But when I issue this
command from the python script it gives me this problem
Build
environment:
/opt/globus/gt3.2-all-source-installer/install-gt3: line 105:
type: ant: not
found
You need a working version of ant.
Build
environment:
/opt/globus/gt3.2-all-source-installer/install-gt3-mmjfs: line
105: type: ant:
not found
You need a working version of ant.
It
does not find ant while if I do myself from command line the
setup
proceeds.
I tried with absolute path too. But it still has the sam
problem. In
/etc/profile the JAVA_HOME and ANT_HOME are set.
This is while
doing manually:
[EMAIL PROTECTED] gt3.2-all-source-installer]# ./install-gt3
../gt3.2
Build environment:
ant is /opt/apache-ant-1.6.2/bin/ant
java
is /usr/bin/java
gcc is /usr/bin/gcc
Have you faced such a problem
before. I will look into it tommorow. This is my
status till now.
Here
is my install code snippet
def install_gt3():
gt3_path =
'/opt/globus'
gt3_exec = 'gt3.2-all-source-installer.tar.gz'
gt3_ver =
'gt3.2-all-source-installer'
export = 'export GLOBUS_LOCATION='+ gt3_path +
'/gt3.2'
gpt_export = 'export GPT_LOCATION='+ gt3_path + '/gt3.2'
path =
'PATH=$PATH:$GLOBUS_LOCATION/sbin:$GLOBUS_LOCATION/bin'
last = 'export
PATH'
os.chdir(gt3_path)
os.system('tar -xvzf %s'%gt3_exec)
pwd =
commands.getoutput('pwd')
os.chdir(gt3_path + '/' +
gt3_ver)
os.system('./install-gt3
%s/gt3.2'%gt3_path)
os.system('./install-gt3-mmjfs
%s/gt3.2'%gt3_path)
os.chdir(pwd)
Regards,
Kshitij
Quoting
Bernard Li <[EMAIL PROTECTED]>:
> Hey Ksh:
>
> Have you
tried the java that shipped with Fedora Core 3? It is not from
>
Sun, but it might do the trick? Might be worth trying to use the
RPM
> provided the vendor, rather than making your own.
>
>
Cheers,
>
> Bernard
>
>
>
________________________________
>
>
From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
On Behalf Of Bernard Li
> Sent: Sunday,
August 07, 2005 22:19
> To: Kshitij
Limaye
> Cc:
[email protected]
>
Subject: RE: [Oscar-devel] Question regarding Oscar
Packaging
>
>
> Hi
Ksh:
>
> This is a bit
tricky... for the beta package, can we just
> assume that we always
install java and apache-ant packages? Let's say
> we install both
packages in /opt, and we don't clobber the environment
> variables, I
think that it should be safe...
>
>
Comments on config.xml:
>
> -
<url> should be the URL of the project webpage
>
- We will no longer support Red Hat Linux 9 in
the next release
> (OSCAR 4.2), and for OSCAR 4.3/5.0, Fedora Core 2 will
probably be
> deprecated as well...
>
- for <rpm> tag, you only need the name of the RPM, no need to
>
fill in version info + arch, eg. 'ant-oscar1.0-1.i386.rpm' should really
>
be 'ant-oscar'
>
>
Cheers,
>
> Bernard
>
>
________________________________
>
>
From: Kshitij Limaye [mailto:[EMAIL PROTECTED]]
>
Sent: Thu 04/08/2005 19:55
>
To: Bernard Li
>
Cc: [email protected]
>
Subject: Re: [Oscar-devel] Question regarding
Oscar Packaging
>
>
>
>
Hello Bernard,
> So can we check this in
the setup/preconfigure script and
> dynamically
>
decide which rpm to install. Do we use this
script to remove the
> install
> line
in config.xml or there would a more graceful way to do it?
> The
>
howto didnt explain the format for
pre-configure,so do let me
> know how
>
we go about doing this.
>
>
I am pasting the config.xml in the mail itself, I
dont know why
> it isnt
> sending the
attachement or is it inlining it.
>
<?xml version="1.0" encoding="ISO-8859-1"?>
>
<oscar>
>
<name>Globus Toolkit</name>
>
<version>
>
<major>3</major>
>
<minor>2</minor>
>
<subversion>1</subversion>
>
<release>1</release>
>
<epoch>1</epoch>
>
</version>
>
<class>third-party</class>
>
<summary>Globus Toolkit 3.2
Installer</summary>
>
<license>GPL</license>
>
<group>Application/System</group>
>
> <url>http://www-unix.globus.org/toolkit/survey/index.php?download=gt3.2-
>
all-source-installer.tar.gz</url>
>
<packager>
> <name>Kshitij
Limaye</name>
>
<email>[EMAIL PROTECTED]</email>
>
</packager>
>
<description> Globus Toolkit has become a
defacto standard for
> Grid
>
installtions. This package installs the the needed pre-requisite
>
softwares and the Globus Toolkit version 3.2 on
the head node of
> the
> OSCAR
Cluster.
> </description>
>
<rpmlist>
>
<filter group="oscar_server"
distribution="redhat"
>
distribution_version="9" architecture='ia32'/>
>
<rpm>ant-oscar1.0-1.i386.rpm</rpm>
>
<rpm>junit-oscar1-.0-1.i386.rpm</rpm>
>
<rpm>gt-oscar-3.2-1.i386.rpm</rpm>
>
</rpmlist>
>
</oscar>
>
>
I hope you do get to see this config.xml
;^)
>
> Regards,
>
Kshitij
>
Bernard Li wrote:
>
> > Hi
Kshitij:
> > Perhaps as part of your
scripts, you can check to see if
> JAVA_HOME is
>
> already set. Also, you can do something like
'which java' to
> see if
> > java
is in the search path (same with apache-ant). I guess you
> can
>
> install the java/apache-ant RPMs as a last
resort, if you
> cannot
> > easily
search for the required binaries.
> >
BTW, I still didn't see the config.xml... :)
>
> Cheers,
>
> Bernard
>
>
>
>
>
------------------------------------------------------------------------
>
>
**
>
>
>
>
>
----------------------------------------------------------------
This
message was sent using IMP, the Internet Messaging
Program.
