wbraswell / alien-astyle

Alien::astyle, Use Perl To Build The Artistic Style Code Formatter On Any Platform
1 stars 0 forks source link

Error during module installation #8

Open wbcapri opened 7 years ago

wbcapri commented 7 years ago

perl Build.PL

WARNING: the following files are missing in your kit:

    appveyor.yml

Please inform the author.

During installation, the following errors occur. Can you help me solve these errors?

Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Alien-astyle' version '0.009000' DEV-T[n1403923@s15test11 Alien-astyle-0.009000-3]$ ./Build Building Alien-astyle Internal Exception at /opt/PerlAS/lib/perl5/site_perl/5.24.1/Alien/Base/ModuleBuild.pm line 396. Could not find any matching files at /opt/PerlAS/lib/perl5/site_perl/5.24.1/Alien/Base/ModuleBuild.pm line 396. no files found in repository at /opt/PerlAS/lib/perl5/site_perl/5.24.1/Alien/Base/ModuleBuild.pm line 407.

wbraswell commented 7 years ago

@wbcapri what happens if you try to install via cpan? cpanm --verbose Alien::astyle

wbcapri commented 7 years ago

cpanm -S --verbose Alien::astyle cpanm (App::cpanminus) 1.7043 on perl 5.024001 built for x86_64-linux-thread-multi Work directory is /home/N1403923/.cpanm/work/1499195436.12272 You have make /usr/bin/make You have LWP 6.26 You have /usr/bin/tar: tar (GNU tar) 1.26 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching Alien::astyle () on cpanmetadb ... ! Finding Alien::astyle on cpanmetadb failed. Searching Alien::astyle () on metacpan ... ! Could not find a release matching Alien::astyle () on MetaCPAN. Searching Alien::astyle on mirror http://www.cpan.org ... Downloading index file http://www.cpan.org/modules/02packages.details.txt.gz ... --> Working on Alien::astyle Fetching http://www.cpan.org/authors/id/W/WB/WBRASWELL/Alien-astyle-0.009000.tar.gz ... OK Unpacking Alien-astyle-0.009000.tar.gz ./Alien-astyle-0.009000/ ./Alien-astyle-0.009000/Build.PL ./Alien-astyle-0.009000/t/ ./Alien-astyle-0.009000/t/02_binary_executable.t ./Alien-astyle-0.009000/t/03_binary_version.t ./Alien-astyle-0.009000/t/01_use.t ./Alien-astyle-0.009000/inc/ ./Alien-astyle-0.009000/inc/My/ ./Alien-astyle-0.009000/inc/My/ModuleBuild.pm ./Alien-astyle-0.009000/META.yml ./Alien-astyle-0.009000/MANIFEST ./Alien-astyle-0.009000/README.md ./Alien-astyle-0.009000/README ./Alien-astyle-0.009000/Changes ./Alien-astyle-0.009000/lib/ ./Alien-astyle-0.009000/lib/Alien/ ./Alien-astyle-0.009000/lib/Alien/astyle.pm ./Alien-astyle-0.009000/LICENSE Entering Alien-astyle-0.009000 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.24) Checking if you have File::ShareDir 1.03 ... Yes (1.104) Checking if you have Alien::Base::ModuleBuild 0.020 ... Yes (0.040) Running Build.PL Configuring Alien-astyle-0.009000 ... WARNING: the following files are missing in your kit: appveyor.yml Please inform the author. Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Alien-astyle' version '0.009000' OK Checking dependencies from MYMETA.json ... Checking if you have IO::Socket::SSL 1.56 ... Yes (2.048) Checking if you have parent 0 ... Yes (0.234) Checking if you have Alien::Build 0.36 ... Yes (0.52) Checking if you have File::ShareDir 1.03 ... Yes (1.104) Checking if you have Net::SSLeay 1.49 ... Yes (1.81) Checking if you have Alien::gmake 0.17 ... Yes (0.19) Checking if you have Test::More 0.94 ... Yes (1.302083) Checking if you have Alien::Base 0 ... Yes (0.042) Building and testing Alien-astyle-0.009000 ... Building Alien-astyle Internal Exception at /opt/PerlAS/lib/perl5/site_perl/5.24.1/Alien/Base/ModuleBuild.pm line 396. Could not find any matching files at /opt/PerlAS/lib/perl5/site_perl/5.24.1/Alien/Base/ModuleBuild.pm line 396. no files found in repository at /opt/PerlAS/lib/perl5/site_perl/5.24.1/Alien/Base/ModuleBuild.pm line 407. FAIL ! Installing Alien::astyle failed. See /home/N1403923/.cpanm/work/1499195436.12272/build.log for details. Retry with --force to force install it.

wbraswell commented 7 years ago

@plicease Is this related to the current issues with Alien::Build???

plicease commented 7 years ago

No that error is coming from AB::MB which is unrelated to Alien-Build.

wbraswell commented 7 years ago

@plicease Okay who is responsible for Alien::Base::ModuleBuild?

plicease commented 7 years ago

This is probably a network error. The key error "Internal Exception" comes from HTTP::Tiny (could be a better error I agree). Then "no files found in repository" that is because after trying one repository it will try the next one, but since there is only one repository (almost all Build.PLs only specify one repository), it fails.

wbraswell commented 7 years ago

@wbcapri Are you on some kind of restrictive network, behind a firewall, on a VPN, having network issues, etc? Please try to run this command and let us know if you are able to properly download the AStyle tarball:

wget https://github.com/wbraswell/astyle-mirror/raw/master/backup/astyle_2.06_linux.tar.gz

wbcapri commented 7 years ago

It looks like I have a problem with firewall. How can I install this module differently?

wget --no-check-certificate https://github.com/wbraswell/astyle-mirror/raw/master/backup/astyle_2.06_linux.tar.gz --2017-07-24 09:08:20-- https://github.com/wbraswell/astyle-mirror/raw/master/backup/astyle_2.06_linux.tar.gz Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112 Connecting to github.com (github.com)|192.30.253.113|:443... connected. OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol Unable to establish SSL connection.

plicease commented 7 years ago

if you have a proxy you can try using the appropriate environment variables, I think HTTP::Tiny should pick them up:

https://metacpan.org/pod/HTTP::Tiny#PROXY-SUPPORT

alternatively you can point ABMB to a local mirror:

https://metacpan.org/pod/Alien::Base::ModuleBuild#ALIEN_${MODULENAME}_REPO_${PROTOCOL}_${KEY}