Install Perl module DBD::SQLcipher on Windows

倖福魔咒の 提交于 2019-12-11 17:15:01

问题


I need to install Perl module DBD::SQLcipher on windows 10 Perl version 5.16. the ppm package says

c:\>ppm install DBD::SQLcipher
ppm install failed: Can't find any package that provides DBD::SQLcipher

and the cpan module gives error:

c:\>cpan install DBD::SQLcipher
Microsoft (R) Program Maintenance Utility Version 14.00.23026.0
Copyright (C) Microsoft Corporation.  All rights reserved.

cp lib/DBD/SQLcipher/VirtualTable.pm blib\lib\DBD\SQLcipher\VirtualTable.pm
cp lib/DBD/SQLcipher.pm blib\lib\DBD\SQLcipher.pm
cp lib/DBD/SQLcipher/Fulltext_search.pod blib\lib\DBD\SQLcipher\Fulltext_search.pod
cp lib/DBD/SQLcipher/VirtualTable/FileContent.pm blib\lib\DBD\SQLcipher\VirtualTable\FileContent.pm
cp lib/DBD/SQLcipher/Cookbook.pod blib\lib\DBD\SQLcipher\Cookbook.pod
cp lib/DBD/SQLcipher/VirtualTable/PerlData.pm blib\lib\DBD\SQLcipher\VirtualTable\PerlData.pm
cp lib/DBD/SQLcipher/Constants.pm blib\lib\DBD\SQLcipher\Constants.pm
Running Mkbootstrap for DBD::SQLcipher ()
        C:\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 SQLcipher.bs
        C:\perl\bin\perl.exe C:\perl\site\lib\ExtUtils\xsubpp  -typemap C:\perl\lib\ExtUtils\typemap -typemap typemap  SQLcipher.xs > SQLcipher.xsc && C:\perl\bin\perl.exe -MExtUtils::Command -e mv -- SQLcipher.xsc SQLcipher.c
Cannot open 'SQLcipher.xsi': No such file or directory in constants.inc, line 367
NMAKE : fatal error U1077: 'C:\perl\bin\perl.exe' : return code '0x1'
Stop.
  TGASIBA/DBD-SQLcipher-0.02.tgz
  nmake.exe -- NOT OK

回答1:


Rules that should be added to the makefile aren't being added because of an exception which is being ignored. You can verify this by running

perl -MDBI -MDBI::DBD -e"print DBI::DBD->dbd_postamble"

There error is probably the following:

*** You're using Microsoft Visual C++ compiler or similar but
    the LIB and INCLUDE environment variables are not both set.

    You need to run the VCVARS32.BAT batch file that was supplied
    with the compiler before you can use it.

    A copy of vcvars32.bat can typically be found in the following
    directories under your Visual Studio install directory:
        Visual C++ 6.0:     vc98\bin
        Visual Studio .NET: vc7\bin

    Find it, run it, then retry this.

    If you think this error is not correct then just set the LIB and
    INCLUDE environment variables to some value to disable the check.

If so, it's reminding you that you need to run cpan DBD::SQLcipher within the shell created by vcvars32 as it will have environment variables needed by your compiler properly set.



来源:https://stackoverflow.com/questions/57737217/install-perl-module-dbdsqlcipher-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!