把下面命令依次放到终端以root执行就: 1、sudo apt-get install liblzma-dev 2、sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus 3、cpanm Compress::Raw::Lzma Enjoy it!