Can't locate IO/Compress/Lzma.pm

使用theos的时候,打包出错如下:

Can't locate IO/Compress/Lzma.pm in @INC (you may need to install the IO::Compress::Lzma module) ...

解决办法:

1、/opt/theos/vendor/dm.pl/dm.pl
注释掉第12、13行
#use IO::Compress::Lzma;
#use IO::Compress::Xz;

2、/opt/theos/makefiles/package/deb.mk
第6行lzma改为gzip
_THEOS_PLATFORM_DPKG_DEB_COMPRESSION ?= gzip

重新make package,成功了。

你可能感兴趣的:(Can't locate IO/Compress/Lzma.pm)