Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mech runs back to Perl 5.8, but LWP requires 5.14 #385

Open
petdance opened this issue Nov 22, 2024 · 3 comments
Open

Mech runs back to Perl 5.8, but LWP requires 5.14 #385

petdance opened this issue Nov 22, 2024 · 3 comments

Comments

@petdance
Copy link
Contributor

I'm on a Perl 5.10 install doing a fresh build of Mech and am unable to install prereqs.

IO::Socket::IP requires 5.14, and Test::Deep requires 5.12.

--> Working on LWP
Fetching http://www.cpan.org/authors/id/O/OA/OALDERS/libwww-perl-6.77.tar.gz ... OK
Configuring libwww-perl-6.77 ... OK
==> Found dependencies: HTTP::Daemon, HTTP::CookieJar::LWP
--> Working on HTTP::Daemon
Fetching http://www.cpan.org/authors/id/O/OA/OALDERS/HTTP-Daemon-6.16.tar.gz ... OK
Configuring HTTP-Daemon-6.16 ... OK
==> Found dependencies: IO::Socket::IP
--> Working on IO::Socket::IP
Fetching http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-0.42.tar.gz ... OK
Configuring IO-Socket-IP-0.42 ... OK
Needs perl 5.014, you have 5.010001
! Installing the dependencies failed: Your Perl (5.010001) is not in the range '5.014'
! Bailing out the installation for IO-Socket-IP-0.42.
! Installing the dependencies failed: Module 'IO::Socket::IP' is not installed
! Bailing out the installation for HTTP-Daemon-6.16.
--> Working on HTTP::CookieJar::LWP
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/HTTP-CookieJar-0.014.tar.gz ... OK
Configuring HTTP-CookieJar-0.014 ... OK
==> Found dependencies: Test::Deep
--> Working on Test::Deep
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Test-Deep-1.204.tar.gz ... OK
Configuring Test-Deep-1.204 ... N/A
! Configure failed for Test-Deep-1.204. See /Users/andy/.cpanm/work/1732316440.12571/build.log for details.
! Installing the dependencies failed: Module 'Test::Deep' is not installed
! Bailing out the installation for HTTP-CookieJar-0.014.
! Installing the dependencies failed: Module 'HTTP::Daemon' is not installed, Module 'HTTP::CookieJar::LWP' is not installed
! Bailing out the installation for libwww-perl-6.77.
@oalders
Copy link
Member

oalders commented Nov 23, 2024

I guess the solution would be to install earlier versions of those modules before attempting the Mech install? I'm not sure what else we could do here.

@petdance
Copy link
Contributor Author

I'm thinking maybe we don't need to support all the way back to 5.8.

@skaji
Copy link
Member

skaji commented Nov 23, 2024

FYI:

I tried preparing CPAN index files for older versions of Perl at
https://github.com/skaji/perl-cpan-index-legacy

❯ perl -v
This is perl, v5.8.1 built for darwin-2level

❯ curl -fsSL https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install --resolver 02packages,https://raw.githubusercontent.com/skaji/perl-cpan-index-legacy/main/5.8.1.txt,https://cpan.metacpan.org WWW::Mechanize
WARN You don't have Module::CoreList. The local-lib may result in incomplete self-contained directory.
DONE install ExtUtils-MakeMaker-7.70
DONE install Perl-OSType-1.010
DONE install Carp-1.50
DONE install Exporter-5.78
DONE install Locale-Maketext-Simple-0.21
DONE install Params-Check-0.38
DONE install Term-Table-0.023
DONE install version-0.9933
DONE install Module-CoreList-5.20241120
DONE install Module-Metadata-1.000038
DONE install Test-Simple-1.302204
DONE install PathTools-3.75
DONE install Module-Load-0.36
DONE install Module-Load-Conditional-0.74
DONE install IPC-Cmd-1.04
DONE install ExtUtils-CBuilder-0.280236
DONE install ExtUtils-ParseXS-3.51
DONE install Scalar-List-Utils-1.68
DONE install parent-0.242
DONE install HTML-Tagset-3.20
DONE install LWP-MediaTypes-6.04
DONE install MIME-Base32-1.303
DONE install Clone-0.47
DONE install Try-Tiny-0.32
DONE install URI-5.31
DONE install Test-Harness-3.50
DONE install Compress-Raw-Zlib-2.213
DONE install Compress-Raw-Bzip2-2.213
DONE install Module-Build-0.4234
DONE install WWW-RobotRules-6.02
DONE install Time-Local-1.35
DONE install IO-Compress-2.213
DONE install TimeDate-2.33
DONE install Test-Fatal-0.017
DONE install Net-HTTP-6.23
DONE install HTTP-Date-6.06
DONE install File-Listing-6.16
DONE install Encode-3.21
DONE install Encode-Locale-1.05
DONE install IO-HTML-1.004
DONE install HTTP-Message-7.00
DONE install HTTP-Negotiate-6.01
DONE install HTTP-Cookies-6.11
DONE install HTML-Parser-3.83
DONE install HTML-Tree-5.07
DONE install HTML-Form-6.12
DONE install libwww-perl-6.77
DONE install WWW-Mechanize-2.19
48 distributions installed.

However,

I'm thinking maybe we don't need to support all the way back to 5.8.

I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants