WWW :: Mechanize :: Firefox - OpenSuse-Linux 12.1版上的安装问题

时间:2012-02-10 19:47:24

标签: perl makefile mechanize gnu-make opensuse

亲爱的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. 
好吧 - 该计划想告诉我什么?

我有点迷失

btw 这是什么意思:我还需要安装mozRepl

更新请参阅更新 - 您认为的是什么?

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]> 

2 个答案:

答案 0 :(得分:1)

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

sudo zypper install perl-WWW-Mechanize

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


MozRepl。下次使用搜索引擎进行这样的基本操作。

答案 1 :(得分:1)

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

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

他们声明makemake testmake install成功投放。