-1

美好的一天,亲爱的 perl 程序员。

我在 OpenSuse 12.1(这是一个在欧洲使用的 linux 系统)上的 WWW::Mechanize::Firefox 有严重的安装问题:查看我在命令行中注意到的问题:

 cpan shell -- CPAN exploration and modules installation (v1.960001)                                                                                                                             
Enter 'h' for help.                                                                                                                                                                             

cpan[1]> install  WWW::Mechanize::Firefox;     
Fetching with HTTP::Tiny:
http://artfiles.org/cpan.org/authors/01mailrc.txt.gz
Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
http://artfiles.org/cpan.org/modules/02packages.details.txt.gz
Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Thu, 09 Feb 2012 23:13:21 GMT
  HTTP::Date not available
..............
  New CPAN.pm version (v1.9800) available.
  [Currently running version is v1.960001]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


..............................................................DONE
Fetching with HTTP::Tiny:
http://artfiles.org/cpan.org/modules/03modlist.data.gz
Going to read '/root/.cpan/sources/modules/03modlist.data.gz'
............................................................................DONE
Going to write /root/.cpan/Metadata
Warning: Cannot install WWW::Mechanize::Firefox;, don't know what it is.
Try the command


 i /WWW::Mechanize::Firefox;/

to find objects with matching identifiers. 

好吧 - 程序想告诉我什么?

我有点失落

顺便说一句,这是什么意思:我还需要安装 mozRepl

更新见 tbe 更新 - 你怎么看?

cpan[2]> ^Cinstall  WWW::Mechanize::Firefox
Caught SIGINT, trying to continue
Running install for module 'WWW::Mechanize::Firefox'
Running make for C/CO/CORION/WWW-Mechanize-Firefox-0.58.tar.gz
Giving up on '/root/.cpan/sources/authors/id/C/CO/CORION/WWW-Mechanize-Firefox-0.58.tar.gz'
Note: Current database in memory was generated on Thu, 09 Feb 2012 23:13:21 GMT

cpan[3]> 
4

2 回答 2

1

您正在使用系统 Perl。从标准存储库安装或devel:languages:perl首先安装。

sudo zypper install perl-WWW-Mechanize

如果模块尚未打包,则回退到 CPAN。


莫兹雷普。下次用搜索引擎来做这样一个基本的事情。

于 2012-02-11T12:22:20.573 回答
1

是的; cpan这是使用脚本安装模块的正确方法。重要的几行是:

⁝
/usr/bin/make -- OK
⁝
/usr/bin/make test -- OK
⁝
/usr/bin/make install  -- OK

他们声明makemake testmake install成功运行。

于 2012-02-19T15:38:30.197 回答