in reply to Can't locate DBI.pm @INC (Cygwin + MySQL)

It seems that you have upgraded your perl to 5.10, but haven't actually upgraded the modules. It's also weird that you have paths with 5.8 in them in @INC.

So basically you need to install DBI with perl-5.10.0.

  • Comment on Re: Can't locate DBI.pm @INC (Cygwin + MySQL)

Replies are listed 'Best First'.
Re^2: Can't locate DBI.pm @INC (Cygwin + MySQL)
by Anonymous Monk on Aug 25, 2008 at 22:56 UTC
    Thanks. I'm not sure how both 5.8 and 5.10 are available. I think Perl is installed by default as part of Cygwin. I didn't get it from ActiveState.

    Had a go an installing DBI manually.

    Downloaded the CPAN package with get DBI.

    perl Makefile.pm - no problem.
    make - no problem
    make test - problems:
    t/80proxy...................skipped: modules required for proxy are pr +obably not installed (e.g., RPC/PlClient.pm) t/85gofer...................112/? 4 [main] perl 4580 C:\cygwin\b +in\perl.exe: *** fatal error - unable to remap C:\cygwin\lib\perl5\5. +10\i686-cygwin\auto\Data\Dumper\Dumper.dll to same address as parent( +0x860000) != 0x14E0000 4 [main] perl 4580 C:\cygwin\bin\perl.exe: *** fatal error - una +ble to remap C:\cygwin\lib\perl5\5.10\i686-cygwin\auto\Data\Dumper\Du +mper.dll to same address as parent(0x860000) != 0x14E0000 9 [main] perl 5256 child_info::sync: wait failed, pid 4580, Win3 +2 error 183 2844 [main] perl 5256 fork: child 4580 - died waiting for dll loadi +ng, errno 11 t/85gofer...................115/? 9 [main] perl 5256 child_info: +:sync: wait failed, pid 4580, Win32 error 183 2844 [main] perl 5256 fork: child 4580 - died waiting for dll loadi +ng, errno 11 # Failed test 'pipeone: DBD::Gofer::db do failed: DBD::Gofer transmi +t_request timed-out after 60 seconds [for Statement "UPDATE fruit SET dVal='apples' WHERE dVal='oranges'"] at t/85gofer.t line 173. # ' # at t/85gofer.t line 104. t/85gofer...................160/? # Looks like you failed 1 test of 21 +9.
    Any additional suggestions gratefully recieved, I'm no expert when it comes to CPAN, let alone what to do when it appears there are two versions of Perl running locally!

    Thanks in advance.
      Hi,

      I got a similar problem today and resolved it in the following way:

      kill all CygWin processes

      just start ash (it doesn't work with bash / rxvt etc.)

      check with ps that ash is the only process running (you should only see ash and ps)
      $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 20764 1 20764 20764 con 41423 15:35:44 /usr/bin/ash 82492 20764 20764 82548 con 41423 16:34:35 /usr/bin/ps
      run rebaseall
      $ rebaseall
      now run the normal building steps
      $ perl Makefile.pl $ make $ make test $ make install
      and you should be fine