我试图在32位计算机上安装Cygwin中的PAR::Packer,所以我执行了cpan pp。我面临以下问题。
gcc-4 -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE -DPARL_EXE=\parl.exe\ -O3 main.c windres -F pei-i386 -i winres\pp.rc -o winres\pp.res
gcc: winrespp.rc: No such file or directory
gcc: warning: '-x c' after last input file has no effect
gcc: no input files
windres: preprocessing failed.
Makefile:735: recipe for target ppresource.coff failed
make[1]: *** [ppresource.coff] Error 1
make[1]: Leaving directory /home/prabhakaran.srinivas/.cpan/build/PAR-Packer-1.013-eTAwxL/myldr
Makefile:594: recipe for target subdirs failed
make: *** [subdirs] Error 2
RSCHUPP/PAR-Packer-1.013.tar.gz
make -- NOT OK
CPAN: YAML loaded ok (v0.81)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible发布于 2012-06-01 17:11:40
问题在myldr/makefil.PL中
$pre_res = qq(winres\pp.res);$rt_cmd =qq(风车-F pei i 386 -i winres\pp.rc -o $pre_res);$res_cmd =qq(风车-o ppresource.coff $pre_res);$res_section = $res;
后来,
$res_section:
$rt_cmd
$res_cmd根据Cygwin的bash,winres\pp.rc将被解释为winrespp.rc而不是winres/pp.rc。正确的方法是
$pre_res = catfile(winres => 'pp.res');
$rt_cmd = join ' ' => qw(windres -F pei-i386 -i), catfile(winres => 'pp.rc'), '-o', $pre_res;等。
https://stackoverflow.com/questions/10848189
复制相似问题