【问题标题】:WWW::Mechanize::Firefox - installation-troubles on OpenSuse-Linux version 12.1WWW::Mechanize::Firefox - OpenSuse-Linux 12.1 版上的安装问题
【发布时间】:2012-02-10 19:47:24
【问题描述】:

亲爱的 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]> 

【问题讨论】:

  • 您的第一个失败,因为没有名为 WWW::Mechanize::Firefox; 的模块。去掉分号,然后再试一次。我不知道你的^CSIGINT 在你的第二个问题中是怎么回事。只需从头开始(或从命令行执行 cpan install WWW::Mechanize::Firefox)。
  • 亲爱的 CanSpice - 非常感谢,我会再试一次。感谢您的大力支持-我回来报告所有发现。来自古老的欧洲的问候!

标签: perl makefile mechanize gnu-make opensuse


【解决方案1】:

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

sudo zypper install perl-WWW-Mechanize

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


MozRepl。这种基本的东西下次用搜索引擎吧。

【讨论】:

    【解决方案2】:

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

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

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

    【讨论】:

    • 我现在想用 mechanize::firefox 测试一个小脚本。但请参阅:无法在@INC 中找到 WWW/Mechanize/Firefox.pm(@INC 包含:/usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl /5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/i586-linux -thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib /perl5/site_perl .) 在 test_3.pl 第 5 行。BEGIN 失败——编译在 test_3.pl 第 5 行中止
    • Perl 无法在它搜索模块的目录列表中找到该模块。这通常意味着未安装相关模块。如果是这种情况,请尝试安装它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-12
    • 1970-01-01
    • 2011-10-25
    相关资源
    最近更新 更多