Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
619 views
in Technique[技术] by (71.8m points)

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

I installed ActivePerl 5.28, restarted the computer, added path variable, and ppm still doesn't work

PathVariables

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

dmakeCmd

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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:UsersBruker>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, and Win32-OLE. Then rebuilding and reinstalling, the ppm command finally worked:

enter image description here

The command cpan dmake still fails though, see also How to install dmake with perl?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...