Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to update my ruby in cygwin from 1.8.7 to 1.9.2.I have pasted the ruby-1.9.2-p136.tar.gz into the required folder in the home directory.After that i entered this command.

tar xvf ruby-1.9.2-p136.tar.gz. It is throwing errors while unpacking the file..

This is the a sample of the error i got

ruby-1.9.2-p136/win32/winmain.c
tar:ruby-1.9.2-p136/win32/winmain.c:Cannot change ownership to uid 501, gid 20:Invalid Argument.

I got this error on all the files present in rruby-1.9.2-p136.tar.gz.

Can somebody tell me where i am going wrong and the solution for this.

Thanks

share|improve this question

2 Answers 2

up vote 0 down vote accepted

What about using RVM? It removes much of the pain.

share|improve this answer
    
yes it did.I am using ruby on rails on ubuntu right now. –  rogerstone May 31 '11 at 15:52

My guess: your tarball was packed by userid 501, groupid 20. When you unpack it, for some reason it's trying to set the userid and groupid of all the files to those, but you don't have that user/group on your system. It should still unpack though.

As a small test, do something like:

tar -tzvf ruby-1.9.2-p136.tar.gz | head

and see what the user/group of the files are. Odd that it's trying to set that on your output files, since you don't include any perm flags for that.

share|improve this answer
    
I have posted the result of tar -tzvf ruby-1.9.2-p136.tar.gz | head on the link [stackoverflow.com/questions/4959196/… don't yet have the privelege to post pic o/p on the this site –  rogerstone Feb 10 '11 at 18:16
    
can you let me know your comment on this? –  rogerstone Feb 11 '11 at 10:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.