简体   繁体   English

安装WWW :: Mechanize :: Firefox时出现问题

[英]Problems while installing WWW::Mechanize::Firefox

I am using the windows 8 operating system and I am trying to install the WWW::Mechanize::Firefox module in ActiveState Perl, from CPAN. 我正在使用Windows 8操作系统,并且试图从CPAN在ActiveState Perl中安装WWW :: Mechanize :: Firefox模块。 I have successfully downloaded and installed all the dependencies and also installed the MozRepl module on Firefox. 我已经成功下载并安装了所有依赖项,并且还在Firefox上安装了MozRepl模块。 I do not have noScript running on my firefox and hence I am assuming that Javascript is enabled across all files (I am not sure how or where to check that). 我的Firefox上没有运行noScript,因此我假设所有文件都启用了Javascript(我不确定如何或在何处进行检查)。 Here is my error message when I try to install the module. 当我尝试安装模块时,这是我的错误消息。

在此处输入图片说明

I also constantly receive this error throughout the installation - "Subroutine-MozRepl-Load Plugins redefined at line 104." 在安装过程中,我还会不断收到此错误-“在第104行重新定义了Subroutine-MozRepl-Load插件”。 Any help is much appreciated ! 任何帮助深表感谢 ! Thank you ! 谢谢 !

EDIT - These are the errors - 编辑-这些是错误- 在此处输入图片说明

As Kim suggested in comments, you will need Mozrepl and Firefox. 正如Kim在评论中建议的那样,您将需要Mozrepl和Firefox。

Please refer WWW::Mechanize::Firefox::Installation page for detailed instructions on how to install this module. 请参阅WWW :: Mechanize :: Firefox :: Installation页面以获取有关如何安装此模块的详细说明。

If you use ActiveStates package manager, you can find some pre-packaged but untested PPMs at https://github.com/Corion/www-mechanize-firefox/downloads . 如果使用ActiveStates软件包管理器,则可以在https://github.com/Corion/www-mechanize-firefox/downloads找到一些预先打包但未经测试的PPM。

I needed to use this module on Windows, and couldn't get it running with ActivePerl. 我需要在Windows上使用此模块,并且无法使其与ActivePerl一起运行。 So I installed http://strawberryperl.com/ and it worked. 因此,我安装了http://strawberryperl.com/并成功运行。 This version of perl seems to handle installs form the cpan command line utility better than Activestate, who expect you to use their perl package manager as the default module installer (and don't supply a dmake program). 这个版本的perl似乎比Activestate更好地处理cpan命令行实用程序的安装,后者希望您使用其perl软件包管理器作为默认模块安装程序(并且不提供dmake程序)。 Strawberry Perl also comes with a C compiler so can build modules that are a mixture of Perl and C code. Strawberry Perl还带有C编译器,因此可以构建将Perl和C代码混合在一起的模块。

And make sure mozrepl is running before you try to install. 尝试安装之前,请确保mozrepl正在运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM