Midnight Commander problem with zip files (Solved)
Midnight Commander problem with zip files (Solved)
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
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.
MikeMT- are these the files you're running?
Last edited by Semme on Sat 12 Nov 2011, 21:50, edited 1 time in total.
Sounds like a parsing error, but- guessing it's in /usr/bin/mc.. dump this output:
.. and tell me everything's OK..
Code: Select all
ldd /usr/bin/mc
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)
[~]
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)
[~]
Lose the previous build and related pkgs then try the new four-eight..
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.
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.
Then make sure unzip's installed and confirm line 22 is 1.
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.
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.
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.MikeMT wrote:"Inconsistent extfs archive
Can't locate base.pm in @INC..."
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.
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
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.
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.