You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by carole mazoyer <ca...@Sun.COM> on 2001/03/14 19:53:08 UTC

Installing ant

Hello,

I'm trying to install ant, using the binary edition : 
jakarta-ant-1.3-bin.tar.gz 

When I untar the archive I get this line at the end : 
tar: directory checksum error

And the ant.jar file is missing.

Can you help me?

Thank you in advance,

Carole

Re: Installing ant

Posted by Stefan Bodewig <bo...@apache.org>.
Martin Monsorno <mo...@exolution.de> wrote:

> Are there any particular reasons for gnu-tar extensions?

Yes - we have filenames longer than 100 chars - and there is no
compatible way to include them. So far we have code to include them
the gnu-tar way, but not for the solaris-way.

Stefan

Re: Installing ant

Posted by Stefan Bodewig <bo...@apache.org>.
Bill Burton <bi...@progress.com> wrote:

> Here's a suggestion for the Ant 2 requested-features.txt file:

added.

Re: Installing ant

Posted by Bill Burton <bi...@progress.com>.
Hello,

Here's a suggestion for the Ant 2 requested-features.txt file:

To this item:
* Easier installation process. GUI - maybe webstart from the homepage.

  This includes asking the user whether he wants to use optional tasks
  and downloads the required libs. Automatic upgrades and so on.
Add this:

  Self-extracting jar installer: java -jar jakarta-ant-1.3-bin.jar. 
  Prompts for destination directory, extracts archive, fixes all 
  text files with fixCRLF task; on UNIX, makes scripts executable.  
  Could also modify ant scripts with the location of ANT_HOME.

-Bill

Re: Installing ant

Posted by Bill Burton <bi...@progress.com>.
Hello,

Peter Donald wrote:
> 
> At 08:45  19/3/01 -0500, Bill Burton wrote:
> >Hello,
> >
> >In all the conversation with the problems using tar, the thought occurred
> >to me, "What about cpio?"
> 
> I don't use cpio but is the options standard. ie Would an admin imediately
> know how to extract them ? If so .... all it needs is someone to contribute
> a cpio task ;)

Yes, the options for cpio are standard or at least for the usual ones that I
specified in my last message.  But I don't know how many people use cpio
other than administrators.  For some reason unknown to me, tar has become
the defacto standard for UNIX software distribution despite its technical
limitations with the 100 character limit.  I guess most applications never
ran into that limit until Java came along.

If Ant were to support cpio, it would for now have to execute a native cpio
unless someone knows of (or is willing to write) a Java implementation.  The
cpio on Linux is a GNU version which has been around for years.  Given the
issues with the ASL vs. GPL, it would be better to base an all-Java
implementation on some other version.  For now, I think the effort would be
better spent making Ant's tar work better, i.e. supporting the Solaris
extensions.  How do other UNIX OS vendors support long names in tar?

Going forward, a better solution might be to have a self-extracting .jar
distribution for Ant where you would "run" the jar file causing it to
extract itself then executing a chmod +x on any scripts it knows about.  The
next logical thing would be simple extensions to the jar task making it
easier for people to create their own self-extracting jars.  This could then
become the basis for an Ant based software installation and configuration
scheme.

-Bill

Re: Installing ant

Posted by Peter Donald <do...@apache.org>.
At 08:45  19/3/01 -0500, Bill Burton wrote:
>Hello,
>
>In all the conversation with the problems using tar, the thought occurred
>to me, "What about cpio?"

I don't use cpio but is the options standard. ie Would an admin imediately
know how to extract them ? If so .... all it needs is someone to contribute
a cpio task ;)

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


Re: Installing ant

Posted by Bill Burton <bi...@progress.com>.
Hello,

In all the conversation with the problems using tar, the thought occurred
to me, "What about cpio?"

You can unpack the .tar.gz Linux (which uses GNU tar) with:
    tar -zxvf jakarta-ant-1.3-bin.tar.gz
Then create a compressed cpio archive:
    find jakarta-ant-1.3 |cpio -ocv |gzip -v >jakarta-ant-1.3-bin.cpio.gz
Copy the archive to your Solaris or other machine lacking GNU tar and
unpack it with:
    gzcat jakarta-ant-1.3-bin.cpio.gz |cpio -icmdv
Or, if you have remote shell access to the Solaris machine, run it in a
pipe:
    find jakarta-ant-1.3 |cpio -ocv |
        rsh solaris-box "cd /dir-to-install; cpio -icmd"

-Bill

