Operating System - HP-UX
1829101 Members
2602 Online
109986 Solutions
New Discussion

an issue with installing and untarring the apache tar ball files (ant installation)

 
SOLVED
Go to solution
praveen..
Super Advisor

an issue with installing and untarring the apache tar ball files (ant installation)

I had an issue installing and untarring the apache tar ball files which
were downloaded from the apache ant website. Here is a list of some of
the errors.

1. The tar file was in gzip format and upon gunzip'ing it on my server it
had not problem.

2. When I untarred it using /usr/bin/tar (which is native tar cmd) it
errored out with the following:

tar -xvf apache-ant-1.6.5-bin.tar



directory checksum error

Upon this I did some investigation as to why the error occurred and I
found some info which suggested that we use the GNU version of tar to
untar the file. I did so and loaded version GNU tar 1.5.1 for HPUX 11.23
onto my server and then proceeded to re-install again using
/usr/local/bin/tar -xvf apache-ant-1.6.5-bin.tar and this time it
errored out with the following:
/usr/lib/hpux32/dld.so: Unable to find
library 'libintl.so'
Killed.

I figured that maybe the tar file did not copy correctly so I once again
downloaded the file from the Apache site and proceeded with the above
steps which resulted with the same outcome.

I also tried to build and install it following the Apache ANT document
but the build.sh and other libraries were not found.

please suggest what to do?

Thanks



10 REPLIES 10
Darrel Louis
Honored Contributor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

Hi Praveen,

It could be that the file is corrupt.
When you download the file how do you ftp it to the Unix server "Binary or ASCII"?

Darrel
Jeff_Traigle
Honored Contributor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

When you install GNU tar, you need to install the run-time dependencies listed on the Porting Center page for it. For tar, it lists "libgcc gettext libiconv" as run-time dependencies. Install those and you should be good.
--
Jeff Traigle
Sung Oh
Respected Contributor
Solution

Re: an issue with installing and untarring the apache tar ball files (ant installation)

Hi Praveen,

I would run the "file" command on the tar.gz file and if the tar.gz file should be "gzip compressed data"

Also use md5sum for file download.

Lastly, you should try using "tar -xvzf" for untar the file without using gunzip.

Regards,
Sung

Sung Oh
Respected Contributor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

forgot to give you an example.

#tar -xvzf apache-ant-1.6.5-bin.tar.gz

Sung
Torsten.
Acclaimed Contributor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

I guess this is a corrupt download. I would clear the cache and download from http://software.hp.com or have a look on my hp cd collection. You will find a pretty apache depot there, if you search for "apache" (some info about the name here: http://en.wikipedia.org/wiki/Apache_HTTP_Server)
;-))

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

Just my 2 cents in addition:

My answer to software related questions: I don't want to have the latest one, I want to have a solid one.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
praveen..
Super Advisor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

hi,
Apache is already installed and running on the server.



hpuxwsApache B.1.0.06.01 HP-UX Apache-based Web Server

hpuxwsTomcat B.1.0.06.01 HP-UX Tomcat-based Servlet Engine



hpuxwsWebmin A.1.0.06.01 HP-UX Webmin-based Admin

hpuxwsXml A.1.0.06.01 HP-UX XML Web Server Tools



With regards to you question about how it was downloaded. It was ftpâ ed over onto the server using binary format.
Also, the tar -xvzf apache-ant-1.6.5-bin.tar.gz command which you suggested also errors out without the use of gunzip option.

root@server:[/usr/local]# /usr/local/bin/tar -xvzf apache-ant-1.6.5-bin.tar.gz



/usr/lib/hpux32/dld.so: Unable to find library 'libintl.so'.

Killed


please suggest what to do?
praveen..
Super Advisor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

can anybody please help me
Arunvijai_4
Honored Contributor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

Hi,

Better download and install a copy from Internet Express Ant, it doesn't have any prerequisites to be installed,

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
JASH_2
Trusted Contributor

Re: an issue with installing and untarring the apache tar ball files (ant installation)

Praveen,

I have just got my gnu tar working today, these are the steps that I took:-

From http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.15.1/
Down load the depot files for your version of HPUX for:-
gcc
gettext
libiconf
make
libgcc

then
tar.1.15.1 itself.

Tansfer to your unix machine and gunzip all the depot files.

Swinstall all the depots except the tar.1.15.1

Do a find on libiconv.sl and libintl.sl and see if you have a copy of both in /usr/local/lib, if not link a copy from where they are to /usr/local/lib ie:-

#pwd
/usr/local/lib
#ln -s /opt/gnome/lib/libiconv.sl libiconf.sl


Swinstall the tar.1.15.1

Then :-

/usr/local/bin/tar -xvf apache-ant.....

Will then work perfectly, mine did.
If I can, I will!