Subject: | Unbalanced {} brackets in generated Makefile |
When runnig "perl Makefile.PL", the generated Makefile fails to run,
i.e., running "make" aborts with
C:\Users\peter\opc\Physics-OPC-0.7.4>make
syntax error at -e line 1, next char )
Missing right curly or square bracket at -e line 1, at end of line
Execution of -e aborted due to compilation errors.
make: *** [pm_to_blib] Error 255
I believe that the problem lies in unmatched { brackets in the
Makefile. Look for {{ that are only matched by a single }.
Makemaker version: 6.55_02
Perl version:
C:\Users\peter\opc\Physics-OPC-0.7.4>perl -v
This is perl, v5.10.1 built for MSWin32-x64-multi-thread
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2009, Larry Wall
Binary build 1007 [291969] provided by ActiveState
http://www.ActiveState.com
Built Jan 27 2010 14:12:21
Operating system:
Windows 7 Ultimate (64 bit) (running as a virutal machine on VMware
Server. Host operating system is Ubuntu 9.04 64 bit)
Subject: | Makefile |
Message body is not shown because it is too large.
Subject: | Makefile.PL |
use ExtUtils::MakeMaker;
@names = qw/opc_optics opc_fourier opc_utils dfl2txt dfl_utils dfl_gauss opld_gen convert_opld/;
@EXE = map "optics/$_", @names;
@EXE = map "$_.exe", @EXE if $^O eq 'MSWin32';
%MAN = map { ("man1/$_.pod" => "blib/man1/$_.1") } @names;
WriteMakefile(
NAME => 'Physics::OPC',
VERSION => '0.7.4',
AUTHOR => 'Peter van der Slot <p.j.m.vanderslot@utwente.nld>',
PREREQ_PM => {
'Carp' => 0,
'Exporter' => 0,
'File::Spec' => 0,
'POSIX' => 0,
'Env' => 0,
'IPC::Open2' => 0,
},
PL_FILES => {'optics/Make.PL' => \@EXE},
EXE_FILES => \@EXE,
MAN1PODS => \%MAN,
clean => {FILES => "@EXE"},
);