Closed mwilliamsr closed 1 year ago
have you installed
perl-core autoconf automake
Hi @moetiker, good afternoon!
I am able to observe the same error, on a CentOS 7.9.2009 system.
I am using the 0.21.1 release .tar.gz file, so I did not run bootstrap.sh. autoconf and automake were already installed for something else on the system.
@akkornel please try replacing the content of the file cpanfile
with this:
requires 'Mojolicious' , '>= 8.73, <9.0';
requires 'Fcntl', '>= 1.13';
requires 'Symbol', '>= 1.08';
requires 'Mojo::IOLoop::ForkCall';
requires 'Scalar::Util', '>= 1.45';
requires 'Test::SharedFork';
requires 'Test::Exception';
requires 'Test::More';
My colleage Taymoor reported a possible workaround by installing the perl-IO-Pipely package (version 0.005-4.el7) from EPEL. I was able to verify that.
The original system I was using now has znapzend installed & running, so I've launched a fresh CentOS 7.9.2009 VM, and reproduced the original problem, before continuing.
The build succeeded, and the programs seem to be OK. So, there seems to be a workaround with EPEL.
I will remove the perl-IO-Pipely package, and next test with your updated cpanfile
.
Hello again,
Since my previous comment, I uninstalled the perl-IO-Pipely package, unpacked a fresh copy of znapzend-0.21.1.tar.gz, and updated the cpanfile as you described:
requires 'Mojolicious' , '>= 8.73, <9.0';
requires 'Fcntl', '>= 1.13';
requires 'Symbol', '>= 1.08';
requires 'Mojo::IOLoop::ForkCall';
requires 'Scalar::Util', '>= 1.45';
requires 'Test::SharedFork';
requires 'Test::Exception';
requires 'Test::More';
However, when I ran the configure script…
… I noticed the cpanfile was overwritten. So, I changed cpanfile.in to this:
requires 'Mojolicious' @MOJOLICIOUS_VERSION_CONSTRAINT@;
requires 'Fcntl', '>= 1.13';
requires 'Symbol', '>= 1.08';
requires 'Mojo::IOLoop::ForkCall';
requires 'Scalar::Util', '>= 1.45';
requires 'Test::SharedFork';
requires 'Test::Exception';
requires 'Test::More';
After re-running the configure script, that gave me this cpanfile:
requires 'Mojolicious' , '>= 8.73, <9.0';
requires 'Fcntl', '>= 1.13';
requires 'Symbol', '>= 1.08';
requires 'Mojo::IOLoop::ForkCall';
requires 'Scalar::Util', '>= 1.45';
requires 'Test::SharedFork';
requires 'Test::Exception';
requires 'Test::More';
With that, I was able to proceed!
So, it seem the make still failed. And I don't see carton trying to upgrade either the Fcntl or Symbol modules.
It has been some time since I worked in Perl (before Carton, which I just discovered when I was looking through this code!), but on MetaCPAN, I noticed that both Fcntl and Symbol are part of the perl distribution. Maybe that is why Carton is ignoring those entries in the cpanfile?
Hi @akkornel, oops ... try to put the two Fnctl and Symbol lines first. Normally it is still possible to upgrade 'old' packages even when they are normally included in the core distro.
Hi @oetiker, unfortunately that does not solve the problem.
Here is what I used for cpanfile.in
:
requires 'Fcntl', '>= 1.13';
requires 'Symbol', '>= 1.08';
requires 'Mojolicious' @MOJOLICIOUS_VERSION_CONSTRAINT@;
requires 'Mojo::IOLoop::ForkCall';
requires 'Scalar::Util', '>= 1.45';
requires 'Test::SharedFork';
requires 'Test::Exception';
requires 'Test::More';
After running configure
, here is the generated cpanfile
:
requires 'Fcntl', '>= 1.13';
requires 'Symbol', '>= 1.08';
requires 'Mojolicious' , '>= 8.73, <9.0';
requires 'Mojo::IOLoop::ForkCall';
requires 'Scalar::Util', '>= 1.45';
requires 'Test::SharedFork';
requires 'Test::Exception';
requires 'Test::More';
So unfortunately, moving the entries does not solve the problem.
And hello again!
Thanks to my colleague Taymoor, I got a suggestion to check out some older versions. And I found that znapzend 0.19.1 is able to build successfully.
Checking back older releases, it seems 0.20.0 is the first one with the failure:
But that is weird, because we were using 0.21.0 successfully in the past. However, our systems our configured 'diskless', with no OS drives. That means, when systems boot, they download an OS image over the network. As part of that, they rebuild and install znapzend at boot time.
So, I think what happened is, one of the upstream dependencies changed some time before February 25. That would explain why even 0.20.0 is failing to build.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello!
@stale please revive!
I noticed #576 might have resolved this, so I'll make a note to give it a test this week or next.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Getting error when running 'make'...
PERL_CPANM_OPT= PERL_CPANM_HOME=/root/Git/znapzend/thirdparty DBD_ODBC_UNICODE=1 PERL5LIB=/root/Git/znapzend/thirdparty/carton/lib/perl5 PERL_CARTON_PATH=/root/Git/znapzend/thirdparty /usr/bin/perl /root/Git/znapzend/thirdparty/carton/bin/carton install Installing modules using /root/Git/znapzend/cpanfile Successfully installed Scalar-List-Utils-1.61 (upgraded from 1.25) Successfully installed Sub-Uplevel-0.2800 Successfully installed Test-Exception-0.43 Successfully installed ExtUtils-MakeMaker-7.64 (upgraded from 6.63_02) Successfully installed Test-SharedFork-0.35 Successfully installed Exporter-5.74 (upgraded from 5.66) Successfully installed IO-1.48 (upgraded from 1.35) ! Installing the dependencies failed: Installed version (1.11) of Fcntl is not in range '1.13', Installed version (1.07) of Symbol is not in range '1.08' ! Bailing out the installation for IO-Pipely-0.006. Successfully installed Test-Harness-3.42 Successfully installed ExtUtils-Helpers-0.026 Successfully installed ExtUtils-Config-0.008 Successfully installed ExtUtils-InstallPaths-0.012 Successfully installed Module-Build-Tiny-0.039 Successfully installed CPAN-Meta-YAML-0.018 (upgraded from 0.007) Successfully installed JSON-PP-4.07 (upgraded from 2.27200) Successfully installed CPAN-Meta-Requirements-2.140 (upgraded from 2.120630) Successfully installed CPAN-Meta-2.150010 (upgraded from 2.120630) Successfully installed Module-Build-0.4231 (upgraded from 0.39_01) Successfully installed IO-Socket-IP-0.41 Successfully installed Mojolicious-8.73 Successfully installed Mojo-IOLoop-Delay-8.76 ! Installing the dependencies failed: Module 'IO::Pipely' is not installed ! Bailing out the installation for Mojo-IOLoop-ForkCall-0.21. ! Installing the dependencies failed: Module 'Mojo::IOLoop::ForkCall' is not installed ! Bailing out the installation for /root/Git/znapzend/. 20 distributions installed Installing modules failed make[1]: [cpanfile-5.16.snapshot] Error 25 make[1]: Leaving directory `/root/Git/znapzend/thirdparty' make: [all-recursive] Error 1