Problem w/ Perl Package Manager (ppm) 1.8.0 [Answered]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem w/ Perl Package Manager (ppm) 1.8.0 [Answered]

Postby georgefk » 01. September 2012 16:53

Greetings once more. I am using Windows 7 Pro and xampp 1.8.0
When I try to run ppm.bat from xampp\perl\bin I got a pop-up window with "perl.exe has stopped working".
Now I have a Hello World script working in the document root so Perl works correctly.

I did not have this issue with Vista and xampp 1.7.7
What I am trying to do is to add Perl database modules DBI and DBD::mysql

Can someone please try to see if ppm.bat is ok with their installation?
As always I would be very grateful for any help in resolving this issue.
georgefk
georgefk
 
Posts: 12
Joined: 01. September 2012 16:03
Operating System: Windows 7 Pro

Re: Problem getting the Perl Package Manager (ppm) working

Postby JonB » 01. September 2012 17:18

did you run it from the xampp shell?
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Problem getting the Perl Package Manager (ppm) working

Postby georgefk » 01. September 2012 19:39

yes this problem shows itself from the xampp shell
also Command Prompt
georgefk
 
Posts: 12
Joined: 01. September 2012 16:03
Operating System: Windows 7 Pro

Re: Problem getting the Perl Package Manager (ppm) working

Postby JonB » 02. September 2012 00:33

OK - remember JonB did not build this stuff...

I think you are right ppm and cpan are toast in XAMPP 1.8.0 <=> I got boo-boos on both and neither appears to be able to compile.

My advice is this (I know a 'fair' amount about Perl):

DL the same version of Strawberry Perl from the origin -

http://strawberryperl.com/

Install away - LOL (it will want to put itself in c:\strawberry likely)

To compile/install - USE CPAN - ppm is deprecated for non-ActivePerl installs.

You can then do one of two things - I am 99.995 sure on this -

A. Compile new Perl modules with that install and transplant them. That leaves everything in XAMPP.
I just (on another machine) installed/compiled DBI with CPAN using the Strawberry standalone.
Code: Select all
...
Installing C:\strawberry\perl\site\bin\dbilogstrip
Installing C:\strawberry\perl\site\bin\dbilogstrip.bat
Installing C:\strawberry\perl\site\bin\dbiprof
Installing C:\strawberry\perl\site\bin\dbiprof.bat
Installing C:\strawberry\perl\site\bin\dbiproxy
Installing C:\strawberry\perl\site\bin\dbiproxy.bat
Appending installation info to C:\strawberry\perl\lib/perllocal.pod
  TIMB/DBI-1.622.tar.gz
  C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK

C:\strawberry\perl\bin>


I checked the folders, its there now. DBI is now in perl\site - (meaning local) both \bin and \lib. Ditto the DBD::mysql (that will need a lot of patience and error-fixing).

B. Create an Alias for the Strawberry install you just made, make needed handler changes, and change your shebang and have it do the heavy lifting.

Note: If you transplant things, you may need complete paths for includes and uses or you can dis around and fix that possibly. If you use 'Plan B' you may need to add the path to c:\xampp\myql\bin to the Environment permanently. (System Properties)

Appending installation info to C:\strawberry\perl\lib/perllocal.pod
CAPTTOFU/DBD-mysql-4.022.tar.gz
C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK


NONE OF THIS IS GUARANTEED!!! I had to live with a compile that fails a test (maybe you can clear it...). This is Perl Monk territory, and I don't wear a habit... Make all the fixes first, and you may get a clean compile!

The Icelandic Sagas start here:

My first fix -

Code: Select all
C:\strawberry\perl\bin>path %path%;C:\xampp\mysql\bin

C:\strawberry\perl\bin>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\strawberry\c\bin
;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Program Files\QuickTime\Q
TSystem\;C:\Argyll140\bin;C:\xampp\mysql\bin

