in reply to Re: Error installing Inline::C 0.75
in thread Error installing Inline::C 0.75

Thats weird, it should install File::ShareDir::Install before trying Inline::C

Not that I use CPAN.pm much, but I think it won't even know that File::ShareDir::Install is needed until the I::C Makefile.PL has been run ... and it can't run that file because it detects a syntax error.
All of which makes me wonder whether it's such a good idea to provide a Makefile.PL that wants to load Fie::ShareDir::Install.

I was thinking that File::ShareDir::Install must be present because it apparently loads ok - and that it might therefore be a version that is too old.
In any case, the first thing to do is, as you suggested, install the latest version of File::ShareDir::Install.

Another thing that might need to be done is to install version 7.04 (or later ?) of ExtUtils::MakeMaker as it often (always ?) causes problems with recent versions of I::C if an earler version of EU::MM is being used.

Cheers,
Rob

Replies are listed 'Best First'.
Re^3: Error installing Inline::C 0.75
by Anonymous Monk on Jun 27, 2015 at 04:19 UTC

    Not that I use CPAN.pm much, but I think it won't even know that File::ShareDir::Install is needed until the I::C Makefile.PL has been run ... and it can't run that file because it detects a syntax error.

    I'm confident that is what all that META stuff is about, and old CPAN.pm did not META, with META it isn't required to run Makefile.PL to determine a dependency on File::ShareDir::Install

    All of which makes me wonder whether it's such a good idea to provide a Makefile.PL that wants to load Fie::ShareDir::Install.

    Well, you know the solution, pack the extra dependencies into your distribution, like inc style like Module::Install::Bundle - Bundle distributions along with your distribution