web-dev-qa-db-ja.com

Ubuntu 16.04 LTSの@INCでSwitch.pmが見つかりません

ディレクトリの下にmake -j8と入力してmake my Android 2.3.7 OSシステムを試みたときに表示される問題の1つを次に示します。

/home/paultsai/Android/aosp-2.3.x/

Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: external/webkit/WebCore/bindings/scripts /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 .) at external/webkit/WebCore/dom/make_names.pl line 38.
BEGIN failed--compilation aborted at external/webkit/WebCore/dom/make_names.pl line 38.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/HTMLNames.h] Error 2
make: *** Waiting for unfinished jobs....
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: external/webkit/WebCore/bindings/scripts /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 .) at external/webkit/WebCore/dom/make_names.pl line 38.
BEGIN failed--compilation aborted at external/webkit/WebCore/dom/make_names.pl line 38.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/HTMLElementFactory.h] Error 2
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: external/webkit/WebCore/bindings/scripts /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 .) at external/webkit/WebCore/dom/make_names.pl line 38.
BEGIN failed--compilation aborted at external/webkit/WebCore/dom/make_names.pl line 38.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/V8HTMLElementWrapperFactory.h] Error 2
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

誰でもこれらの問題を修正する方法を教えてもらえますか?

1
PaulTsai

ターミナルを開き(Ctrl-Alt-t)、次に:

 Sudo apt-get install libswitch-Perl

またはcpanを使用:

cpan

プロンプトcpan[1]>で、次のように入力します

install Switch
0