Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I fix "Execution of -e aborted due to compilation errors" in a Perl module Makefile?

Tags:

makefile

perl

I'm on Windows using Strawberry Perl. I run perl Makefile.pl for the Buckwalter Encode module, that works fine. When I run make, it says

Execution of -e aborted due to compilation errors

What is -e? Which file do I go to fix the error? Apparently there's a missing curly bracket on line 1, but I don't know which file has that missing curly bracket so I don't know where to look.

like image 650
asaaki Avatar asked Dec 31 '25 00:12

asaaki


1 Answers

We use perl's -e option to specify on the command line code to be executed. From perlrun:

  • -e commandline
    may be used to enter one line of program. If -e is given, Perl will not look for a filename in the argument list. Multiple -e commands may be given to build up a multi-line script. Make sure to use semicolons where you would in a normal program.

For example:

$ perl -e 'print "Hello, world!\n"'
Hello, world!

An error similar to the one you're seeing is

$ perl -e 'while (1) { print "foo!"'
Missing right curly or square bracket at -e line 1, at end of line
syntax error at -e line 1, at EOF
Execution of -e aborted due to compilation errors.
like image 175
Greg Bacon Avatar answered Jan 01 '26 15:01

Greg Bacon