|
发表于 2020-9-2 20:49:51
9586 浏览 1 回复
编译modem报错:Can't locate XML/Simple.pm in @INC
[DESCRIPTION]
modem编译报错信息如下:
- Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at pcore/tools/NVRAMStatistic/nvram_post_gen.pl line 7.
- BEGIN failed--compilation aborted at pcore/tools/NVRAMStatistic/nvram_post_gen.pl line 7.
- make[1]: *** [build/TK_MD_BASIC/LWTG_R2_6739/bin/dep/codegen_dep/cgen_cfg_Modem.det] Error 2
- make[1]: *** Deleting file `build/TK_MD_BASIC/LWTG_R2_6739/bin/dep/codegen_dep/cgen_cfg_Modem.det'
- make: *** [cgen] Error 2
复制代码
[SOLUTION]
上述报错表示XML/Simple.pm出现问题,或者忘记安装。
需要重新安装XML::Simple module。
命令如下:
sudo cpan install XML::Simple
|
|
手机微信同号:13682654092
|
|
|
|
|
|
本帖最后由 longrz 于 2022-11-5 10:36 编辑
直接执行
sudo cpan install XML::Simple
会报如下错误
ake test had returned bad status, won't install without force
Could not read metadata file. Falling back to other methods to determine prerequisites
解决方法:
sudo apt-get install libxml-simple-perl
|
|
|
|
|
|
|
登录或注册
|