我在win8环境下安装DBD-mysql,但是报错如下。
我使用 ActivePerl 5.10、mysql 5.5。谁能帮我?
事实上,我不想从源代码安装。但是要找到一个 ppm 包并不容易。
如果不添加某些系统路径,则很容易处理。但是这个错误显示需要一些windows库,然后我真的不知道如何设置以及在哪里设置,因为这意味着我应该更改DBD-mysql的源代码?但是每次我使用'perl -MCPAN -e "install DBD::mysql"'命令安装时,它都会下载一个新的DBD-mysql包,所以即使我在本地修改了代码,它也没有用。
Creating library blib\arch\auto\DBD\mysql\mysql.lib and object blib\arch\auto
\DBD\mysql\mysql.exp
mysqlclient.lib(handshake_client.obj) : error LNK2019: unresolved external symbo
l __imp__InitializeSecurityContextW@48 referenced in function "public: virtual c
lass Blob __thiscall Handshake_client::process_data(class Blob const &)" (?proce
ss_data@Handshake_client@@UAE?AVBlob@@ABV2@@Z)
mysqlclient.lib(handshake.obj) : error LNK2019: unresolved external symbol _Comp
leteAuthToken@8 referenced in function "protected: bool __thiscall Handshake::pr
ocess_result(int)" (?process_result@Handshake@@IAE_NH@Z)
mysqlclient.lib(handshake.obj) : error LNK2019: unresolved external symbol _Free
ContextBuffer@4 referenced in function "public: void __thiscall Security_buffer:
:free(void)" (?free@Security_buffer@@QAEXXZ)
mysqlclient.lib(handshake.obj) : error LNK2019: unresolved external symbol _Acqu
ireCredentialsHandleA@36 referenced in function "public: __thiscall Handshake::H
andshake(char const *,enum Handshake::side_t)" (??0Handshake@@QAE@PBDW4side_t@0@
@Z)
mysqlclient.lib(handshake.obj) : error LNK2019: unresolved external symbol __imp
__DeleteSecurityContext@4 referenced in function "public: virtual __thiscall Han
dshake::~Handshake(void)" (??1Handshake@@UAE@XZ)
mysqlclient.lib(handshake.obj) : error LNK2019: unresolved external symbol __imp
__FreeCredentialsHandle@4 referenced in function "public: virtual __thiscall Han
dshake::~Handshake(void)" (??1Handshake@@UAE@XZ)
mysqlclient.lib(common.obj) : error LNK2019: unresolved external symbol _GetUser
NameExW@12 referenced in function "public: __thiscall UPN::UPN(void)" (??0UPN@@Q
AE@XZ)
blib\arch\auto\DBD\mysql\mysql.dll : fatal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x1'
Stop.
CAPTTOFU/DBD-mysql-4.028.tar.gz
nmake -- NOT OK