Midnight Commander problem with zip files (Solved)

Using applications, configuring, problems
Post Reply
Message
Author
MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

Midnight Commander problem with zip files (Solved)

#1 Post by MikeMT »

Puppy Lucid 5.2, frugal install
mc v4.7.0.10
perl v5.10.1

Midnight commander will not open zip file.

In mc, Highlighting a zip file and then Enter sets a big red error banner. The message overruns both sides of the window. This is the visible message: ?local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10

The terminal shows no error message on closing mc.
mc opens tar files OK.

Any ideas on a fix?
Thanks
Last edited by MikeMT on Mon 14 Nov 2011, 20:15, edited 3 times in total.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

MikeMT- are these the files you're running?
Last edited by Semme on Sat 12 Nov 2011, 21:50, edited 1 time in total.

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#3 Post by MikeMT »

Semme,

Right, Those are the files I installed.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#4 Post by Semme »

Sounds like a parsing error, but- guessing it's in /usr/bin/mc.. dump this output:

Code: Select all

ldd /usr/bin/mc
.. and tell me everything's OK..

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#5 Post by MikeMT »

Ok now I see the problem. I had only used Package Manger to to check for dependencies. I had not thought to use ldd.

I know the solution now. Thanks.

[~] ldd /usr/bin/mc
linux-gate.so.1 => (0xffffe000)
libslang.so.2 => /lib/libslang.so.2 (0xb76ef000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb76ea000)
libdl.so.2 => /lib/libdl.so.2 (0xb76e6000)
librt.so.1 => /lib/librt.so.1 (0xb76dd000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0xb7613000)
libpcre.so.0 => /lib/libpcre.so.0 (0xb75e2000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb75c9000)
libc.so.6 => /lib/libc.so.6 (0xb7480000)
libm.so.6 => /lib/libm.so.6 (0xb745a000)
/lib/ld-linux.so.2 (0xb77eb000)
[~]

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

Hey Mike- the fix for the rest of us?

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#7 Post by MikeMT »

I had thought that I would be able to post a fix. I was too confident.
I edited out "Solved."

I thought the problem to be a missing lib or dependency.
The mc.pet I installed was the one listed in the Lucid package manager. I also installed the slang.pet.

So back to square one.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

So.. the same "red error banner?" We'll try'n solve this tmrw....

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#9 Post by MikeMT »

Same red banner . . .

I'll try give it another go tomorrow.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#10 Post by Semme »

Lose the previous build and related pkgs then try the new four-eight..

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#11 Post by MikeMT »

I want to explore the problem more before I try 4.8.

I also use Puppy 4.20 and 4.31. I tried to open a zip in mc in those OSs. mc couldn't open a zip in either OS. However, the error message was a bit more detailed. pointing to mc's extfs files, uzip, and some Perl code.

Will report any good results.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#12 Post by Semme »

Then make sure unzip's installed and confirm line 22 is 1.

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#13 Post by MikeMT »

extfs is found /usr/libexec/mc/extfs.d

Line 22 was 1. unzip was installed.

After tinkering with some mc ini, ext, and extfs files without results. I uninstalled mc 4.7.5 and installed 4.8, and uninstalled slang. the results are the same, but at least I have a better error message, as folllows.

"Inconsistent extfs archive

Can't locate base.pm in @INC (@INC contains; /etc/perl /usr/local/lib/perl5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/perl/5.10/File/Temp.pm line 162.BEGIN failed --cpmpliation aborted at /usr/share/perl/5.10/File/Temp.pm line 162.

Compliation failed in require at /usr/libexec/mc/extfs.d/uzip line 403.

BEGIN failed--compliation aborted at /usr/libexec/mc/extfs.d/uzip line 403."

Translation? Is the problem with Perl or uzip.

I need to qualify the importance level. I am not really that concerned about opening a zip file in mc. In all reality the occasion may never arise again. But when I stumble upon something that gets my curiosity, I kinda chase it.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#14 Post by Semme »

Slang you need, otherwise the problem's with perl. More tmrw..

Burunduk
Posts: 80
Joined: Sun 21 Aug 2011, 21:44

#15 Post by Burunduk »

MikeMT wrote:"Inconsistent extfs archive
Can't locate base.pm in @INC..."
The perl installation in the main sfs is incomplete. The missing base.pm module is in the devx sfs. With the devx sfs loaded, mc does open zip-archives.

Edit: you might try to open the /usr/share/perl/5.10.1/ folder then mount (not load) the devx sfs and copy /usr/share/perl/5.10.1/base.pm from there. This should be enough to make mc work without the devx sfs but I didn't test it thoroughly.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#16 Post by Semme »

Sounds about right. Stick my attachment in /usr/share/perl/5.10.1 and tell us whether there's a 5.10 shortcut folder in /usr/share/perl pointing to the 5.10.1 directory in the same location.. something I think the coding requires. It's possible you're gonna need the "perl-modules" pkg from your PPM to boot..
Attachments
base.pm.gz
(1.84 KiB) Downloaded 169 times

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#17 Post by MikeMT »

Thanks.

I will try it, and let you know.

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#18 Post by MikeMT »

First, I mounted lupu-510.sfs to locate if base.pm. ( I could not mount lupu_520.sfs it was in use and I did not want to shutdown.) However, base.pm is not in Perl in lupu-510.sfs, and I surmise that it is not in 520.

Second, there is a 5.10 symlink to 5.10.1. I copied Semme's base.pm to /usr/share/perl/5.10.1, opened mc, and mc opened a zip file.

Thanks for the excellent help.

Fixed.
Last edited by MikeMT on Mon 14 Nov 2011, 22:43, edited 1 time in total.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#19 Post by Semme »

Great! Opening a zip.. something you might not again be doing :wink: anytime soon, hmm..

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#20 Post by MikeMT »

Aha, a punster.

Post Reply