Conor MacNeill wrote:
> 
> Martin,
> 
> From: "Martin Monsorno" <mo...@exolution.de>
> > Well, good question, after a little testing I finally found
> > out, how I really did it (:-) sorry):
> >
> > I uncompress the tar.gz file on the Linux machine and copy it
> > to the Sun. There I unpack it with Solaris's tar, get a
> > "directory checksum error" message and ignore it.
> > Then I just use ant. Somehow it works, maybe some tasks I do
> > not use are broken, I do not know.
> >
> > A jar-package may work correctly, I will test this, if I will
> > get problems with my solaris installation.
> 
> You can use the zip file from the distribution which should be equivalent
> to a jar. Then you will have no problems with filename lengths but you will
> have problems with file and directory permissions missing the execute bit.
> 
> I am not sure how Sun's tar recovers from the directory checksum error but
> there could be large parts of your distribution missing :-( In particular
> the documentation and code for the <depend> task will be toast.
> 
> You could try getting gnu tar installed on your solaris box (I have mine
> available as gtar) or untar on your Linux box and then transfer to the sun
> in chunks

Re: Installing ant

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Martin,

From: "Martin Monsorno" <mo...@exolution.de>
> Well, good question, after a little testing I finally found
> out, how I really did it (:-) sorry):
>
> I uncompress the tar.gz file on the Linux machine and copy it
> to the Sun. There I unpack it with Solaris's tar, get a
> "directory checksum error" message and ignore it.
> Then I just use ant. Somehow it works, maybe some tasks I do
> not use are broken, I do not know.
>
> A jar-package may work correctly, I will test this, if I will
> get problems with my solaris installation.

You can use the zip file from the distribution which should be equivalent
to a jar. Then you will have no problems with filename lengths but you will
have problems with file and directory permissions missing the execute bit.

I am not sure how Sun's tar recovers from the directory checksum error but
there could be large parts of your distribution missing :-( In particular
the documentation and code for the <depend> task will be toast.

You could try getting gnu tar installed on your solaris box (I have mine
available as gtar) or untar on your Linux box and then transfer to the sun
in chunks



Re: Installing ant

Posted by Martin Monsorno <mo...@exolution.de>.
Conor MacNeill wrote:
> 
> > Are there any particular reasons for gnu-tar extensions?
> >
> > I'm using ant on a solaris workstation with no gnu tar
> > installed, so I download the ant package, unpack it on a
> > Linux box, pack it again, move it to the sun where I
> > can install it now.
> 
> How do you pack it up again on the Linux box?

Well, good question, after a little testing I finally found
out, how I really did it (:-) sorry):

I uncompress the tar.gz file on the Linux machine and copy it
to the Sun. There I unpack it with Solaris's tar, get a 
"directory checksum error" message and ignore it.
Then I just use ant. Somehow it works, maybe some tasks I do
not use are broken, I do not know.

A jar-package may work correctly, I will test this, if I will
get problems with my solaris installation.

-- 
Martin Monsorno
mailto:Martin.Monsorno@exolution.de

Re: Installing ant

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
> Are there any particular reasons for gnu-tar extensions?
> 
> I'm using ant on a solaris workstation with no gnu tar
> installed, so I download the ant package, unpack it on a
> Linux box, pack it again, move it to the sun where I
> can install it now.

How do you pack it up again on the Linux box?


Re: Installing ant

Posted by Martin Monsorno <mo...@exolution.de>.
Are there any particular reasons for gnu-tar extensions?

I'm using ant on a solaris workstation with no gnu tar
installed, so I download the ant package, unpack it on a
Linux box, pack it again, move it to the sun where I
can install it now.

Conor MacNeill wrote:
> 
> Carole,
> 
> You need to use a gnu compatible version of tar.
> 
> The details are here
> http://jakarta.apache.org/builds/ant/release/v1.3/
> 
> Conor
> 
> ----- Original Message -----
> From: "carole mazoyer" <ca...@Sun.COM>
> To: <an...@jakarta.apache.org>
> Sent: Thursday, March 15, 2001 5:53 AM
> Subject: Installing ant
> 
> > Hello,
> >
> > I'm trying to install ant, using the binary edition :
> > jakarta-ant-1.3-bin.tar.gz
> >
> > When I untar the archive I get this line at the end :
> > tar: directory checksum error
> >
> > And the ant.jar file is missing.
> >
> > Can you help me?
> >
> > Thank you in advance,
> >
> > Carole
> >

-- 
Martin Monsorno
mailto:Martin.Monsorno@exolution.de

Re: Installing ant

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Carole,

You need to use a gnu compatible version of tar.

The details are here
http://jakarta.apache.org/builds/ant/release/v1.3/


Conor

----- Original Message ----- 
From: "carole mazoyer" <ca...@Sun.COM>
To: <an...@jakarta.apache.org>
Sent: Thursday, March 15, 2001 5:53 AM
Subject: Installing ant


> Hello,
> 
> I'm trying to install ant, using the binary edition : 
> jakarta-ant-1.3-bin.tar.gz 
> 
> When I untar the archive I get this line at the end : 
> tar: directory checksum error
> 
> And the ant.jar file is missing.
> 
> Can you help me?
> 
> Thank you in advance,
> 
> Carole
>