* how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? @ 2021-06-02 2:57 L A Walsh 2021-06-02 4:32 ` Brian Inglis 2021-06-02 5:47 ` ASSI 0 siblings, 2 replies; 5+ messages in thread From: L A Walsh @ 2021-06-02 2:57 UTC (permalink / raw) To: cygwin This is getting really icky... updated cygwin and it reinstalled a new version of perl, but when I try to run any perl progs nothing runs (see below). So I'd like to try to reinstall all the cygwin perl-mods that I have installed. How can I select "all" among the perl mods? and install? I can select for only the "installed" perl mods, but how can I tell it to reinstall all of them? According to /etc/setup, there are about 202 modules that need to be reinstalled, but I don't see howto tell setup to re-install all the "installed" modules (so I can be sure they are all "refreshed". Thanks (errors from 2 of my local perl progs, "pcalc" and "dedup") and trying cpan....which also doesn't work. :-( > pcalc Segmentation fault (core dumped) ##### Trying perldb: > perl -d pcalc Loading DB routines from perl5db.pl version 1.57 Editor support available. Enter h or 'h h' for help, or 'man perldebug' for more help. Signal SEGV at /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Term/Size.pm line 14. require Term/Size.pm called at pcalc line 26 main::BEGIN() called at /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Term/Size.pm line 0 eval {...} called at /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Term/Size.pm line 0 #### Another prog: > dedup Can't locate Carp/Always.pm in @INC (you may need to install the Carp::Always module)... #### Try cpan: > cpan Can't locate ExtUtils/MakeMaker/version/vpp.pm in @INC (you may need to install the ExtUtils::MakeMaker::version::vpp module) (@INC contains: /bin/lib /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads /usr/local/share/perl5/site_perl/5.32 /usr/lib/perl5/vendor_perl/5.32/x86_64-cygwin-threads /usr/share/perl5/vendor_perl/5.32 /usr/lib/perl5/5.32/x86_64-cygwin-threads /usr/share/perl5/5.32) at (eval 11) line 1. BEGIN failed--compilation aborted at (eval 11) line 1. Compilation failed in require at /usr/share/perl5/5.32/ExtUtils/MakeMaker.pm line 10. BEGIN failed--compilation aborted at /usr/share/perl5/5.32/ExtUtils/MakeMaker.pm line 10. Compilation failed in require at /usr/share/perl5/5.32/CPAN.pm line 48. BEGIN failed--compilation aborted at /usr/share/perl5/5.32/CPAN.pm line 48. Compilation failed in require at /usr/share/perl5/5.32/App/Cpan.pm line 290. BEGIN failed--compilation aborted at /usr/share/perl5/5.32/App/Cpan.pm line 290. Compilation failed in require at /bin/cpan line 10. BEGIN failed--compilation aborted at /bin/cpan line 10. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? 2021-06-02 2:57 how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? L A Walsh @ 2021-06-02 4:32 ` Brian Inglis 2021-06-02 19:04 ` L A Walsh 2021-06-02 5:47 ` ASSI 1 sibling, 1 reply; 5+ messages in thread From: Brian Inglis @ 2021-06-02 4:32 UTC (permalink / raw) To: cygwin On 2021-06-01 20:57, L A Walsh wrote: > This is getting really icky... > updated cygwin and it reinstalled a new version of perl, > but when I try to run any perl progs nothing runs (see below). > So I'd like to try to reinstall all the cygwin > perl-mods that I have installed. > How can I select "all" among the perl mods? and install? > I can select for only the "installed" perl mods, but how can > I tell it to reinstall all of them? > According to /etc/setup, there are about 202 modules that need > to be reinstalled, but I don't see howto tell setup to re-install > all the "installed" modules (so I can be sure they are all "refreshed". $ grep ^perl- /etc/setup/installed.db | cut -d' ' -f1 | paste -d, -s perl-Algorithm-Diff,perl-Authen-SASL,perl-Authen-SASL-XS,... ...,perl-namespace-autoclean,perl-namespace-clean $ wget -NP /tmp/ https://cygwin.com/setup-x86_64.exe $ cygstart /tmp/setup-x86_64 -fgnqrP \ `grep ^perl- /etc/setup/installed.db | cut -d' ' -f1 | paste -d, -s` -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? 2021-06-02 4:32 ` Brian Inglis @ 2021-06-02 19:04 ` L A Walsh 0 siblings, 0 replies; 5+ messages in thread From: L A Walsh @ 2021-06-02 19:04 UTC (permalink / raw) To: cygwin On 2021/06/01 21:32, Brian Inglis wrote: > $ grep ^perl- /etc/setup/installed.db | cut -d' ' -f1 | paste -d, -s > perl-Algorithm-Diff,perl-Authen-SASL,perl-Authen-SASL-XS,... > ...,perl-namespace-autoclean,perl-namespace-clean > $ wget -NP /tmp/ https://cygwin.com/setup-x86_64.exe > $ cygstart /tmp/setup-x86_64 -fgnqrP \ > `grep ^perl- /etc/setup/installed.db | cut -d' ' -f1 | paste -d, -s` ---- Thanks, mostly. It did try to install them, but the solver was/is too smart, it comes up with 2 solutions 1/2 to uninstall 5.32, install 5.30-x and a bunch of other modules, and (2/2) (Default) Don't uninstall 5.30 and keep 5.32. I think the db-base in /etc/setup contains all the 5.32 compat modules -- so it basically saw all those uninstalls/reinstall and just told me it was taking the easier path! ;-) How does one pick a non-default choice at that point (not that this was the only problem -- seems I have existing modules installed in 5.32 under a local site_lib directory. Problem there is that the existing modules there don't link: HiRes.c: loadable library and perl binaries are mismatched (got handshake key 0x 800000770, needed 0x0) But if i just push that dir out of the way, the 1st prog I tried (pcalc that led to me trying cpan which didn't work) now works, however the 2nd prog "dedup", wouldn't work because of a missing prereq from CPAN which won't make: > dedup Can't locate POSIX/RT/Semaphore.pm in @INC (you may need to install the POSIX::RT::Semaphore module) --- Tried making that, but I don't think it is compatible with 5.32 due to incompatible changes in perl (vaguely remember something like that, but not sure...) But it fails with: > cpan -i POSIX::RT::Semaphore Loading internal logger. Log::Log4perl recommended for better logging CPAN::SQLite not installed, trying to work without Reading '/Share/CPAN/Metadata' Database was generated on Tue, 01 Jun 2021 01:29:03 GMT Running install for module 'POSIX::RT::Semaphore' CPAN: LWP::UserAgent loaded ok (v6.54) Fetching with LWP: http://mirrors.kernel.org/CPAN/authors/id/M/MJ/MJP/POSIX-RT-Semaphore-0.05.tar.gz CPAN: YAML loaded ok (v1.30) CPAN: Digest::SHA loaded ok (v6.02) Fetching with LWP: HASH(0x811899ad8)authors/id/M/MJ/MJP/CHECKSUMS Fetching with LWP: HASH(0x811899ad8)authors/id/M/MJ/MJP/CHECKSUMS.gz Fetching with LWP: http://mirrors.kernel.org/CPAN/authors/id/M/MJ/MJP/CHECKSUMS CPAN: Compress::Zlib loaded ok (v2.093) Checksum for /Share/CPAN/sources/authors/id/M/MJ/MJP/POSIX-RT-Semaphore-0.05.tar.gz ok CPAN: Archive::Tar loaded ok (v2.36) CPAN: CPAN::Meta::Requirements loaded ok (v2.140) CPAN: Parse::CPAN::Meta loaded ok (v2.150010) CPAN: CPAN::Meta loaded ok (v2.150010) Configuring M/MJ/MJP/POSIX-RT-Semaphore-0.05.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for POSIX::RT::Semaphore Writing MYMETA.yml and MYMETA.json MJP/POSIX-RT-Semaphore-0.05.tar.gz /usr/bin/perl Makefile.PL -- OK Running make for M/MJ/MJP/POSIX-RT-Semaphore-0.05.tar.gz CPAN: Module::CoreList loaded ok (v5.20210123) cp Semaphore.pm blib/lib/POSIX/RT/Semaphore.pm Running Mkbootstrap for Semaphore () "/usr/bin/perl.exe" "/usr/share/perl5/5.32/ExtUtils/xsubpp" -typemap '/usr/share/perl5/5.32/ExtUtils/typemap' -typemap '/var/cache/CPAN/build/POSIX-RT-Semaphore-0.05-2/typemap' Semaphore.xs > Semaphore.xsc chmod 644 "Semaphore.bs" "/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' -- Semaphore.bs blib/arch/auto/POSIX/RT/Semaphore/Semaphore.bs 644 mv Semaphore.xsc Semaphore.c gcc -c -I. -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2 -pipe -Wall -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/mnt/share/cygpkgs/perl/perl.x86_64/build=/usr/src/debug/perl-5.32.1-1 -fdebug-prefix-map=/mnt/share/cygpkgs/perl/perl.x86_64/src/perl-5.32.1=/usr/src/debug/perl-5.32.1-1 -fwrapv -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" "-I/usr/lib/perl5/5.32/x86_64-cygwin-threads/CORE" -DHAVE_SEM_DESTROY -DHAVE_SEM_GETVALUE -DHAVE_SEM_INIT -DHAVE_SEM_OPEN -DHAVE_SEM_POST -DHAVE_SEM_TIMEDWAIT -DHAVE_SEM_TRYWAIT -DHAVE_SEM_UNLINK -DHAVE_SEM_WAIT Semaphore.c Semaphore.c: In function ‘XS_POSIX__RT__Semaphore_unlink’: Semaphore.c:269:8: warning: variable ‘pkg’ set but not used [-Wunused-but-set-variable] 269 | char* pkg; | ^~~ Semaphore.c: In function ‘XS_POSIX__RT__Semaphore__Unnamed_init’: Semaphore.c:586:8: warning: variable ‘pkg’ set but not used [-Wunused-but-set-variable] 586 | char* pkg; | ^~~ Semaphore.c: In function ‘XS_POSIX__RT__Semaphore__Named_open’: Semaphore.c:686:8: warning: variable ‘pkg’ set but not used [-Wunused-but-set-variable] 686 | char* pkg; | ^~~ At top level: Semaphore.xs:92:1: warning: ‘function_not_implemented’ defined but not used [-Wunused-function] 92 | function_not_implemented(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ rm -f blib/arch/auto/POSIX/RT/Semaphore/Semaphore.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong Semaphore.o -o blib/arch/auto/POSIX/RT/Semaphore/Semaphore.dll \ /usr/lib/perl5/5.32/x86_64-cygwin-threads/CORE/cygperl5_32.dll -lrt \ chmod 755 blib/arch/auto/POSIX/RT/Semaphore/Semaphore.dll Manifying 1 pod document MJP/POSIX-RT-Semaphore-0.05.tar.gz /usr/bin/make -j -j -- OK CPAN: CPAN::DistnameInfo loaded ok (v0.12) Running make test for MJP/POSIX-RT-Semaphore-0.05.tar.gz "/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' -- Semaphore.bs blib/arch/auto/POSIX/RT/Semaphore/Semaphore.bs 644 PERL_DL_NONLAZY=1 "/usr/bin/perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01util.t ................ ok t/can.t ................... UNIVERSAL does not export anything at t/can.t line 10. BEGIN failed--compilation aborted at t/can.t line 10. # Looks like your test exited with 255 before it could output anything. t/can.t ................... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 26/26 subtests t/ctors.t ................. ok t/fork-inherit-named.t .... ok t/fork-inherit-unnamed.t .. ok t/fork-reopen.t ........... ok t/invalid.t ............... ok t/named.t ................. ok t/pod.t ................... ok t/threaded.t .............. ok t/unnamed.t ............... ok t/use_basic.t ............. ok t/use_consts.t ............ ok Test Summary Report ------------------- t/can.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 26 tests but ran 0. Files=13, Tests=170, 5 wallclock secs ( 0.09 usr 0.05 sys + 1.07 cusr 0.92 csys = 2.14 CPU) Result: FAIL Failed 1/13 test programs. 0/170 subtests failed. make: *** [Makefile:1026: test_dynamic] Error 255 MJP/POSIX-RT-Semaphore-0.05.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports MJP/POSIX-RT-Semaphore-0.05.tar.gz -------------------------------- Trying to use the old 5.32 tree a fall back for anything that fell to relying on /usr/local/lib/perl5/site_perl/5.32, I get the mistmatched nonsense..(damn**) HiRes.c: loadable library and perl binaries are mismatched (got handshake key 0x800000770, needed 0x0) **-now perl libs are checking for version mismatches at dl-load time? ARG! - it seems it used to work before this update, but is this a new 5.32 update? Got handshake key 0x800000770, needed 0x0? what does that hex code mean? or what version was/is it looking for? Sigh...where are the flags to 'setup' documented? Last time I tried setup.exe -h, it just hopped into the standard download dialogues... Thanks! ;^) (sigh) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? 2021-06-02 2:57 how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? L A Walsh 2021-06-02 4:32 ` Brian Inglis @ 2021-06-02 5:47 ` ASSI 2021-06-02 19:05 ` L A Walsh 1 sibling, 1 reply; 5+ messages in thread From: ASSI @ 2021-06-02 5:47 UTC (permalink / raw) To: cygwin L A Walsh writes: > updated cygwin and it reinstalled a new version of perl, > but when I try to run any perl progs nothing runs (see below). > > So I'd like to try to reinstall all the cygwin > perl-mods that I have installed. You didn't say how you updated Cygwin, but if you used setup then it already did exactly that. > How can I select "all" among the perl mods? and install? > > I can select for only the "installed" perl mods, but how can > I tell it to reinstall all of them? I'm not sure I understand your question, but how would you re-install a not installed module? > According to /etc/setup, there are about 202 modules that need > to be reinstalled, but I don't see howto tell setup to re-install > all the "installed" modules (so I can be sure they are all "refreshed". Again, they already should be. > Thanks > > (errors from 2 of my local perl progs, "pcalc" and "dedup") > and trying cpan....which also doesn't work. :-( > > > >> pcalc > Segmentation fault (core dumped) Well, I'm afraid I can't help you with an error so non-specific. > ##### Trying perldb: >> perl -d pcalc > > Loading DB routines from perl5db.pl version 1.57 > Editor support available. > Enter h or 'h h' for help, or 'man perldebug' for more help. > > Signal SEGV at > /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Term/Size.pm > line 14. None of the stuff in /usr/local/ comes from Cygwin, that was all put there by yourself. How about you move that away first? > require Term/Size.pm called at pcalc line 26 > main::BEGIN() called at > /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Term/Size.pm > line 0 > eval {...} called at > /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Term/Size.pm > line 0 > > #### Another prog: >> dedup > Can't locate Carp/Always.pm in @INC (you may need to install the > Carp::Always module)... > > #### Try cpan: >> cpan > Can't locate ExtUtils/MakeMaker/version/vpp.pm in @INC (you may need > to install the ExtUtils::MakeMaker::version::vpp module) (@INC > contains: /bin/lib > /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads > /usr/local/share/perl5/site_perl/5.32 > /usr/lib/perl5/vendor_perl/5.32/x86_64-cygwin-threads > /usr/share/perl5/vendor_perl/5.32 > /usr/lib/perl5/5.32/x86_64-cygwin-threads /usr/share/perl5/5.32) at > (eval 11) line 1. > BEGIN failed--compilation aborted at (eval 11) line 1. > Compilation failed in require at > /usr/share/perl5/5.32/ExtUtils/MakeMaker.pm line 10. > BEGIN failed--compilation aborted at > /usr/share/perl5/5.32/ExtUtils/MakeMaker.pm line 10. > Compilation failed in require at /usr/share/perl5/5.32/CPAN.pm line 48. > BEGIN failed--compilation aborted at /usr/share/perl5/5.32/CPAN.pm line 48. > Compilation failed in require at /usr/share/perl5/5.32/App/Cpan.pm line 290. > BEGIN failed--compilation aborted at /usr/share/perl5/5.32/App/Cpan.pm > line 290. > Compilation failed in require at /bin/cpan line 10. > BEGIN failed--compilation aborted at /bin/cpan line 10. So your ExtUtils::MakeMaker installation seems incomplete, you need to install the perl-ExtUtils-MakeMaker package at least. Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? 2021-06-02 5:47 ` ASSI @ 2021-06-02 19:05 ` L A Walsh 0 siblings, 0 replies; 5+ messages in thread From: L A Walsh @ 2021-06-02 19:05 UTC (permalink / raw) To: ASSI; +Cc: cygwin On 2021/06/01 22:47, ASSI wrote: > L A Walsh writes: > >> updated cygwin and it reinstalled a new version of perl, >> but when I try to run any perl progs nothing runs (see below). >> >> So I'd like to try to reinstall all the cygwin >> perl-mods that I have installed. >> > > You didn't say how you updated Cygwin, but if you used setup then it > already did exactly that. > ---- Why would it have reinstalled all of the modules it just installed? I need to _RE_-install (to make sure all of the existing modules correspond to what was downloaded by the 5.32 update. I have possible doubts as to their integrity. > >> How can I select "all" among the perl mods? and install? >> >> I can select for only the "installed" perl mods, but how can >> I tell it to reinstall all of them? >> > > I'm not sure I understand your question, but how would you re-install a > not installed module? > ---- I wanted to re-install all of the **installed** modules to verify integrity. > >> According to /etc/setup, there are about 202 modules that need >> to be reinstalled, but I don't see howto tell setup to re-install >> all the "installed" modules (so I can be sure they are all "refreshed". >> > > Again, they already should be. > --- Not necessarily iff I'm getting coredumps/missing modules from my existing perl programs. > >> Thanks >> >> (errors from 2 of my local perl progs, "pcalc" and "dedup") >> and trying cpan....which also doesn't work. :-( >> >> >> >> >>> pcalc >>> >> Segmentation fault (core dumped) >> > > Well, I'm afraid I can't help you with an error so non-specific. > --- Yeah... >> Signal SEGV at >> /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Term/Size.pm >> line 14. >> > None of the stuff in /usr/local/ comes from Cygwin, that was all put > there by yourself. How about you move that away first? > > So your ExtUtils::MakeMaker installation seems incomplete, you need to > install the perl-ExtUtils-MakeMaker package at least. > > Yeah... > Yeah, I had a bunch of modules in the previous 5.30 tree from 'site' that didn't get remade and I didn't know perl 5.32 was going to cause so many problems that I couldn't run most of the stuff I had. On linux I had backups in the worst case and could restore a perl dir to capture all the modules I would need to recompile from cpan, but on windows, don't have a good backup program since MS removed MSbackup in Win7, so people couldn't backup binary programs (except via image restores). Grr. I think that the problem I have in Cygwin-setup is it is difficult to 'keep' an older binary install from something like perl as one has to go through and 'keep' every compat module that is installed for perl along the way every time you run setup. Cygwin really needs to use something like rpm for POSIX-compatible package management and only use setup for the cygwin-binaries that need to be installed outside of setup. Then cygwin could use all the package management utils from linux (RH, Suse, et al.) that would allow more flexible local package management. Rt. now have to figure out how to make POSIX::RT::Semaphore work in new perl...only emphasizing why perl is falling out of favor as a devel. env. *sigh*... ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-06-02 19:06 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-06-02 2:57 how to "re-enable" perl after 5.32 install; how to reinstall all perl-mods? L A Walsh 2021-06-02 4:32 ` Brian Inglis 2021-06-02 19:04 ` L A Walsh 2021-06-02 5:47 ` ASSI 2021-06-02 19:05 ` L A Walsh
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).