aws-sdk-perl
aws-sdk-perl copied to clipboard
Install hangs on cpan
I'm trying to install Paws::EC2 with.. cpan Paws::EC2 (testing it on an old dev install, so it's 5.10.1
It chugs through a lot of stuff, but gets as far as
Paws-0.38/lib/Paws/SimpleWorkflow/RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.pm
And then hangs, using 100% cpu. I've tried strace to see what it's up to, but there's nothing output.
Hi,
This seems like an issue on old CentOS / RedHats with Perl 5.10
Take a look at https://github.com/pplu/aws-sdk-perl/issues/183. Basically the solution was to untar the Paws tar.gz manually and run what CPAN does manually.
Also: a new version (0.39) has just hit CPAN. It uses a new installer (Module::Builder::Tiny) that hopefully doesn't hang on CentOS. Can you try out the new version?
Hi, 0.39 has the same problem, but I'll try the manual method. Thanks.
And that has various dependencies with Carton that doesn't seem to work for other reasons, so no problem, I'm currently just using the ec2 console tools. Thanks for the help anyway.
And that has various dependencies with Carton that doesn't seem to work for other reasons, so no problem, I'm currently just using the ec2 console tools. Thanks for the help anyway.
What modules are giving you problems? Normally it's because of compiled modules that can't find the libraries. Take a look at https://github.com/pplu/aws-sdk-perl#development-setup where the SO libraries are documented.
Hope it helps!
Note: if you're going to use the console tools this module may help you https://metacpan.org/pod/AWS::CLIWrapper
Thanks I'll give that a go. I'm happy to close if you want. Just if it's any use to anyone I'm including the end of an strace.
) = 95
write(1, "Paws-0.39/lib/Paws/KinesisAnalyticsV2/DeleteApplicationInputProcessingConfigurationResponse.pm\n", 95Paws-0.39/lib/Paws/KinesisAnalyticsV2/DeleteApplicationInputProcessingConfigurationResponse.pm
) = 95
write(1, "Paws-0.39/t/10_responses/autoscaling-describe-auto-scaling-notification-types.response.test.yml\n", 96Paws-0.39/t/10_responses/autoscaling-describe-auto-scaling-notification-types.response.test.yml
) = 96
write(1, "Paws-0.39/lib/Paws/SimpleWorkflow/RequestCancelExternalWorkflowExecutionFailedEventAttributes.pm\n", 97Paws-0.39/lib/Paws/SimpleWorkflow/RequestCancelExternalWorkflowExecutionFailedEventAttributes.pm
) = 97
write(1, "Paws-0.39/lib/Paws/ServiceCatalog/BatchDisassociateServiceActionFromProvisioningArtifactOutput.pm\n", 98Paws-0.39/lib/Paws/ServiceCatalog/BatchDisassociateServiceActionFromProvisioningArtifactOutput.pm
) = 98
write(1, "Paws-0.39/lib/Paws/SimpleWorkflow/RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.pm\n", 100Paws-0.39/lib/Paws/SimpleWorkflow/RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.pm
) = 100
brk(0x16871000) = 0x16871000
pipe([3, 5]) = 0
pipe([6, 7]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f7bd95e99d0) = 10767
close(7) = 0
close(5) = 0
read(6, "", 4) = 0
close(6) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff27fe2e50) = -1 EINVAL (Invalid argument)
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
read(3, "/root/.cpan/build/tmp-10617\n", 4096) = 28
read(3, "", 4096) = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
close(3) = 0
rt_sigaction(SIGHUP, {SIG_IGN, [], SA_RESTORER, 0x7f7bd816e7e0}, {SIG_DFL, [], SA_RESTORER, 0x7f7bd816e7e0}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f7bd816e7e0}, {SIG_DFL, [], SA_RESTORER, 0x7f7bd816e7e0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0x7f7bd816e7e0}, {SIG_DFL, [], SA_RESTORER, 0x7f7bd816e7e0}, 8) = 0
wait4(10767, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 10767
rt_sigaction(SIGHUP, {SIG_DFL, [], SA_RESTORER, 0x7f7bd816e7e0}, NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f7bd816e7e0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7f7bd816e7e0}, NULL, 8) = 0
Installing with strawberry perl from windows results in failure due to:
- Paws::S3 is not stable / supported / entirely developed This results in not being able (for some reason) to install the module i wanted: Paws::EC2::DescribeVolumes
bottom line:
Result: FAIL JLMARTIN/Paws-0.41.tar.gz C:\Strawberry\perl\bin\perl.exe ./Build test -- NOT OK
Force installing (no tests) Paws on a Windows should give you a working Paws. It fails one test that should be skipped on Windows #259
Sadly, even with force install, i get failure: Test Summary Report
t/04_credentials.t (Wstat: 256 Tests: 48 Failed: 0) Non-zero exit status: 1 Parse errors: No plan found in TAP output t/10_responses.t (Wstat: 0 Tests: 9900 Failed: 0) TODO passed: 6364, 6370, 7896, 9579, 9586, 9671 t/18_mocked.t (Wstat: 0 Tests: 4007 Failed: 0) TODO passed: 91-143, 145-154, 156-173, 175-222, 224-262 264-322, 324-330 Files=26, Tests=14894, 312 wallclock secs ( 1.39 usr + 0.06 sys = 1.45 CPU) Result: FAIL JLMARTIN/Paws-0.41.tar.gz C:\Strawberry\perl\bin\perl.exe ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports JLMARTIN/Paws-0.41.tar.gz Stopping: 'install' failed for 'Paws'.