windows cpan 编译安装DBD::mysql

C:\Perl\bin\perl.exe myld link -out:blib\arch\auto\DBD\mysql\mysql.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf  -libpath:"c:\perl\lib\CORE"  -machine:x86 dbdimp.obj  mysql.obj   C:\perl\lib\CORE\perl518.lib c:\perl\lib\CORE\libmysql.lib D:\WinDDK\7600.16385.1\lib\wxp\i386\oldnames.lib "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\kernel32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\user32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\gdi32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\winspool.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\comdlg32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\advapi32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\shell32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\ole32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\oleaut32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\netapi32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\uuid.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\ws2_32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\mpr.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\winmm.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\version.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\odbc32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\odbccp32.lib" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\comctl32.lib" D:\WinDDK\7600.16385.1\lib\wxp\i386\bufferoverflow.lib D:\WinDDK\7600.16385.1\lib\Crt\i386\msvcrt.lib D:\WinDDK\7600.16385.1\lib\Crt\i386\msvcrtex.lib D:\WinDDK\7600.16385.1\lib\Crt\i386\commonCRT.lib -def:mysql.def

 

请使用5.1的版本库libmysql.dll,用lib.exe 生成导入库。编辑nmake生成的编译命令,再编译,如上。

mysql_config.pl放到不含空格的路径下,并指定该路径。

C:\Users\G-Spider>perl -v

This is perl 5, version 18, subversion 2 (v5.18.2) built for MSWin32-x86-multi-t
hread

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


C:\Users\G-Spider>cpan DBD::mysql
Reading 'C:\Users\G-Spider\.cpan\Metadata'
  Database was generated on Thu, 01 May 2014 02:06:08 GMT
DBD::mysql is up to date (4.027).

你可能感兴趣的:(Perl)