duckduckgo / p5-app-duckpan

DuckDuckHack OpenSource Development Application
http://metacpan.org/module/App::DuckPAN
Other
53 stars 47 forks source link

Cannot install DuckPAN: Failed to install dep Class-Accessor-Classy #332

Closed xaviervalarino closed 8 years ago

xaviervalarino commented 8 years ago

I have been having some trouble installing duckpan locally on debian jessie.

output of uname -a:

Linux pinguino 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux

output of curl http://duckpan.org/install.pl | perl:

 ____             _    ____             _     ____
|  _ \ _   _  ___| | _|  _ \ _   _  ___| | __/ ___| ___
| | | | | | |/ __| |/ / | | | | | |/ __| |/ / |  _ / _ \
| |_| | |_| | (__|   <| |_| | |_| | (__|   <| |_| | (_) |
|____/ \__,_|\___|_|\_\____/ \__,_|\___|_|\_\\____|\___/
=========================================================

Found running local::lib...

Installing App::DuckPAN...

[WARNING] This may take a while :-)

--> Working on Module::Finder
Fetching http://www.cpan.org/authors/id/E/EW/EWILHELM/Module-Finder-v0.1.5.tar.gz ... OK
Configuring Module-Finder-v0.1.5 ... OK
==> Found dependencies: Class::Accessor::Classy
--> Working on Class::Accessor::Classy
Fetching http://www.cpan.org/authors/id/E/EW/EWILHELM/Class-Accessor-Classy-v0.9.1.tar.gz ... OK
Configuring Class-Accessor-Classy-v0.9.1 ... OK
Building and testing Class-Accessor-Classy-v0.9.1 ... OK
Successfully installed Class-Accessor-Classy-v0.9.1
! Installing the dependencies failed: Module 'Class::Accessor::Classy' is not installed
! Bailing out the installation for Module-Finder-v0.1.5.
--> Working on Module::Extract::VERSION
Fetching http://www.cpan.org/authors/id/B/BD/BDFOY/Module-Extract-VERSION-1.01.tar.gz ... OK
Configuring Module-Extract-VERSION-1.01 ... OK
Building and testing Module-Extract-VERSION-1.01 ... OK
Successfully installed Module-Extract-VERSION-1.01
2 distributions installed

[ERROR] Failure on install of modules!

This could have several reasons, for first you can just restart this installer,
cause it could be a pure download problem. If this isnt the case, please read
the build.log mentioned on the errors and see if you can fix the problem
yourself. Otherwise, please report the problem via email to use at
open@duckduckgo.com with the build.log attached. If there is no build.log
mentioned, just attach the output you see.

contents of ~/.cpanm/build.log:

cpanm (App::cpanminus) 1.7040 on perl 5.020002 built for x86_64-linux-gnu-thread-multi
Work directory is /home/xavier/.cpanm/work/1461617075.23548
You have make /usr/bin/make
You have LWP 6.08
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 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 Module::Finder () on cpanmetadb ...
--> Working on Module::Finder
Fetching http://www.cpan.org/authors/id/E/EW/EWILHELM/Module-Finder-v0.1.5.tar.gz
-> OK
Unpacking Module-Finder-v0.1.5.tar.gz
Entering Module-Finder-v0.1.5
Checking configure dependencies from META.yml
Checking if you have ExtUtils::Install 1.46 ... Yes (1.67)
Checking if you have Module::Build 0.38 ... Yes (0.4210)
Configuring Module-Finder-v0.1.5
Running Build.PL
Checking prerequisites...
  requires:
    !  Class::Accessor::Classy is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Module-Finder' version 'v0.1.5'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Module::Build 0.26 ... Yes (0.4210)
Checking if you have Class::Accessor::Classy v0.1.3 ... No
Checking if you have Test::More 0 ... Yes (1.001002)
==> Found dependencies: Class::Accessor::Classy
Searching Class::Accessor::Classy (v0.1.3) on cpanmetadb ...
--> Working on Class::Accessor::Classy
Fetching http://www.cpan.org/authors/id/E/EW/EWILHELM/Class-Accessor-Classy-v0.9.1.tar.gz
-> OK
Unpacking Class-Accessor-Classy-v0.9.1.tar.gz
Entering Class-Accessor-Classy-v0.9.1
Checking configure dependencies from META.yml
Checking if you have ExtUtils::Install 1.46 ... Yes (1.67)
Checking if you have Module::Build 0.38 ... Yes (0.4210)
Configuring Class-Accessor-Classy-v0.9.1
Running Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Class-Accessor-Classy' version 'v0.9.1'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have version 0 ... Yes (0.9909)
Checking if you have Test::More 0 ... Yes (1.001002)
Checking if you have Module::Build 0.28 ... Yes (0.4210)
Building and testing Class-Accessor-Classy-v0.9.1
Building Class-Accessor-Classy
# Testing Class::Accessor::Classy v0.9.1
t/00-load.t ..... ok
t/01-basic.t .... ok
t/02-report.t ... ok
t/03-class.t .... ok
t/04-list.t ..... ok
t/05-set-get.t .. ok
t/lvalue.t ...... ok
All tests successful.
Files=7, Tests=188,  1 wallclock secs ( 0.08 usr  0.01 sys +  0.45 cusr  0.04 csys =  0.58 CPU)
Result: PASS
Building Class-Accessor-Classy
-> OK
Successfully installed Class-Accessor-Classy-v0.9.1
Installing /home/xavier/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Accessor-Classy-v0.9.1/install.json
-> FAIL Installing the dependencies failed: Module 'Class::Accessor::Classy' is not installed
-> FAIL Bailing out the installation for Module-Finder-v0.1.5.
Searching Module::Extract::VERSION () on cpanmetadb ...
--> Working on Module::Extract::VERSION
Fetching http://www.cpan.org/authors/id/B/BD/BDFOY/Module-Extract-VERSION-1.01.tar.gz
-> OK
Unpacking Module-Extract-VERSION-1.01.tar.gz
Entering Module-Extract-VERSION-1.01
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (6.98)
Configuring Module-Extract-VERSION-1.01
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Module::Extract::VERSION
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.98)
Checking if you have Test::More 0 ... Yes (1.001002)
Building and testing Module-Extract-VERSION-1.01
cp lib/Module/Extract/VERSION.pm blib/lib/Module/Extract/VERSION.pm
Manifying blib/man3/Module::Extract::VERSION.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/corpus.t ........ ok
t/load.t .......... ok
t/pod.t ........... skipped: Test::Pod 1.00 required for testing POD
t/pod_coverage.t .. skipped: Test::Pod::Coverage 1.00 required for testing POD coverage
t/prereq.t ........ skipped: Test::Prereq required to test dependencies
All tests successful.
Files=5, Tests=11,  0 wallclock secs ( 0.05 usr  0.01 sys +  0.23 cusr  0.00 csys =  0.29 CPU)
Result: PASS
Appending installation info to /home/xavier/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod
-> OK
Successfully installed Module-Extract-VERSION-1.01
Installing /home/xavier/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Extract-VERSION-1.01/install.json
2 distributions installed

