我是新來的Perl。當我運行腳本時,出現以下錯誤:爲什麼我的Perl程序抱怨「無法在@INC中找到URI.pm」?
Can't locate URI.pm in @INC (@INC contains: /usr/local/packages/perl_remote/5.6.1/lib/5.6.1/i86pc-solaris /usr/local/packages/perl_remote/5.6.1/lib/5.6.1 /usr/local/packages/perl_remote/5.6.1/lib/site_perl/5.6.1/i86pc-solaris /usr/local/packages/perl_remote/5.6.1/lib/site_perl/5.6.1 /usr/local/packages/perl_remote/5.6.1/lib/site_perl .) at (eval 2) line 3. Compilation failed in require at /usr/local/packages/perl_remote/5.6.1/lib/site_perl/5.6.1/HTTP/Request.pm line 3. Compilation failed in require at /usr/local/packages/perl_remote/5.6.1/lib/site_perl/5.6.1/LWP/UserAgent.pm line 10. BEGIN failed--compilation aborted at /usr/local/packages/perl_remote/5.6.1/lib/site_perl/5.6.1/LWP/UserAgent.pm line 10. Compilation failed in require at /usr/local/packages/perl_remote/5.6.1/lib/site_perl/5.6.1/LWP/Simple.pm line 26. BEGIN failed--compilation aborted at /usr/local/packages/perl_remote/5.6.1/lib/site_perl/5.6.1/LWP/Simple.pm line 26. Compilation failed in require at txotf_0_install.pl line 35. BEGIN failed--compilation aborted at txotf_0_install.pl line 35.
這可能是什麼原因以及如何讓腳本工作。任何幫助將不勝感激。
您通常可以通過從錯誤消息中搜索關鍵詞來找到答案。在這種情況下,搜索只是爲了「定位」導致你到http://stackoverflow.com/questions/65865/cant-locate-foo-pm-in-inc-whats-the-easiest-way-to-install -a缺失-perl的 – 2010-02-26 01:20:56