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 just installed mc on centOS 6.3 server specifically to edit war files, however, it won't let me browse/open any archive files (zip, war etc)?

share|improve this question

migrated from stackoverflow.com Mar 27 '13 at 9:02

This question came from our site for professional and enthusiast programmers.

    
Are you getting any error messages or other feedback? –  Tim Radcliffe Mar 27 '13 at 9:12

2 Answers 2

I fixed the same problem by removing .magic file in my home directory.

Mc uses "file" command to determine given file type. In my case "file" always returned "data" as a file type - no matter what file I ran it for. I then strace-ed the call and it appeared "file" exited right after checking $HOME/.magic file. As soon as I removed the file, the problem was fixed.

share|improve this answer

One thing it might be:

Check the file /usr/share/mc/extfs/uzip

Change the line

my $op_has_zipinfo = 0;

to

my $op_has_zipinfo = 1;
share|improve this answer
    
thanks, I have already checked this one, and these flags are correctly set-up! –  sdia2000 Mar 27 '13 at 10:15

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.