问题描述
我正在尝试为 mongodb 示例安装 OpenSSL,但无法安装某些 perl 包
我安装了ActivePerl 5.28,重启了电脑,添加了路径变量,ppm还是不行
当我在 cmd 中输入 ppm 时它返回
'ppm' 不被识别为内部或外部命令,可运行的程序或批处理文件.
Cpan 可以工作,但我无法安装某些软件包,例如 dmake
好像需要在下载安装程序 .exe 之前将
ActivePerl-PPM
包添加到 Active Platform perl 项目中.
首先,删除旧的 ActivePerl 安装(不过我不确定这是否有必要).双击安装程序
.exe
,通常类似于:ActivePerl-5.28.1.0000-MSWin32-x64-832ee6ab.exe
,然后单击下一步",然后单击删除"".现在,转到分叉的 perl 项目的 Active Platform 页面:
命令
cpan dmake
仍然失败,另见 如何使用 perl 安装 dmake?I'm trying to install OpenSSL for a mongodb example, but can't install some perl packages
I installed ActivePerl 5.28, restarted the computer, added path variable, and ppm still doesn't work
When i type ppm into cmd it returns
'ppm' is not recognized as an internal or external command, operable program or batch file.
Cpan works but I can't install some packages like dmake
解决方案
Seems like you need to add the
ActivePerl-PPM
package to the Active Platform perl project before downloading the installer.exe
.First, remove the old installation of ActivePerl (I am not sure if this is necessary though). Double-Click the installer
.exe
, typically something like:ActivePerl-5.28.1.0000-MSWin32-x64-832ee6ab.exe
, then click "Next" and then click "Remove".Now, go to the Active Platform page of the forked perl project:https://platform.activestate.com
Click the configuration tab of the project and click "Add packages"
Add the package "ActivePerl-PPM", click "Add" and then "Done".
Still in the configuration tab, click "Commit changes"
From the "Overview" tab, click the download button for the new build.
After installing the new build, I get the following output from the Command Prompt:
C:\Users\Bruker>ppm ppm gui failed: Can't locate Win32/OLE.pm in @INC (you may need to install the Win32::OLE module) (@INC contains: C:/Perl64/lib C:/Perl64/site/lib)
So at least now it finds the
ppm
executable, but there are still missing modules.Edit:
After also adding two more packages to the build:
Win32-Console
, andWin32-OLE
. Then rebuilding and reinstalling, theppm
command finally worked:The command
cpan dmake
still fails though, see also How to install dmake with perl?这篇关于安装 ActiveState Perl 后 ppm 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!