Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar? 1

Status
Not open for further replies.

wlf

Technical User
Joined
Sep 25, 2002
Messages
47
Location
US
Hi, I'm installing flex on solaris 8. According instruction:

3. Untar the distribution file
Copy the decompressed tar file into a suitable source directory and untar it:

# mkdir -p /opt/source/flex
# cp /opt/temp/flex* /opt/source/flex
# cd /opt/source/flex
# tar xvf flex*

When I type tar xvf flex* and following error occurs.
# tar xvf flex*
tar: directory checksum error

Please help, Thanks. -wolf
 
Try to type the fullname of file instead of asterisk sign.

tikual
 
your tarball is incomplete, retransmit the tarball from the original source! Is the source a Solaris System, too? I remember that GNUtar and SUNtar did not work together properly; ask the source to use SUN's tar

(it might be usefull to uuencode the tarball, eg:
tar cvf tarball.tar thesefiles/*
uuencode tarball.tar tarball.tar > tarball.tar.uu
-> transfere tarball.tar.uu
uudecode tarball.tar.uu
-> there is a tarball.tar in the current directory)

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
 
The other thing which might have an influence is whether you ftp'd the file as ascii. If so, try doing it in binary mode and it might make a difference. Happy New year!
 
Thanks for your replies. I tried all and no luck. I don't understand tarball.tar, and I tried following
# tar cvf tarball.tar flex*
# ls
flex*-local tarball.tar
# uuencode tarball.tar tarball.tar > tarball.tar.uu
# ls
flex*-local tarball.tar tarball.tar.uu
# uudecode tarball.tar.uu
# ls
flex*-local tarball.tar tarball.tar.uu

What to do next? tarball.tar.uu is unreadable.

How to follow the following direction to install flex with tarball.tar.uu?
4. Compile and install flex
Compiling and installing flex is simply a matter of issuing the following commands:

# cd /opt/source/flex/flex-2.5.4
# ./configure
# make
# make check
# make install
Thanks. -wolf
 
# uuencode tarball.tar tarball.tar > tarball.tar.uu
# ls
flex*-local tarball.tar tarball.tar.uu

strange, you have a file or dir named "flex*-local"? -> please check this
anyway, you can savely transfere a uuencoded file tarball.tar.uu via ftp to your destination host,
as KEN metioned, ascii transfere would harm a binary file, but it does not harm a uuencoded file, since it contains only 7bit-ASCII


# uudecode tarball.tar.uu


Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
 
Where did you download this from? You can get it from which I've used quite often and have had no problems. I never had to use uuencode, only gzip to unzip the file that is downloaded. And you can get the binary already created at this site and not have to go through compiling the program if you don't want to.

I agree with DaFranze and KenCunningham -- it looks as if what you downloaded is not complete (thus the checksum error) or it was done as ascii, not binary ftp.
 
Thanks for your replies. I download the flex from on a w2k pc and then ftp as binary to the server. I tried twice to make sure the downloaded file is okay. I did same on gcc with no problem. I gunzip it on the server and that's why there is a file flex*-local on that. I followed daFranze's direction(as following) since I hit tar: directory checksum error.

# tar cvf tarball.tar flex*
# uuencode tarball.tar tarball.tar > tarball.tar.uu
# uudecode tarball.tar.uu

What to do with tarball.tar.uu in installation of flex? If uudecode tarball.tar.uu is the installation how to know if flex is installed alright? I need more detailed direction since I don't have much exp on Solaris. Thanks.
 
@wfl

to uuencode a file is just a wrapper, an envelope, a way to send a binary file to someone who's equipment does not allow binary (8bit); after sending/transfering you remove the envelope by typing uudecode.

binfile -> uuencode -> send -> uudecode -> binfile

I will try to download the flex package from sunfreeware and gunzip it...



Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
 
ok, I downloaded the File from German Sunfreeware Mirror and it untared without any problem; I uuencoded the file and uploaded it to my ftp Server


you may download if you like; you have my word, I did not change anything to the original version I got from sunfreeware, so you may install, if you like by typing

uudecode flex-2.5.4a-sol8-sparc-local.uu
pkgadd -d ./flex-2.5.4a-sol8-sparc-local

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
 
Thanks for your help deFranze. Forgot let you know I'm on solairs 8 intel, not sparc. flex-2.5.4a-sol8-intel-local is the one I need. Thanks again.
 
@wfl

do you still need it? If yes, please make a short post and I will download and repost another URL to download...

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
 
Franz, I still need it. Thanks a lot. -wolf
 
sorry wolf, I had to put up a cupboard (made or at least designed in Sweden... ;-) yesterday....

ok, the package is available under

again, I just downloaded the file, uncompressed and uuencoded it

Hope it helps!


Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
 
Franz,

Thanks so much for your help. It works perfectly. -wolf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top