Subject: | Unbalanced { in generated Makefile |
Running "perl Makefile.PL" generates a Makefile. Executing "make" at
the commandline to run this file 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 is due to unbalanced {} brackets in the
generated Makefile, e.g.
MOD_INSTALL = $(ABSPERLRUN) -MExtUtils::Install -e "install([ from_to
=> {{@ARGV}, verbose => '$(VERBINST)', uninstall_shadows
=> '$(UNINST)', dir_mode => '$(PERM_DIR)' ]);" --
If you search for {{ you find more occurences in the attached Makefile.
Makemaker version: 6.56
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 in a virtual machine on VMware
Server 2.0, 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"},
);