首页 > 代码库 > Win8.1下Perl PPM启动问题

Win8.1下Perl PPM启动问题

 

  Win8.1(专业版)下执行Perl(版本5.18.2)的PPM工具提示:

C:\Users\宁>ppm
ppm gui failed: DBI connect(‘dbname=C:\Users\宁\AppData\Local/ActiveState/Active
Perl/1802/ppm-MSWin32-x64-multi-thread-5_18.db‘,‘‘,...) failed: unable to open d
atabase file

  经过多方查找:

    http://community.activestate.com/forum-topic/ppm-does-not-work-after-install

           

You can set the ACTIVEPERL_PPM_HOME environment variable to
point to a directory without extended Unicode characters in its name and PPM
will try to maintain its database in this directory instead.

Example:

set ACTIVEPERL_PPM_HOME=c:\perl\temp

就是说自己设置一个不含中文的目录(设置之前请确保目录存在),原因初步判断为目录中包含中文.