neniu
neniu

Reputation: 419

Does Devel::Peek exist as a standalone Perl module?

I have a clean install of perl 5.26.3, and I am trying to install Dancer2.

Dancer2 depends on App::Cmd::Setup, which depends on Getopt::Long::Descriptive, which depends on Params::Validate, which depends on Devel::Peek.

Looking at Devel::Peek on MetaCPAN, it is part of the perl 5.30.2 distribution, and I can not find the Devel::Peek package by itself. The "Jump to version" list on the Devel::Peek page lists previous version of perl, not of Devel::Peek.

Installing Dancer2 on perl 5.26.3 apparently has a hard, transitive dependency of installing perl 5.30.2, but I do not have the authority -- nor any desire -- to update the perl installation.

Is there a version of Devel::Peek available by itself?

Thank you.

Edit

It looks like I have a broken perl installation. I have no Data/Peek.pm anywhere on the filesystem. When I try to use Devel::Peek, I am told Can't locate Devel/Peek.pm in @INC.

I'll install from scratch and start over.

Upvotes: 4

Views: 615

Answers (3)

ikegami
ikegami

Reputation: 385789

No. It's only available as part of Perl. It's has been part of Perl since 5.6 in 2000.

As such, if you don't have Devel::Peek, you have a broken or partial Perl installation. But this is actually quite common, since many package managers break down Perl into different packages. For example, RHEL split off Devel::Peek into the perl-Devel-Peek package. So if we're talking about a Perl managed by a package manager, check the package manager for the missing bits.

Upvotes: 1

StevieD
StevieD

Reputation: 7443

For alpine, be sure to do apk add perl-dev to add additional modules needed to build some packages.

Upvotes: 1

Ωmega
Ωmega

Reputation: 43673

You should be able to fix it with the installation of

yum perl-Devel-Peek

Upvotes: 4

Related Questions