Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Error installing Inline::C 0.75

by smalltiger (Initiate)
on Jun 25, 2015 at 23:48 UTC ( #1132041=perlquestion: print w/replies, xml ) Need Help??

smalltiger has asked for the wisdom of the Perl Monks concerning the following question:

When installing Inline::C either from cpan or from download, the following error comes up:

CPAN.pm: Going to build I/IN/INGY/Inline-C-0.75.tar.gz syntax error at Makefile.PL line 13, near "install_share dist" BEGIN not safe after errors--compilation aborted at Makefile.PL line 8 +6. Warning: No success on command[/usr/local/bin/perl Makefile.PL PREFIX= +/usr/local/lib/perl5/5.12.4] INGY/Inline-C-0.75.tar.gz /usr/local/bin/perl Makefile.PL PREFIX=/usr/local/lib/perl5/5.12.4 - +- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: INGY/Inline-C-0.75.tar.gz : writemakefile NO '/usr +/local/bin/perl Makefile.PL PREFIX=/usr/local/lib/perl5/5.12.4' retur +ned status 65280

What can I do to fix this?

Code tags added by GrandFather

Replies are listed 'Best First'.
Re: Error installing Inline::C 0.75
by syphilis (Bishop) on Jun 27, 2015 at 01:21 UTC
    For anyone interested in the solution to this problem, it has now also been raised as an Inline-C issue on github.

    Cheers,
    Rob

      Beh, how uninteresting , no version information about the "modules" involved, very shallow investigation into the issue by the OP

      :)

Re: Error installing Inline::C 0.75
by Anonymous Monk on Jun 26, 2015 at 03:00 UTC

    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

      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

Re: Error installing Inline::C 0.75
by Khen1950fx (Canon) on Jun 26, 2015 at 01:17 UTC
    Run this first:
    #!/usr/bin/perl use strict; use warnings; use CPAN; CPAN::Shell->install(qw( File::Copy::Recursive IO::Dir File::ShareDir::Install Pegex autodie Text::Balanced Parse::RecDescent DigestLLMD5 Exporter constant Sub::Uplevel Carp Test::Warn Test::More Inline YAML::XS version Cwd ExtUtils::MakeMaker Scalar::Util IO::All), );
    Then manually install like this:
    /usr/bin/perl Makefile.PL make make test make install
    Remember: Perl makes hard things easier, not easy things harder.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1132041]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2021-06-17 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (82 votes). Check out past polls.

    Notices?