C:\strawberry\perl\bin>cpan install DBD::mysql
CPAN: CPAN::SQLite loaded ok (v0.199)
Database was generated on Sat, 01 Sep 2012 22:09:56 GMT
Running install for module 'DBD::mysql'
Running make for C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.027)
Checksum for C:\strawberry\cpan\sources\authors\id\C\CA\CAPTTOFU\DBD-mysql-4.022
.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.60)
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.40)
CPAN: Module::CoreList loaded ok (v2.31)

  CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz


mysql_config.pl, and an associated bat file, has been
successfully created under
   C:\xampp\mysql\bin


Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user '' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to ''@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -IC:\strawberry\c\bin\..\include\mysql_5
  embedded      (guessed     ) =
  ldflags       (mysql_config) =
  libs          (mysql_config) = -LC:\strawberry\c\bin\..\lib -lmysql
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testsocket    (default     ) =
  testuser      (guessed     ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Using DBI 1.622 (for perl 5.010001 on MSWin32-x86-multi-thread) installed in C:/
strawberry/perl/site/lib/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib\lib\DBD\mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib\lib\DBD\mysql\GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib\lib\DBD\mysql\INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib\lib\Bundle\DBD\mysql.pm
gcc -c  -IC:\strawberry\perl\site\lib\auto\DBI -IC:\strawberry\c\bin\..\include\
mysql_5 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g        -s -O2 -DWIN32 -DHAVE_DES_FCRYPT
 -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-ali
asing -DPERL_MSVCRT_READFIX -s -O2        -DVERSION=\"4.022\"   -DXS_VERSION=\"4
.022\"  "-IC:\strawberry\perl\lib\CORE"   dbdimp.c
C:\strawberry\perl\bin\perl.exe -p -e "s/~DRIVER~/mysql/g" C:\strawberry\perl\si
te\lib\auto\DBI\Driver.xst > mysql.xsi
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp  -typemap
 C:\strawberry\perl\lib\ExtUtils\typemap  mysql.xs > mysql.xsc && C:\strawberry\
perl\bin\perl.exe -MExtUtils::Command -e "mv" -- mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 242
Warning: duplicate function definition 'rows' detected in mysql.xs, line 752
gcc -c  -IC:\strawberry\perl\site\lib\auto\DBI -IC:\strawberry\c\bin\..\include\
mysql_5 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g        -s -O2 -DWIN32 -DHAVE_DES_FCRYPT
 -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-ali
asing -DPERL_MSVCRT_READFIX -s -O2        -DVERSION=\"4.022\"   -DXS_VERSION=\"4
.022\"  "-IC:\strawberry\perl\lib\CORE"   mysql.c
Running Mkbootstrap for DBD::mysql ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 mysql.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
     -e "Mksymlists('NAME'=>\"DBD::mysql\", 'DLBASE' => 'mysql', 'DL_FUNCS' => {
  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
dlltool --def mysql.def --output-exp dll.exp
C:\strawberry\perl\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll -
Wl,--base-file -Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\straw
berry\c\lib" dbdimp.o   mysql.o -Wl,--image-base,0x1570000  C:\strawberry\perl\l
ib\CORE\libperl510.a C:\strawberry\c\bin\..\lib\libmysql.a C:\strawberry\c\bin\.
.\lib\libmoldname.a C:\strawberry\c\bin\..\lib\libkernel32.a C:\strawberry\c\bin
\..\lib\libuser32.a C:\strawberry\c\bin\..\lib\libgdi32.a C:\strawberry\c\bin\..
\lib\libwinspool.a C:\strawberry\c\bin\..\lib\libcomdlg32.a C:\strawberry\c\bin\
..\lib\libadvapi32.a C:\strawberry\c\bin\..\lib\libshell32.a C:\strawberry\c\bin
\..\lib\libole32.a C:\strawberry\c\bin\..\lib\liboleaut32.a C:\strawberry\c\bin\
..\lib\libnetapi32.a C:\strawberry\c\bin\..\lib\libuuid.a C:\strawberry\c\bin\..
\lib\libws2_32.a C:\strawberry\c\bin\..\lib\libmpr.a C:\strawberry\c\bin\..\lib\
libwinmm.a C:\strawberry\c\bin\..\lib\libversion.a C:\strawberry\c\bin\..\lib\li
bodbc32.a C:\strawberry\c\bin\..\lib\libodbccp32.a dll.exp
dlltool --def mysql.def --base-file dll.base --output-exp dll.exp
C:\strawberry\perl\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll -
mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" dbdimp.o
mysql.o -Wl,--image-base,0x1570000  C:\strawberry\perl\lib\CORE\libperl510.a C:\
strawberry\c\bin\..\lib\libmysql.a C:\strawberry\c\bin\..\lib\libmoldname.a C:\s
trawberry\c\bin\..\lib\libkernel32.a C:\strawberry\c\bin\..\lib\libuser32.a C:\s
trawberry\c\bin\..\lib\libgdi32.a C:\strawberry\c\bin\..\lib\libwinspool.a C:\st
rawberry\c\bin\..\lib\libcomdlg32.a C:\strawberry\c\bin\..\lib\libadvapi32.a C:\
strawberry\c\bin\..\lib\libshell32.a C:\strawberry\c\bin\..\lib\libole32.a C:\st
rawberry\c\bin\..\lib\liboleaut32.a C:\strawberry\c\bin\..\lib\libnetapi32.a C:\
strawberry\c\bin\..\lib\libuuid.a C:\strawberry\c\bin\..\lib\libws2_32.a C:\stra
wberry\c\bin\..\lib\libmpr.a C:\strawberry\c\bin\..\lib\libwinmm.a C:\strawberry
\c\bin\..\lib\libversion.a C:\strawberry\c\bin\..\lib\libodbc32.a C:\strawberry\
c\bin\..\lib\libodbccp32.a dll.exp
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 755 blib\arch\
auto\DBD\mysql\mysql.dll
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "cp" -- mysql.bs blib\arc
h\auto\DBD\mysql\mysql.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 blib\arch\
auto\DBD\mysql\mysql.bs
  CAPTTOFU/DBD-mysql-4.022.tar.gz
  C:\strawberry\c\bin\dmake.EXE -- OK
CPAN: YAML loaded ok (v0.71)
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib\lib', 'blib\arch')" t/*.t
t/00base.t .................. ok
t/10connect.t ............... ok
t/20createdrop.t ............ ok
t/25lockunlock.t ............ 1/13
#   Failed test 'lock table t1'
#   at t/25lockunlock.t line 39.
# Looks like you failed 1 test of 13.
t/25lockunlock.t ............ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/13 subtests
t/29warnings.t .............. ok
t/30insertfetch.t ........... ok
t/31insertid.t .............. ok
t/32insert_error.t .......... ok
t/35limit.t ................. ok
t/35prepare.t ............... ok
t/40bindparam.t ............. ok
t/40bindparam2.t ............ ok
t/40blobs.t ................. ok
t/40catalog.t ............... "my" variable $info masks earlier declaration in s
ame scope at t/40catalog.t line 288.
t/40catalog.t ............... 22/78
#   Failed test at t/40catalog.t line 213.
#          got: undef
#     expected: 'bug26603_v1'

#   Failed test at t/40catalog.t line 214.
#          got: undef
#     expected: 'VIEW'

#   Failed test at t/40catalog.t line 221.
#          got: undef
#     expected: 'bug26603_v1'

#   Failed test at t/40catalog.t line 222.
#          got: undef
#     expected: 'VIEW'

#   Failed test at t/40catalog.t line 239.
#          got: undef
#     expected: 'bug26603_v1'

#   Failed test at t/40catalog.t line 240.
#          got: undef
#     expected: 'VIEW'
# Looks like you failed 6 tests of 78.
t/40catalog.t ............... Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/78 subtests
t/40keyinfo.t ............... ok
t/40listfields.t ............ ok
t/40nulls.t ................. ok
t/40nulls_prepare.t ......... ok
t/40numrows.t ............... ok
t/40server_prepare.t ........ ok
t/40server_prepare_error.t .. ok
t/40types.t ................. ok
t/41bindparam.t ............. ok
t/41blobs_prepare.t ......... ok
t/42bindparam.t ............. ok
t/50chopblanks.t ............ ok
t/50commit.t ................ ok
t/51bind_type_guessing.t .... ok
t/52comment.t ............... ok
t/53comment.t ............... ok
t/55utf8.t .................. ok
t/60leaks.t ................. skipped: Skip $ENV{SLOW_TESTS} is not set
t/65types.t ................. ok
t/70takeimp.t ............... ok
t/71impdata.t ............... ok
t/75supported_sql.t ......... ok
t/76multi_statement.t ....... 1/25 # Testing multicall against SQL_DBMS_VER: 5.5
.25a
t/76multi_statement.t ....... ok
t/80procs.t ................. 1/29
#   Failed test at t/80procs.t line 41.

#   Failed test at t/80procs.t line 59.

#   Failed test at t/80procs.t line 63.

#   Failed test at t/80procs.t line 72.

#   Failed test at t/80procs.t line 74.

#   Failed test at t/80procs.t line 86.

#   Failed test at t/80procs.t line 90.

#   Failed test 'num_of_fields == 1'
#   at t/80procs.t line 92.
#          got: undef
#     expected: '1'
DBD::mysql::st fetchrow_arrayref failed: fetch() without execute() at t/80procs.
t line 95.
DBD::mysql::st fetchrow_arrayref failed: fetch() without execute() at t/80procs.
t line 95.
# Looks like you planned 29 tests but ran 14.
# Looks like you failed 8 tests of 14 run.
# Looks like your test exited with 9 just after 14.
t/80procs.t ................. Dubious, test returned 9 (wstat 2304, 0x900)
Failed 23/29 subtests
t/85init_command.t .......... ok
t/86_bug_36972.t ............ ok
t/91errcheck.t ..............
t/91errcheck.t .............. 1/1 #   Failed test 'error string should be set on
 a bad call'
#   at t/91errcheck.t line 22.
# Looks like you failed 1 test of 1.
t/91errcheck.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests

Test Summary Report
-------------------
t/25lockunlock.t          (Wstat: 256 Tests: 13 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
t/40catalog.t             (Wstat: 1536 Tests: 78 Failed: 6)
  Failed tests:  55-56, 58-59, 66-67
  Non-zero exit status: 6
t/80procs.t               (Wstat: 2304 Tests: 14 Failed: 8)
  Failed tests:  3-5, 9-11, 13-14
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 29 tests but ran 14.
t/91errcheck.t            (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=41, Tests=877, 16 wallclock secs ( 0.44 usr +  0.13 sys =  0.56 CPU)
Result: FAIL
Failed 4/41 test programs. 16/877 subtests failed.
dmake.EXE:  Error code 129, while making 'test_dynamic'
  CAPTTOFU/DBD-mysql-4.022.tar.gz
  C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports CAPTTOFU/DBD-mysql-4.022.tar.gz
Running make install
  make test had returned bad status, won't install without force

Many iterations later ==
------------------------- all recalled fixes -----------------------------------
path to mysql not found -
Code: Select all
> path %path%;C:\xampp\mysql\bin


Add Test Users to DB 'test' in phpMyAdmin or via mysql monitor command line

Code: Select all
grant all privileges on test.* to 'ODBC'@'localhost' identified by '';
grant all privileges on test.* to ''@'localhost' identified by 's3kr1t';


CPAN can't use 'my.ini' error - path does not contain mysql_config -- 'my.cnf' is the Linux/Unix variant.
Code: Select all
> copy C:\xampp\mysql\bin\my.ini C:\xampp\mysql\bin\my.cnf


Almost Final run:
Code: Select all
C:\strawberry\perl\bin>

t/91errcheck.t ..............
t/91errcheck.t .............. 1/1 #   Failed test 'error string should be set on
 a bad call'
#   at t/91errcheck.t line 22.
# Looks like you failed 1 test of 1.
t/91errcheck.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests

Test Summary Report
-------------------
t/91errcheck.t            (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=41, Tests=892, 15 wallclock secs ( 0.39 usr +  0.13 sys =  0.52 CPU)
Result: FAIL
Failed 1/41 test programs. 1/892 subtests failed.
dmake.EXE:  Error code 129, while making 'test_dynamic'
  CAPTTOFU/DBD-mysql-4.022.tar.gz
  C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports CAPTTOFU/DBD-mysql-4.022.tar.gz
Running make install
  make test had returned bad status, won't install without force

C:\strawberry\perl\bin>


------------------- at this point you have to FORCE installation -----------
YOU CAN'T DO THAT AT THE COMMAND LINE! (just discovered)
Code: Select all
C:\strawberry\perl\bin>cpan
cpan shell -- CPAN exploration and modules installation (v1.9456)
Enter 'h' for help.
cpan> force install DBD::mysql
Database was generated on Sat, 01 Sep 2012 22:09:56 GMT
Running install for module 'DBD::mysql'
Running make for C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\C\CA\CAPTTOFU\DBD-mysql-4.022
.tar.gz ok
Scanning cache C:\strawberry\cpan\build for sizes
............................................................................DONE


  CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz


mysql_config.pl, and an associated bat file, has been
successfully created under
   C:\xampp\mysql\bin


Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user '' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to ''@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -IC:\strawberry\c\bin\..\include\mysql_5
  embedded      (guessed     ) =
  ldflags       (mysql_config) =
  libs          (mysql_config) = -LC:\strawberry\c\bin\..\lib -lmysql
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testsocket    (default     ) =
  testuser      (guessed     ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Using DBI 1.622 (for perl 5.010001 on MSWin32-x86-multi-thread) installed in C:/
strawberry/perl/site/lib/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib\lib\DBD\mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib\lib\DBD\mysql\GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib\lib\DBD\mysql\INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib\lib\Bundle\DBD\mysql.pm
gcc -c  -IC:\strawberry\perl\site\lib\auto\DBI -IC:\strawberry\c\bin\..\include\
mysql_5 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g        -s -O2 -DWIN32 -DHAVE_DES_FCRYPT
 -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-ali
asing -DPERL_MSVCRT_READFIX -s -O2        -DVERSION=\"4.022\"   -DXS_VERSION=\"4
.022\"  "-IC:\strawberry\perl\lib\CORE"   dbdimp.c
C:\strawberry\perl\bin\perl.exe -p -e "s/~DRIVER~/mysql/g" C:\strawberry\perl\si
te\lib\auto\DBI\Driver.xst > mysql.xsi
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp  -typemap
 C:\strawberry\perl\lib\ExtUtils\typemap  mysql.xs > mysql.xsc && C:\strawberry\
perl\bin\perl.exe -MExtUtils::Command -e "mv" -- mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 242
Warning: duplicate function definition 'rows' detected in mysql.xs, line 752
gcc -c  -IC:\strawberry\perl\site\lib\auto\DBI -IC:\strawberry\c\bin\..\include\
mysql_5 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g        -s -O2 -DWIN32 -DHAVE_DES_FCRYPT
 -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-ali
asing -DPERL_MSVCRT_READFIX -s -O2        -DVERSION=\"4.022\"   -DXS_VERSION=\"4
.022\"  "-IC:\strawberry\perl\lib\CORE"   mysql.c
Running Mkbootstrap for DBD::mysql ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 mysql.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
     -e "Mksymlists('NAME'=>\"DBD::mysql\", 'DLBASE' => 'mysql', 'DL_FUNCS' => {
  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
dlltool --def mysql.def --output-exp dll.exp
C:\strawberry\perl\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll -
Wl,--base-file -Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\straw
berry\c\lib" dbdimp.o   mysql.o -Wl,--image-base,0x1570000  C:\strawberry\perl\l
ib\CORE\libperl510.a C:\strawberry\c\bin\..\lib\libmysql.a C:\strawberry\c\bin\.
.\lib\libmoldname.a C:\strawberry\c\bin\..\lib\libkernel32.a C:\strawberry\c\bin
\..\lib\libuser32.a C:\strawberry\c\bin\..\lib\libgdi32.a C:\strawberry\c\bin\..
\lib\libwinspool.a C:\strawberry\c\bin\..\lib\libcomdlg32.a C:\strawberry\c\bin\
..\lib\libadvapi32.a C:\strawberry\c\bin\..\lib\libshell32.a C:\strawberry\c\bin
\..\lib\libole32.a C:\strawberry\c\bin\..\lib\liboleaut32.a C:\strawberry\c\bin\
..\lib\libnetapi32.a C:\strawberry\c\bin\..\lib\libuuid.a C:\strawberry\c\bin\..
\lib\libws2_32.a C:\strawberry\c\bin\..\lib\libmpr.a C:\strawberry\c\bin\..\lib\
libwinmm.a C:\strawberry\c\bin\..\lib\libversion.a C:\strawberry\c\bin\..\lib\li
bodbc32.a C:\strawberry\c\bin\..\lib\libodbccp32.a dll.exp
dlltool --def mysql.def --base-file dll.base --output-exp dll.exp
C:\strawberry\perl\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll -
mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" dbdimp.o
mysql.o -Wl,--image-base,0x1570000  C:\strawberry\perl\lib\CORE\libperl510.a C:\
strawberry\c\bin\..\lib\libmysql.a C:\strawberry\c\bin\..\lib\libmoldname.a C:\s
trawberry\c\bin\..\lib\libkernel32.a C:\strawberry\c\bin\..\lib\libuser32.a C:\s
trawberry\c\bin\..\lib\libgdi32.a C:\strawberry\c\bin\..\lib\libwinspool.a C:\st
rawberry\c\bin\..\lib\libcomdlg32.a C:\strawberry\c\bin\..\lib\libadvapi32.a C:\
strawberry\c\bin\..\lib\libshell32.a C:\strawberry\c\bin\..\lib\libole32.a C:\st
rawberry\c\bin\..\lib\liboleaut32.a C:\strawberry\c\bin\..\lib\libnetapi32.a C:\
strawberry\c\bin\..\lib\libuuid.a C:\strawberry\c\bin\..\lib\libws2_32.a C:\stra
wberry\c\bin\..\lib\libmpr.a C:\strawberry\c\bin\..\lib\libwinmm.a C:\strawberry
\c\bin\..\lib\libversion.a C:\strawberry\c\bin\..\lib\libodbc32.a C:\strawberry\
c\bin\..\lib\libodbccp32.a dll.exp
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 755 blib\arch\
auto\DBD\mysql\mysql.dll
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "cp" -- mysql.bs blib\arc
h\auto\DBD\mysql\mysql.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 blib\arch\
auto\DBD\mysql\mysql.bs
  CAPTTOFU/DBD-mysql-4.022.tar.gz
  C:\strawberry\c\bin\dmake.EXE -- OK
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib\lib', 'blib\arch')" t/*.t
t/00base.t .................. ok
t/10connect.t ............... ok
t/20createdrop.t ............ ok
t/25lockunlock.t ............ ok
t/29warnings.t .............. ok
t/30insertfetch.t ........... ok
t/31insertid.t .............. ok
t/32insert_error.t .......... ok
t/35limit.t ................. ok
t/35prepare.t ............... ok
t/40bindparam.t ............. ok
t/40bindparam2.t ............ ok
t/40blobs.t ................. ok
t/40catalog.t ............... "my" variable $info masks earlier declaration in s
ame scope at t/40catalog.t line 288.
t/40catalog.t ............... ok
t/40keyinfo.t ............... ok
t/40listfields.t ............ ok
t/40nulls.t ................. ok
t/40nulls_prepare.t ......... ok
t/40numrows.t ............... ok
t/40server_prepare.t ........ ok
t/40server_prepare_error.t .. ok
t/40types.t ................. ok
t/41bindparam.t ............. ok
t/41blobs_prepare.t ......... ok
t/42bindparam.t ............. ok
t/50chopblanks.t ............ ok
t/50commit.t ................ ok
t/51bind_type_guessing.t .... ok
t/52comment.t ............... ok
t/53comment.t ............... ok
t/55utf8.t .................. ok
t/60leaks.t ................. skipped: Skip $ENV{SLOW_TESTS} is not set
t/65types.t ................. ok
t/70takeimp.t ............... ok
t/71impdata.t ............... ok
t/75supported_sql.t ......... ok
t/76multi_statement.t ....... 1/25 # Testing multicall against SQL_DBMS_VER: 5.5
.25a
t/76multi_statement.t ....... ok
t/80procs.t ................. ok
t/85init_command.t .......... ok
t/86_bug_36972.t ............ ok
t/91errcheck.t ..............
t/91errcheck.t .............. 1/1 #   Failed test 'error string should be set on
 a bad call'
#   at t/91errcheck.t line 22.
# Looks like you failed 1 test of 1.
t/91errcheck.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests

Test Summary Report
-------------------
t/91errcheck.t            (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=41, Tests=892, 15 wallclock secs ( 0.61 usr +  0.19 sys =  0.80 CPU)
Result: FAIL
Failed 1/41 test programs. 1/892 subtests failed.
dmake.EXE:  Error code 129, while making 'test_dynamic'
  CAPTTOFU/DBD-mysql-4.022.tar.gz
  C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports CAPTTOFU/DBD-mysql-4.022.tar.gz
Running make install
Files found in blib\arch: installing files in blib\lib into architecture depende
nt library tree
Installing C:\strawberry\perl\site\lib\auto\DBD\mysql\mysql.bs
Installing C:\strawberry\perl\site\lib\auto\DBD\mysql\mysql.dll
Installing C:\strawberry\perl\site\lib\Bundle\DBD\mysql.pm
Installing C:\strawberry\perl\site\lib\DBD\mysql.pm
Installing C:\strawberry\perl\site\lib\DBD\mysql\GetInfo.pm
Installing C:\strawberry\perl\site\lib\DBD\mysql\INSTALL.pod
Appending installation info to C:\strawberry\perl\lib/perllocal.pod
  CAPTTOFU/DBD-mysql-4.022.tar.gz
  C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK
Failed during this command:
 CAPTTOFU/DBD-mysql-4.022.tar.gz              : make_test FAILED but failure ign
ored because 'force' in effect


cpan>


Voila ~
8)

Beer please! :mrgreen:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Problem getting the Perl Package Manager (ppm) working

Postby georgefk » 02. September 2012 10:36

Thank you JonB for that epic reply.
It has been suggested that it was not a good idea to install 1.8.0 on top of 1.7.7 so I reinstalled.
Trying ppm from the xampp-shell it complained that
libexpat-1_.dll
was not found. This is nowhere in my system and not in 1.7.7 in particular.
I will try out strawberry perl. Failing that I will use the 1.7.7 installation on my old PC.
Many thanks
georgefk
georgefk
 
Posts: 12
Joined: 01. September 2012 16:03
Operating System: Windows 7 Pro

Re: Problem w/ Perl Package Manager (ppm) 1.8.0 [Answered]

Postby lusso » 18. October 2012 15:19

Hi,

i am encountering the same problem. Trying to install any module in XAMPP with ppm does not work as ppm like mentioned aboved will not start.
Will be this solved or is this a feature?

Greetings
lusso
 
Posts: 1
Joined: 18. October 2012 15:13
Operating System: Win7 SP1 X64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 65 guests