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

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 :slight_smile:

move the -C to the end of the command and u'll see no error ^^

tar -xzf binary-trees/globus_libtool-*/*.tar.gz -C /usr/local/globus/

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:

gunzip < binary-trees/globus_libtool-*/*.tar.gz | tar xf - -C /usr/local/globus/ 

Thank you jlliagre

tar problem was sloved by download GNUtar and replace System V tar with GNUtar.