编译39 GO 的modem出现报错,查看 perlbrew版本为5.22.1
39GO/alps-release-o1.mp1-default/modem/mcu$ perl --version
This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
gcc 版本切成4.8,
/usr/bin/gcc-4.8 100 manual mode
电脑报出的编译环境:
./mk
下面是编译报错的提示:
Can’t locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base . ./pcore/tools/ ./common/tools/MemoryUtility/ ./pcore/tools/ ./common/tools/MemoryUtility/ …/ …/…/…/pcore/tools/ ./pcore/tools/ ./common/tools/MemoryUtility/ ./pcore/tools/ …/ ./pcore/tools/ ./common/tools/MemoryUtility/ ./pcore/tools/ ./pcore/tools/ ./pcore/tools/ ./pcore/tools/) at common/tools/AutoGen/postBuild/update_mpu_table.pl line 190.
本以为执行下面的方法就会好,发现还是不OK。
报错Can’t locate Switch.pm in @INC
$ cpan
cpan[1]> install Switch
输入cpan后会进入输入命令行,直接敲install Switch
即可cpan[2]> exit
输入exit退出即可最后通过http://www.bubuko.com/infodetail-633564.html链接找到解决方法,安装下面的两个,编译就OK了
sudo apt-get install libswitch-perl
sudo apt-get install libxml2-utils
80 GO 编译modem,直接把
perlbrew版本切成5.14.2
gcc版本切成4.8
编译OK。
切换的前提是安装好5.14.2 perlbrew 和 4.8 gcc。