Can’t locate XML/RSS.pm・・・とエラーが出たときにインストールが必要なパッケージ
公開日:
:
最終更新日:2019/11/05
Linuxの技術メモ perl
perlのスクリプトを実行しようとして、以下のようなエラーが出た場合の対処法です。
Can’t locate XML/RSS.pm in @INC (you may need to install the XML::RSS module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .)
xml/rssのライブラリのパッケージが足りないので、debian系の場合はapt-get で libxml-rss-perl をインストールしましょう。(RHEL系はyumで。)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
$ sudo apt-get install libxml-rss-perl パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 以下の追加パッケージがインストールされます: libb-hooks-endofscope-perl libclass-load-perl libclass-singleton-perl libdatetime-format-mail-perl libdatetime-format-w3cdtf-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl liblist-allutils-perl liblist-moreutils-perl libmodule-implementation-perl libmodule-runtime-perl libnamespace-clean-perl libpackage-stash-perl libpackage-stash-xs-perl libparams-classify-perl libparams-validate-perl libsub-exporter-progressive-perl libsub-identify-perl libsub-name-perl libtry-tiny-perl libvariable-magic-perl libxml-parser-perl 提案パッケージ: libscalar-number-perl 以下のパッケージが新たにインストールされます: libb-hooks-endofscope-perl libclass-load-perl libclass-singleton-perl libdatetime-format-mail-perl libdatetime-format-w3cdtf-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl liblist-allutils-perl liblist-moreutils-perl libmodule-implementation-perl libmodule-runtime-perl libnamespace-clean-perl libpackage-stash-perl libpackage-stash-xs-perl libparams-classify-perl libparams-validate-perl libsub-exporter-progressive-perl libsub-identify-perl libsub-name-perl libtry-tiny-perl libvariable-magic-perl libxml-parser-perl libxml-rss-perl アップグレード: 0 個、新規インストール: 24 個、削除: 0 個、保留: 0 個。 |
インストールが終わったら、もう一度スクリプトを実行してみましょう。
AD

関連記事
-
-
Linuxにapacheをインストールする際のオプション設定方法
デフォルト設定で apache をインストールするときは、以下の手順で実行しますよね。 # tar
-
-
Can’t locate LWP/Simple.pm・・・とエラーが出たときにインストールが必要なパッケージ
perlのスクリプトを実行しようとして、以下のようなエラーが出た場合の対処法です。 Can't l
-
-
「gnome-session: (gnome-shell:5589): Gjs-WARNING **: JS ERROR: TypeError: item is undefined」の原因と対策
CentOS7やRHEL7環境で、/var/log/messagesに gnome-session
-
-
「.bash_profile」と「.bashrc」は何が違う??
「.bash_profile」と「.bashrc」の違いについて。 ・「.bash_profile」
-
-
「gnome-session: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._imsettings_2derror_2dquark.Code5: Current desktop isn’t targeted by IMSettings.」の原因と対策
CentOS7やRHEL7環境で、/var/log/messagesに gnome-session