Windows上的Strawberry Perl安装Prima失败,没有tiff.h

时间:2019-01-24 03:05:36

标签: perl cpan

我在窗户上使用草莓Perl。我试图安装运行中的Prima模块

install Prima

在CPAN控制台中,我得到了

> img\codec_tiff.c:14:10: fatal error: tiff.h: No such file or directory
> #include <tiff.h>
>           ^~~~~~~~ compilation terminated. dmake.exe:  Error code 129, while making 'img\codec_tiff.o'   KARASIK/Prima-1.53.tar.gz  
> C:\STRAWB~1\c\bin\dmake.exe -- NOT OK Stopping: 'install' failed for
> 'Prima'. Failed during this command:  KARASIK/Prima-1.53.tar.gz       
> : make NO

因此,最终它未能安装Prima。那么如何解决缺少的tiff.h问题呢?

更新 现在,我重新安装了最新的strawberry perl版本5.28.1.1。 但是,由于其他原因,安装Prima失败。错误消息如下:

dlltool -l blib/arch/auto/Prima/libPrima.a -d Prima.def -D PRIMA.xs.dll blib\arch\auto\Prima\Prima.xs.dll
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 755 blib\arch\auto\Prima\Prima.xs.dll
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e cp -- Prima/VB/VB.pl blib\script\VB.pl
pl2bat.bat blib\script\VB.pl
process_begin: CreateProcess(NULL, pl2bat.bat blib\script\VB.pl, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [Makefile:1165: blib\script\VB.pl] Error 2
  KARASIK/Prima-1.53.tar.gz
  C:\STRAWB~1\c\bin\gmake.exe -- NOT OK
Stopping: 'install' failed for 'Prima'.
Failed during this command:
 KARASIK/Prima-1.53.tar.gz                    : make NO

如果我第二次运行install Prima,它将显示

Running install for module 'Prima'
  KARASIK/Prima-1.53.tar.gz
  Has already been unwrapped into directory C:\STRAWB~1\cpan\build\Prima-1.53-0
  KARASIK/Prima-1.53.tar.gz
  Has already been prepared
  KARASIK/Prima-1.53.tar.gz
  Could not make: Unknown error

我该怎么办?

0 个答案:

没有答案