简体   繁体   English

安装 ActiveState Perl 后 ppm 不起作用

[英]ppm doesn't work after installing ActiveState Perl

I'm trying to install OpenSSL for a mongodb example, but can't install some perl packages我正在尝试为 mongodb 示例安装 OpenSSL,但无法安装一些 perl 包

I installed ActivePerl 5.28, restarted the computer, added path variable, and ppm still doesn't work我安装了ActivePerl 5.28,重启了电脑,添加了路径变量,ppm还是不行

路径变量

When i type ppm into cmd it returns当我在 cmd 中输入 ppm 时,它会返回

'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 Cpan 工作,但我无法安装一些软件包,如 dmake

dmakeCmd

Seems like you need to add the ActivePerl-PPM package to the Active Platform perl project before downloading the installer .exe .似乎您需要在下载安装程序.exe之前将ActivePerl-PPM package 添加到 Active Platform perl 项目中。

  • First, remove the old installation of ActivePerl (I am not sure if this is necessary though).首先,删除旧的 ActivePerl 安装(但我不确定这是否必要)。 Double-Click the installer .exe , typically something like: ActivePerl-5.28.1.0000-MSWin32-x64-832ee6ab.exe , then click "Next" and then click "Remove".双击安装程序.exe ,通常类似于: ActivePerl-5.28.1.0000-MSWin32-x64-832ee6ab.exe ,然后单击“下一步”,然后单击“删除”。

  • Now, go to the Active Platform page of the forked perl project: https://platform.activestate.com现在,go 到分叉的 perl 项目的 Active Platform 页面: https://platform.activestate.Z4D5Z6D9A2DDAB2C

  • Click the configuration tab of the project and click "Add packages"单击项目的配置选项卡,然后单击“添加包”

  • Add the package "ActivePerl-PPM", click "Add" and then "Done".添加 package “ActivePerl-PPM”,单击“添加”,然后单击“完成”。

  • 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:安装新版本后,我从命令提示符中得到以下 output:

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.所以至少现在它找到了ppm可执行文件,但仍然缺少模块。

Edit :编辑

After also adding two more packages to the build: Win32-Console , and Win32-OLE .在构建中添加了另外两个包之后: Win32-ConsoleWin32-OLE Then rebuilding and reinstalling, the ppm command finally worked:然后重建并重新安装, ppm命令终于奏效了:

在此处输入图像描述

The command cpan dmake still fails though, see also How to install dmake with perl?但命令cpan dmake仍然失败,另请参阅如何使用 perl 安装 dmake?

I meet the same problem with yours.我遇到了同样的问题。 Could tell me how to add "Win32-Console, and Win32-OLE" to build?能告诉我如何添加“Win32-Console, and Win32-OLE”来构建吗?

Thanks!谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM