Advertisement
Guest User

Untitled

a guest
Aug 6th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.10 KB | None | 0 0
  1. $ sudo perl -MCPAN -e 'install DBD::mysql'
  2. Going to read '/Users/jonathan/.cpan/Metadata'
  3. Database was generated on Fri, 25 Mar 2011 12:29:22 GMT
  4. Running install for module 'DBD::mysql'
  5. Running make for C/CA/CAPTTOFU/DBD-mysql-4.018.tar.gz
  6. Checksum for /Users/jonathan/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.018.tar.gz ok
  7.  
  8. CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.018.tar.gz
  9.  
  10.  
  11.  
  12. PLEASE NOTE:
  13.  
  14. For 'make test' to run properly, you must ensure that the
  15. database user 'root' can connect to your MySQL server
  16. and has the proper privileges that these tests require such
  17. as 'drop table', 'create table', 'drop procedure', 'create procedure'
  18. as well as others.
  19.  
  20. mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1t';
  21.  
  22. You can also optionally set the user to run 'make test' with:
  23.  
  24. perl Makefile.PL --testuser=username
  25.  
  26. I will use the following settings for compiling and testing:
  27.  
  28. cflags (mysql_config) = -I/usr/local/mysql-5.5.9-osx10.6-x86_64/include -Os -g -fno-common -fno-strict-aliasing -arch x86_64
  29. embedded (mysql_config) =
  30. libs (mysql_config) = -L/usr/local/mysql-5.5.9-osx10.6-x86_64/lib -lmysqlclient -lpthread
  31. mysql_config (guessed ) = mysql_config
  32. nocatchstderr (default ) = 0
  33. nofoundrows (default ) = 0
  34. ssl (guessed ) = 0
  35. testdb (default ) = test
  36. testhost (default ) =
  37. testpassword (default ) =
  38. testsocket (default ) =
  39. testuser (guessed ) = root
  40.  
  41. To change these settings, see 'perl Makefile.PL --help' and
  42. 'perldoc INSTALL'.
  43.  
  44. Checking if your kit is complete...
  45. Looks good
  46. Using DBI 1.616 (for perl 5.012003 on darwin-multi-2level) installed in /opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level/auto/DBI/
  47. Writing Makefile for DBD::mysql
  48. cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
  49. cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
  50. cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
  51. cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
  52. /usr/bin/gcc-4.2 -c -I/opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level/auto/DBI -I/usr/local/mysql-5.5.9-osx10.6-x86_64/include -Os -g -fno-common -fno-strict-aliasing -arch x86_64 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include -O3 -DVERSION=\"4.018\" -DXS_VERSION=\"4.018\" "-I/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE" dbdimp.c
  53. dbdimp.c: In function ‘mysql_st_internal_execute41’:
  54. dbdimp.c:3298: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘my_ulonglong’
  55. dbdimp.c: In function ‘mysql_describe’:
  56. dbdimp.c:3517: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’
  57. dbdimp.c:3521: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
  58. dbdimp.c: In function ‘mysql_st_fetch’:
  59. dbdimp.c:3738: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
  60. dbdimp.c:3780: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘struct MYSQL_RES *’
  61. dbdimp.c:3782: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘unsigned int’
  62. dbdimp.c: In function ‘mysql_st_FETCH_attrib’:
  63. dbdimp.c:4365: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘my_ulonglong’
  64. dbdimp.c: In function ‘mysql_bind_ph’:
  65. dbdimp.c:4571: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘IV’
  66. dbdimp.c:4583: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘IV’
  67. dbdimp.c:4595: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘IV’
  68. dbdimp.c:4609: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘IV’
  69. dbdimp.c:4630: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘IV’
  70. /opt/local/bin/perl -p -e "s/~DRIVER~/mysql/g" /opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level/auto/DBI/Driver.xst > mysql.xsi
  71. /opt/local/bin/perl /opt/local/lib/perl5/5.12.3/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.12.3/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
  72. Warning: duplicate function definition 'do' detected in mysql.xs, line 225
  73. Warning: duplicate function definition 'rows' detected in mysql.xs, line 650
  74. /usr/bin/gcc-4.2 -c -I/opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level/auto/DBI -I/usr/local/mysql-5.5.9-osx10.6-x86_64/include -Os -g -fno-common -fno-strict-aliasing -arch x86_64 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include -O3 -DVERSION=\"4.018\" -DXS_VERSION=\"4.018\" "-I/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE" mysql.c
  75. Running Mkbootstrap for DBD::mysql ()
  76. chmod 644 mysql.bs
  77. rm -f blib/arch/auto/DBD/mysql/mysql.bundle
  78. LD_RUN_PATH="/usr/local/mysql-5.5.9-osx10.6-x86_64/lib:/usr/lib" /opt/local/bin/perl myld env MACOSX_DEPLOYMENT_TARGET=10.6 /usr/bin/gcc-4.2 -L/opt/local/lib -arch x86_64 -bundle -undefined dynamic_lookup -fstack-protector dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.bundle \
  79. -L/usr/local/mysql-5.5.9-osx10.6-x86_64/lib -lmysqlclient -lpthread \
  80.  
  81. chmod 755 blib/arch/auto/DBD/mysql/mysql.bundle
  82. cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
  83. chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
  84. Manifying blib/man3/DBD::mysql.3pm
  85. Manifying blib/man3/DBD::mysql::INSTALL.3pm
  86. Manifying blib/man3/Bundle::DBD::mysql.3pm
  87. CAPTTOFU/DBD-mysql-4.018.tar.gz
  88. /usr/bin/make -- OK
  89. 'YAML' not installed, will not store persistent state
  90. Running make test
  91. PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
  92. t/00base.t .................. 1/6 Bailout called. Further testing stopped: Unable to load DBD::mysql
  93.  
  94. # Failed test 'use DBD::mysql;'
  95. # at t/00base.t line 21.
  96. # Tried to use 'DBD::mysql'.
  97. # Error: Can't load '/Users/jonathan/.cpan/build/DBD-mysql-4.018-iCpHW3/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/jonathan/.cpan/build/DBD-mysql-4.018-iCpHW3/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Library not loaded: libmysqlclient.16.dylib
  98. # Referenced from: /Users/jonathan/.cpan/build/DBD-mysql-4.018-iCpHW3/blib/arch/auto/DBD/mysql/mysql.bundle
  99. # Reason: image not found at /opt/local/lib/perl5/5.12.3/darwin-multi-2level/DynaLoader.pm line 204.
  100. # at (eval 7) line 2
  101. # Compilation failed in require at (eval 7) line 2.
  102. # BEGIN failed--compilation aborted at (eval 7) line 2.
  103. FAILED--Further testing stopped: Unable to load DBD::mysql
  104. make: *** [test_dynamic] Error 255
  105. CAPTTOFU/DBD-mysql-4.018.tar.gz
  106. /usr/bin/make test -- NOT OK
  107. //hint// to see the cpan-testers results for installing this module, try:
  108. reports CAPTTOFU/DBD-mysql-4.018.tar.gz
  109. Running make install
  110. make test had returned bad status, won't install without force
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement