problem with tar command in solaris9 on sun U10


 
Thread Tools Search this Thread
Operating Systems Solaris problem with tar command in solaris9 on sun U10
# 1  
Old 08-25-2009
Bug problem with tar command in solaris9 on sun U10

I try to install globus toolkit 4 and have major problem

that's error in tar command while it install by make command

Code:
tar -C /usr/local/globus/ -xzf binary-trees/globus_libtool-*/*.tar.gz
tar: C: unknown function modifier

and it notice me to use tar {c|r|t|u|x}

I think it can't use -z command


and another problem ,I can't use cc command but can use gcc command

how I slove this problem.

Thankyou in advance Smilie
# 2  
Old 08-25-2009
move the -C to the end of the command and u'll see no error ^^
Code:
tar -xzf binary-trees/globus_libtool-*/*.tar.gz -C /usr/local/globus/

# 3  
Old 08-25-2009
System V tar doesn't support the -z option which is Gnu-tar specific. Either use Gnu tar if installed or split the command like this:
Code:
gunzip < binary-trees/globus_libtool-*/*.tar.gz | tar xf - -C /usr/local/globus/

# 4  
Old 08-26-2009
Thank you jlliagre

tar problem was sloved by download GNUtar and replace System V tar with GNUtar.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to recover x86 Solaris 10 u10 boot record/grub menu overwritten by Debian 9?

I installed x86 Solaris 10 update 10 after Windows XP, later I removed xp and installed Debian 9 stretch on the same partition but, Debian couldn't find any other os so it deleted Solaris 10 grub or did something like that I couldn't got. I thought I would be able to recover the lost record by... (0 Replies)
Discussion started by: vectrum
0 Replies

2. Solaris

Can't Log into Solaris 10 u10 due to Pam and DH errors

Dears,, i hope everything is going fine with you,, Yesterday i was trying to log into My Solaris 10 u10 x86 Via SSH , But it showing me many error message and refusing to login even with with the root account and below you can find the error message: # ssh -v root@192.168.10.1... (6 Replies)
Discussion started by: ieee99
6 Replies

3. Solaris

Solaris U10 - Crash OS

Hello, I an triyng to write an emergency procedure, and I need your help, or point of view. I trying to find a way to get connected to an U10 Sun Solaris by the serial port to be able to get access to the system to debug systeme crash before restarting the server. The SUN U10 does not... (3 Replies)
Discussion started by: Aswex
3 Replies

4. UNIX for Dummies Questions & Answers

How to Tar group of Files on Sun OS

How to Tar group of Files on Sun OS? (2 Replies)
Discussion started by: Siva Sankar
2 Replies

5. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

6. Shell Programming and Scripting

tar command dont tar to original directory

HI, if I have a tarfile called pmapdata.tar that contains tar -tvf pmapdata.tar -rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt -rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt -rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies

7. Shell Programming and Scripting

tar doubts - problem with tar

The below tar command works fine for me, tar -cvf - `find ./srcdir -type d` | (cd ./destdir ; tar -xvf - ) but this version is giving error to me: cd ./srcdir && tar -cf - . | gzip -9 | cd ../destdir && gzip -d | tar -xf - error is: gzip: compressed data not read from a terminal.... (2 Replies)
Discussion started by: royalibrahim
2 Replies

8. Solaris

how to tar a directory in a sun solaris?

i have lot of directories which are needed to be transferred to a LINUX workstation. to do this i need to tar the directories. please let me know how to tar the directories in Sun Solaris. (7 Replies)
Discussion started by: mmb
7 Replies

9. UNIX for Dummies Questions & Answers

problem in tar command

i have a tar file that needs to extracted from a file ... i am using the following command zcat /NRS/$tar_name | tar xvfB - ... if i give this command directly in the unix box it works ... but if it try to give it in a script it is failing ... it is unable to extract some files, says it cannot... (1 Reply)
Discussion started by: sais
1 Replies

10. Solaris

GNU tar on SUN 9

I downloaded GNUtar from sunfreeware.con and installed it on a sparc running sun 9. Performed pkgadd -d on the required lib and tar file and everything seemed to be ok. I tried to extract a file from a tar created using the sun version with no success. Tar ran for several hours working on the... (6 Replies)
Discussion started by: thumper
6 Replies
Login or Register to Ask a Question