Re: Problem while installing module from CPAN on windows.
by marto (Cardinal) on Sep 02, 2014 at 12:15 UTC
|
"FAIL ! Installing Speedometer failed. See \.cpanm\build.log for details."
Unless you tell us what went wrong, it's difficult to help. Make it easy for people to help you. How do I post a question effectively?.
Update: your bundle does not include inc:
Can't locate inc/Module/Install.pm in @INC (you may need to install th
+e inc::Module::Install module) (@INC contains: D:/perl/site/lib D:/pe
+rl/vendor/lib D:/perl/lib .) at Makefile.PL line 4.
BEGIN failed--compilation aborted at Makefile.PL line 4.
D:\Speedometer-1.02>dir
Volume in drive D is Data
Volume Serial Number is F217-BC95
Directory of D:\Speedometer-1.02
02/09/2014 13:17 <DIR> .
02/09/2014 13:17 <DIR> ..
02/09/2014 12:42 116 Changes
02/09/2014 12:42 210 ignore.txt
02/09/2014 12:42 <DIR> lib
02/09/2014 12:42 850 Makefile.PL
02/09/2014 12:42 135 MANIFEST
02/09/2014 13:53 3,164 README
27/09/2013 14:40 <DIR> setup avast
02/09/2014 13:17 <DIR> t
See also On The Naming of Modules | [reply] [d/l] |
Re: Problem while installing module from CPAN on windows.
by marto (Cardinal) on Sep 02, 2014 at 13:47 UTC
|
D:\Speedometer-1.04>dmake
cp lib/Speedometer.pm blib\lib\Speedometer.pm
dmake: Warning: -- Target [pm_to_blib] was made but the time stamp ha
+s not been updated.
D:\Speedometer-1.04>dmake test
Skip blib\lib\Speedometer.pm (unchanged)
dmake: Warning: -- Target [pm_to_blib] was made but the time stamp ha
+s not been updated.
D:\perl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness"
+"-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib\li
+b', 'blib\arch')" t/*.t
t/00-load.t .......
t/00-load.t ....... 1/? # Failed test 'use Speedometer;'
# at t/00-load.t line 10.
# Tried to use 'Speedometer'.
# Error: Semicolon seems to be missing at D:\Speedometer-1.04\bli
+b\lib/Speedometer.pm line 53.
# Compilation failed in require at t/00-load.t line 10.
# BEGIN failed--compilation aborted at t/00-load.t line 10.
Bailout called. Further testing stopped:
Use of uninitialized value $Speedometer::VERSION in concatenation (.)
+or string at t/00-load.t line 13.
# Looks like you failed 1 test of 1.
# Looks like your test exited with 255 just after 1.
FAILED--Further testing stopped.
dmake: Error code 255, while making 'test_dynamic'
Update:
D:\Speedometer-1.05>perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Speedometer
Writing MYMETA.yml and MYMETA.json
D:\Speedometer-1.05>dmake
Makefile out-of-date with respect to Makefile.PL
Cleaning current config before rebuilding Makefile...
dmake -f Makefile.old clean > NUL
D:\perl\perl\bin\perl.exe Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Speedometer
Writing MYMETA.yml and MYMETA.json
==> Your Makefile has been rebuilt. <==
==> Please rerun the dmake command. <==
D:\perl\perl\bin\perl.exe -e "exit 1" --
dmake: Error code 129, while making 'Makefile'
D:\Speedometer-1.05>dmake
Makefile out-of-date with respect to Makefile.PL
Cleaning current config before rebuilding Makefile...
dmake -f Makefile.old clean > NUL
D:\perl\perl\bin\perl.exe Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Speedometer
Writing MYMETA.yml and MYMETA.json
==> Your Makefile has been rebuilt. <==
==> Please rerun the dmake command. <==
D:\perl\perl\bin\perl.exe -e "exit 1" --
dmake: Error code 129, while making 'Makefile'
| [reply] [d/l] [select] |
Re: Problem while installing module from CPAN on windows.
by Athanasius (Archbishop) on Sep 02, 2014 at 12:54 UTC
|
Hello kiranp, and welcome to the Monastery!
As marto noted, there is a problem with the module inc::Module::Install. This is usedd on line 4 of Makefile.PL, so on systems (such as mine) on which it’s not already installed, installation of the Speedometer module fails in the configuration phase.
But I wanted to point out that the main file, Speedometer.pm, is effectively empty. There are 136 lines, but these are mostly POD:
22:34 >perl -MO=Deparse Speedometer.pm
Semicolon seems to be missing at Speedometer.pm line 52.
package Speedometer;
sub BEGIN {
require 5.006;
}
use File::Glob ();
22:35 >
Looks like something went wrong when uploading to CPAN?
Hope that helps,
| [reply] [d/l] [select] |
|
|
Hi Athanasius, now i am getting following error
--> Working on http://cpan.metacpan.org/authors/id/K/KP/KPAWAR/Speedometer-1.06.zip
Fetching http://cpan.metacpan.org/authors/id/K/KP/KPAWAR/Speedometer-1.06.zip ... OK
Configuring Speedometer-1.06/ ... OK
==> Found dependencies: Benchmark
skipping R/RJ/RJBS/perl-5.20.0.tar.gz
Building and testing Speedometer-1.06 ... FAIL ! Installing
http://cpan.metacpan.org/authors/id/K/KP/KPAWAR/Speedometer-1.06.zip failed. See \.cpanm\build.log for details.
Thanks
| [reply] |
|
|
HI,
I have updated my file now
as this is my first attempt to submit module to CPAN, so i am bit confused about it
now i am getting following error
--> Working on http://cpan.metacpan.org/authors/id/K/KP/KPAWAR/Speedometer-1.06.zip
Fetching http://cpan.metacpan.org/authors/id/K/KP/KPAWAR/Speedometer-1.06.zip ... OK
Configuring Speedometer-1.06/ ... OK
==> Found dependencies: Benchmark
skipping R/RJ/RJBS/perl-5.20.0.tar.gz
Building and testing Speedometer-1.06 ... FAIL
! Installing http://cpan.metacpan.org/authors/id/K/KP/KPAWAR/Speedometer-1.06.zip failed. See \.cpanm\build.log for details.
Thanks
| [reply] |
|
|
You seem to be ignoring advice, but I'll try again. The build.log tells you where the problems are. You don't have to keep uploading broken module after broken module to cpan to test this out, simply trying to install your own module from the command line will also fail. Please consider renaming your module. IMHO modules should only be released to cpan when they are ready, this one has many mistakes. Previously I've emailed you at your cpan address to make you aware of these issues. Please read and understand the replies you already have.
Update your email just bounced:
The error that the other server returned was:
554 5.7.1 <removed@cpan.org>: Recipient address rejected: Access denie
+d
| [reply] [d/l] |
|
|
|
|
|
|
|
|
|
|
Re: Problem while installing module from CPAN on windows.
by marto (Cardinal) on Sep 03, 2014 at 09:14 UTC
|
Please mark any updates to your post (details in links previously supplied), you initial posting was regarding v1.02 of this module.
| [reply] |
|
|
All the issues regarding installations have been fixed successfully as there was issue with the pod_coverage
As it was my first attempt to submit module, some issues where there
Sorry, i couldn't find better name than this as this also fits to the bill. though it not fit perfectly to the naming convention but another example is Benchmark.pm which Speedometer depends.
Thanks all for your help
Kiran
| [reply] |
|
|
Benchmark is part of the perl core, it's name gives you a good idea what it's going to do. Speedometer on the other hand, doesn't suggest that it will basically just call Benchmark. Perhaps I am missing the point of Speedometer, but your documentation (as of v1.06, currently live on cpan) doesn't look complete. What advantage does it have over using the exiting core functionality?
"Sorry, i couldn't find better name than this as this also fits to the bill."
You were provided with various places to ask if you were unsure.
| [reply] |
|
|
|
|