http://qs321.pair.com?node_id=11145853


in reply to Re^2: Can't locate Convert/BER.pm
in thread Can't locate Convert/BER.pm

Given the discussion which this topic has generated you might also (or instead) like to read A guide to installing modules for Win32 (2022 Edition) - your insights as someone who may be new to all this might help to improve that document as well. HTH.

(Edited to link to the newly-published tutorial instead of the RFC)


🦛

Replies are listed 'Best First'.
Re^4: Can't locate Convert/BER.pm
by mallett76 (Sexton) on Aug 01, 2022 at 00:37 UTC
    Another angle I was thinking about, to solving this problem, was installing perl from scratch, on one of my "non-work" PCs as an experiment. However, it looks like there are two options to install Perl - Active State and Strawberry. I have windows at home - well, windows home & work. So, if my goal is to easily install modules - like the DBD JDBC, it seems like Active State is the way to go if you have windows. My home PC would have the a more recent version of Perl - with active state, would it be as simple as double clicking on the PPM batch, doing a search on the DBD JDBC module, clicking on install, and installing the module? I know with other modules in the past - that is all that I had to do. When I took this approach, on my work computer(which is using an older version of Perl) - I didn't see the DBD::OJBC module.
      with active state, would it be as simple as double clicking on the PPM batch, doing a search on the DBD JDBC module, clicking on install, and installing the module?

      No - they don't use PPM any more.
      I gather you follow some procedure whereby you request of ActiveState that they provide you with the module you want, and they oblige if they can.
      Update: see https://www.perlmonks.org/?node_id=11145868

      With StrawberryPerl you would just run:
      cpan -I DBD::JDBC
      On my StrawberryPerl-5.32.1 that firstly installs the prerequisite Convert::BER.
      But DBD::JDBC fails some tests, so the install is aborted.
      Those tests apparently fail because java.exe cannot be found:
      t/00-load.t ..... 1/? # Testing DBD::JDBC 0.72, Perl 5.032001, C:\_64\ +strawberry -5.32.1-PDL\perl\bin\perl.exe t/00-load.t ..... ok t/01_env.t ...... ok t/02_connect.t .. 1/5 Cannot find java.exe in the following directorie +s: C:\_64\strawberry-5.32.1-PDL\perl\site\bin C:\_64\strawberry-5.32.1-PDL\perl\bin C:\_64\strawberry-5.32.1-PDL\c\bin C:\Program Files\Common Files\Microsoft Shared\Windows Live C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common C:\Program Files (x86)\Intel\iCLS Client\ C:\Program Files\Intel\iCLS Client\ C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0\ C:\Program Files\Intel\Intel(R) Management Engine Components\DAL C:\Program Files\Intel\Intel(R) Management Engine Components\IPT C:\Program Files (x86)\Intel\Intel(R) Management Engine Components +\DAL C:\Program Files (x86)\Intel\Intel(R) Management Engine Components +\IPT C:\batch C:\Program Files (x86)\Windows Live\Shared C:\Program Files\dotnet\ Terminating. # Failed test 'server started' # at t/02_connect.t line 25. # Server failed to start; remaining tests will fail # Looks like you failed 1 test of 5. t/02_connect.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests (less 3 skipped subtests: 1 okay) t/03_hsqldb.t ... Cannot find java.exe in the following directories: C:\_64\strawberry-5.32.1-PDL\perl\site\bin C:\_64\strawberry-5.32.1-PDL\perl\bin C:\_64\strawberry-5.32.1-PDL\c\bin C:\Program Files\Common Files\Microsoft Shared\Windows Live C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common C:\Program Files (x86)\Intel\iCLS Client\ C:\Program Files\Intel\iCLS Client\ C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0\ C:\Program Files\Intel\Intel(R) Management Engine Components\DAL C:\Program Files\Intel\Intel(R) Management Engine Components\IPT C:\Program Files (x86)\Intel\Intel(R) Management Engine Components +\DAL C:\Program Files (x86)\Intel\Intel(R) Management Engine Components +\IPT C:\batch C:\Program Files (x86)\Windows Live\Shared C:\Program Files\dotnet\ Terminating. t/03_hsqldb.t ... 1/22 # Failed test 'server started' # at t/03_hsqldb.t line 24. # Looks like you failed 1 test of 22. t/03_hsqldb.t ... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/22 subtests (less 21 skipped subtests: 0 okay) t/basis.t ....... skipped: BASIS URL not defined t/oracle.t ...... skipped: Oracle URL not defined Test Summary Report ------------------- t/02_connect.t (Wstat: 256 Tests: 5 Failed: 1) Failed test: 2 Non-zero exit status: 1 t/03_hsqldb.t (Wstat: 256 Tests: 22 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=6, Tests=33, 1 wallclock secs ( 0.00 usr + 0.01 sys = 0.01 CP +U) Result: FAIL Failed 2/6 test programs. 2/33 subtests failed. make.EXE: *** [Makefile:855: test_dynamic] Error 255 VIZDOM/DBD-JDBC-0.72.tar.gz C:\_32\make\bin\make.EXE test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports VIZDOM/DBD-JDBC-0.72.tar.gz
      However, if I decide that I'm not concerned about those failures I can install DBD::JDBC by instead running:
      cpan -fi DBD::JDBC
      The tests still fail, of course, but the module is installed anyway.

      I expect that ActiveState would experience the very same test failures with their building of DBD::JDBC - unless, of course, they have a java.exe in one of the locations that is searched.
      I don't know how they would respond to that.

      Cheers,
      Rob
        Looking at CPAN requirements, it says to install the following: Java Virtual Machine compatible with JDK 1.4 A JDBC driver If I install the the java JDK - would that satisfy all of these requirements? The Java Virtual Machine & the JDBC driver?
          A reply falls below the community's threshold of quality. You may see it by logging in.
        Yahoo, finally am making some progress. I was able to do a force install - it looks like I learned a few items. When running cpan with strawberry perl - if you go to the start menu, and you'll see an icon that says perl command - that is where you'll want to run. Also - running cpan -I DBD::JDBC will not work on windows, nor will cpan -fi DBD::JDBC - rather running the following appears to work: CPAN> install DBD::JDBC CPAN> force install DBD::JDBC The full word "install" & "force" need to be typed out. So, I still need to look into - but am getting closer.

        Hi,
        I installed Strawberry Perl, then I ran the following command: C:\Users\pMalle001>cpan -I DBD::JDBC However, it looked like it errored, and referenced an older version of Perl, the C:\Perl_New\cpan\sources\authors\01mailrc.txt.gz.tmp10428' How can I make sure that it references the Strawberry Perl, and not the C:\Perl_New?

        Below is the complete message:

        C:\Users\pMalle001>cpan -I DBD::JDBC Set up gcc environment - gcc.exe (x86_64-posix-seh, Built by strawberr +yperl.com project) 8.3.0 Unknown option: I CPAN: Term::ANSIColor loaded ok (v4.02) CPAN: Storable loaded ok (v2.34) Reading 'C:\Perl_New\cpan\Metadata' Database was generated on Mon, 28 Sep 2020 05:55:34 GMT CPAN: LWP::UserAgent loaded ok (v6.04) CPAN: Time::HiRes loaded ok (v1.9725) Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[write failed: ] Warning: no success downloading 'C:\Perl_New\cpan\sources\authors\01ma +ilrc.txt.gz.tmp10428'. Giving up on it. Fetching with LWP: http://cpan.perl.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to cpan.perl.org:443 ( +certificate verify failed)] Warning: no success downloading 'C:\Perl_New\cpan\sources\authors\01ma +ilrc.txt.gz.tmp10428'. Giving up on it. Warning: no success downloading 'C:\Perl_New\cpan\sources\authors\01ma +ilrc.txt.gz.tmp10428'. Giving up on it. No external ftp command available Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[write failed: ] Warning: no success downloading 'C:\Perl_New\cpan\sources\authors\01ma +ilrc.txt.gz.tmp10428'. Giving up on it. Fetching with LWP: http://cpan.perl.org/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to cpan.perl.org:443 ( +certificate verify failed)] Warning: no success downloading 'C:\Perl_New\cpan\sources\authors\01ma +ilrc.txt.gz.tmp10428'. Giving up on it. Warning: no success downloading 'C:\Perl_New\cpan\sources\authors\01ma +ilrc.txt.gz.tmp10428'. Giving up on it. No external ftp command available CPAN: YAML::XS loaded ok (v0.39) Please check, if the URLs I found in your configuration file (http://ppm.activestate.com/CPAN, http://cpan.perl.org) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz

        2022-08-18 Athanasius added code and paragraph tags.