I also attempted to install the missing dependency manually:

$ cpanm Class::Accessor::Classy

--> Working on Class::Accessor::Classy
Fetching http://www.cpan.org/authors/id/E/EW/EWILHELM/Class-Accessor-Classy-v0.9.1.tar.gz ... OK
Configuring Class-Accessor-Classy-v0.9.1 ... OK
Building and testing Class-Accessor-Classy-v0.9.1 ... OK
Successfully installed Class-Accessor-Classy-v0.9.1
1 distribution installed

This, along with cpanm Test::More --notest and cpanm Test::More --force do not change the install script error msg or build.log

It seems very odd to me that cpanm says Class-Accessor-Classy is installed, but that the dependency is not installed. Are they they different? Is this a $PATH issue?

mintsoft commented 8 years ago

@xaviervalarino Have you tried installing the system package for Class::Accessor::Classy ? I think it's libclass-accessor-perl

I had few problems getting my Debian install to work using just cpanm when I originally set it up and ended up putting a few system packages on, although I'm not sure if this was one of them.

xaviervalarino commented 8 years ago

@mintsoft Thanks! I installed the package, but still no dice.

I am still gettting these odd lines in the build.log about Classy being installed, but that it can't be installed as a dep:

...
Successfully installed Class-Accessor-Classy-v0.9.1
Installing /home/xavier/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Accessor-Classy-v0.9.1/install.json
-> FAIL Installing the dependencies failed: Module 'Class::Accessor::Classy' is not installed
-> FAIL Bailing out the installation for Module-Finder-v0.1.5.
xaviervalarino commented 8 years ago

After installing libclass-accessor-perl and deleting my existing perl5 directory, installation went off without a hitch.

Closing.

mintsoft commented 8 years ago

:+1: Good to hear!