http://www.perlmonks.org?node_id=1132053


in reply to Error installing Inline::C 0.75

What can I do to fix this?

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

You can always  cpan File::ShareDir::Install and then install Inline::C

Other options is upgrade cpan, install the latest cpan, run cpan CPAN , then afterwards cpan Inline::C

Or install App::cpanminus, then use cpanm Inline::C

There is no need Khen1950fx nonsense

Replies are listed 'Best First'.
Re^2: Error installing Inline::C 0.75
by syphilis (Archbishop) on Jun 26, 2015 at 03:48 UTC
    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

      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