Discussion:
Perplexing bug report on Inline::CPP
David Oswald
2012-08-13 22:51:08 UTC
Permalink
I just got a strange bug report on Inline::CPP, and don't see what the
issue is. This is against the current version, v0.39.

Here's the report:

----------------------------

I tried to install Inline::Cpp into Strawberry perl running under
Windows XP (32 bit) but the build.log records FAIL:

cpanm (App::cpanminus) 1.5013 on perl 5.014002 built for
MSWin32-x86-multi-thread
Work directory is /.cpanm/work/1344884468.1676
You have make C:\Dwimperl\c\bin\dmake.exe
You have LWP 6.03
Falling back to Archive::Tar 1.80
Searching Inline::CPP on cpanmetadb ...
--> Working on Inline::CPP
Fetching http://www.cpan.org/authors/id/D/DA/DAVIDO/Inline-CPP-0.39.tar.gz
-> OK
Unpacking Inline-CPP-0.39.tar.gz
Entering .
META.yml not found or unparsable. Fetching META.yml from search.cpan.org
Configuring Inline-CPP-0.39
-> N/A
-> FAIL The distribution doesn't have a proper Makefile.PL/Build.PL
See \.cpanm\build.log for details.

Any ideas on what I can do to install it ??

-------------------------------

To investigate, I attempted "cpanm Inline::CPP --reinstall", and got
the following different message:

$ cpanm Inline::CPP --reinstall
--> Working on Inline::CPP
Fetching http://www.cpan.org/authors/id/D/DA/DAVIDO/Inline-CPP-0.39.tar.gz
... OK
! Bad archive: Inline-CPP-0.39.tar.gz
! Failed to unpack Inline-CPP-0.39.tar.gz: no directory
! Failed to fetch distribution Inline-CPP-0.39


Yet if I download the tarball myself (the link above works fine, for
example), and unpack it with 'tar -zxf Inline-CPP-0.39-tar.gz', it
unpacks fine into ./Inline-CPP-0.39, and from there I'm able to
perform the mantra without any problems.

Also, if I remove the module from my system and then install it via
the 'cpan' tool (instead of cpan minus), it works:

cpan Inline::CPP

...works fine.

Any thoughts? Can anyone confirm the behavior?
--
David Oswald
daoswald-***@public.gmane.org
Xiao Yafeng
2012-08-15 01:49:13 UTC
Permalink
IIRC, install Inline::Cpp should answer some questions before installation,
that might lead to this problem?
Post by David Oswald
I just got a strange bug report on Inline::CPP, and don't see what the
issue is. This is against the current version, v0.39.
----------------------------
I tried to install Inline::Cpp into Strawberry perl running under
cpanm (App::cpanminus) 1.5013 on perl 5.014002 built for
MSWin32-x86-multi-thread
Work directory is /.cpanm/work/1344884468.1676
You have make C:\Dwimperl\c\bin\dmake.exe
You have LWP 6.03
Falling back to Archive::Tar 1.80
Searching Inline::CPP on cpanmetadb ...
--> Working on Inline::CPP
Fetching http://www.cpan.org/authors/id/D/DA/DAVIDO/Inline-CPP-0.39.tar.gz
-> OK
Unpacking Inline-CPP-0.39.tar.gz
Entering .
META.yml not found or unparsable. Fetching META.yml from search.cpan.org
Configuring Inline-CPP-0.39
-> N/A
-> FAIL The distribution doesn't have a proper Makefile.PL/Build.PL
See \.cpanm\build.log for details.
Any ideas on what I can do to install it ??
-------------------------------
To investigate, I attempted "cpanm Inline::CPP --reinstall", and got
$ cpanm Inline::CPP --reinstall
--> Working on Inline::CPP
Fetching http://www.cpan.org/authors/id/D/DA/DAVIDO/Inline-CPP-0.39.tar.gz
... OK
! Bad archive: Inline-CPP-0.39.tar.gz
! Failed to unpack Inline-CPP-0.39.tar.gz: no directory
! Failed to fetch distribution Inline-CPP-0.39
Yet if I download the tarball myself (the link above works fine, for
example), and unpack it with 'tar -zxf Inline-CPP-0.39-tar.gz', it
unpacks fine into ./Inline-CPP-0.39, and from there I'm able to
perform the mantra without any problems.
Also, if I remove the module from my system and then install it via
cpan Inline::CPP
...works fine.
Any thoughts? Can anyone confirm the behavior?
--
David Oswald
David Oswald
2012-08-15 02:15:39 UTC
Permalink
Post by Xiao Yafeng
IIRC, install Inline::Cpp should answer some questions before installation,
that might lead to this problem?
Actually, I'm able to install it just fine on my laptop using cpanm
Inline::CPP, but not on my desktop system. Both are running Ubuntu
12.04 LTS with a 64 bit build of Perl 5.16.1, so more investigation is
warranted. Strange. On my desktop system the error message is
complaining about a bad archive, which (as I read through the cpanm
source) shouldn't really be possible given my reasonably pristine
configurations.

If anyone else could let me know what happens when they execute "cpanm
Inline::CPP --reinstall" (or if it's a fresh install, just leave off
the --reinstall flag), I'd appreciate it.

Dave
--
David Oswald
daoswald-***@public.gmane.org
Xiao Yafeng
2012-08-15 02:58:52 UTC
Permalink
I did some investigations, and note your tar ball contains './'
maybe it makes cpanm can't find makefile. tar the module as absolute path
it like Inline::C might solve problem
Post by Xiao Yafeng
Post by Xiao Yafeng
IIRC, install Inline::Cpp should answer some questions before
installation,
Post by Xiao Yafeng
that might lead to this problem?
Actually, I'm able to install it just fine on my laptop using cpanm
Inline::CPP, but not on my desktop system. Both are running Ubuntu
12.04 LTS with a 64 bit build of Perl 5.16.1, so more investigation is
warranted. Strange. On my desktop system the error message is
complaining about a bad archive, which (as I read through the cpanm
source) shouldn't really be possible given my reasonably pristine
configurations.
If anyone else could let me know what happens when they execute "cpanm
Inline::CPP --reinstall" (or if it's a fresh install, just leave off
the --reinstall flag), I'd appreciate it.
Dave
--
David Oswald
Xiao Yafeng
2012-08-15 03:06:49 UTC
Permalink
Or upgrade App::Cpanminus todate.
see
https://github.com/miyagawa/cpanminus/issues/80
Post by Xiao Yafeng
I did some investigations, and note your tar ball contains './'
maybe it makes cpanm can't find makefile. tar the module as absolute path
it like Inline::C might solve problem
Post by Xiao Yafeng
Post by Xiao Yafeng
IIRC, install Inline::Cpp should answer some questions before
installation,
Post by Xiao Yafeng
that might lead to this problem?
Actually, I'm able to install it just fine on my laptop using cpanm
Inline::CPP, but not on my desktop system. Both are running Ubuntu
12.04 LTS with a 64 bit build of Perl 5.16.1, so more investigation is
warranted. Strange. On my desktop system the error message is
complaining about a bad archive, which (as I read through the cpanm
source) shouldn't really be possible given my reasonably pristine
configurations.
If anyone else could let me know what happens when they execute "cpanm
Inline::CPP --reinstall" (or if it's a fresh install, just leave off
the --reinstall flag), I'd appreciate it.
Dave
--
David Oswald
Loading...