[最初のすべて;私はLinuxのopensuse 11.4を実行するPerl Mechanizeでエラーが発生しました。「localhost」への接続に失敗しました。ポート4242:何ですか?
私はこの小さなプログラムをLinuxボックスで実行しようとします。
更新:うん、私はインストールの深刻な問題を抱えていると思います。 MECHA :: FireFox Hmm - WWW :: Mechanize :: Firefox :: Troubleshootingの手順を実行する必要があります!しかし、私を信じてください - これはやりにくいです:特に "インストール"のセクションは私の状況に特に当てはまります!
恐ろしいことがあるかもしれません。私は今どうすればいい!!?
#!/usr/bin/perl
use WWW::Mechanize::Firefox;
my $mech = WWW::Mechanize::Firefox->new();
open(INPUT, "urls.txt") or die "Can't open file: $!";
while (<INPUT>) {
chomp;
$mech->get($_);
my $png = $mech->content_as_png();
}
close(INPUT);
exit;
前提条件:私はurslのコレクション持っ
- urls.txt に保存されている、私がインストールされているMechanizeのと私はスクリプトを実行する場合はWWWは:: Mechanizeの:: Firefoxは
私は致命的な取得をエラー -
のlinux-vi17:/ホーム/マーティン/ビン#perlのget_shots.pl 、問題は "localhost"、ポート4242への接続への接続に失敗しました: がで拒否されたとの接続は/ usr/libに/ perl5の/シte_perl/5.12.3/MozRepl/Client.pmライン144
しかし、待って - 私も
K
Running make test
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Class::Accessor::Fast,0,Module::Pluggable::Fast,0,Template,0,Template::Provider::FromDATA,0,UNIVERSAL::require,0
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-load.t t/10-plugin-repl-enter.t t/11-plugin-repl-search.t t/12-plugin-repl-inspect.t t/13-plugin-repl-load.t t/14-plugin-repl-rename.t t/15-plugin-repl-print.t t/16-plugin-repl-home.t t/17-plugin-repl-back.t t/18-plugin-repl-util-help_url_for.t t/19-plugin-repl-util-doc_for.t t/20-plugin-json.t t/pod-coverage.t t/pod.t
t/00-load.t ........................... 1/3 # Testing MozRepl 0.06
t/00-load.t ........................... ok
t/10-plugin-repl-enter.t .............. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/10-plugin-repl-enter.t .............. ok
t/11-plugin-repl-search.t ............. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/11-plugin-repl-search.t ............. ok
t/12-plugin-repl-inspect.t ............ [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/12-plugin-repl-inspect.t ............ ok
t/13-plugin-repl-load.t ............... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/13-plugin-repl-load.t ............... ok
t/14-plugin-repl-rename.t ............. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/14-plugin-repl-rename.t ............. ok
t/15-plugin-repl-print.t .............. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/15-plugin-repl-print.t .............. ok
t/16-plugin-repl-home.t ............... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/16-plugin-repl-home.t ............... ok
t/17-plugin-repl-back.t ............... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/17-plugin-repl-back.t ............... ok
t/18-plugin-repl-util-help_url_for.t .. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/18-plugin-repl-util-help_url_for.t .. ok
t/19-plugin-repl-util-doc_for.t ....... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/19-plugin-repl-util-doc_for.t ....... ok
t/20-plugin-json.t .................... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/20-plugin-json.t .................... ok
t/pod-coverage.t ...................... skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t ............................... skipped: Test::Pod 1.14 required for testing POD
All tests successful.
Files=14, Tests=42, 7 wallclock secs (0.14 usr 0.08 sys + 2.98 cusr 0.36 csys = 3.56 CPU)
Result: PASS
ZIGOROU/MozRepl-0.06.tar.gz
make test -- OK
Running make install
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Class::Accessor::Fast,0,Module::Pluggable::Fast,0,Template,0,Template::Provider::FromDATA,0,UNIVERSAL::require,0
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Log.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Client.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Util.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Base.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/JSON.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Search.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Load.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Rename.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Inspect.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Home.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Enter.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Print.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Back.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Util/DocFor.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Util/HelpUrlFor.pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Util::DocFor.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Print.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Inspect.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Back.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Rename.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Util::HelpUrlFor.3pm
Installing /usr/share/man/man3/MozRepl::Client.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::JSON.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Base.3pm
Installing /usr/share/man/man3/MozRepl::Log.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Load.3pm
Installing /usr/share/man/man3/MozRepl::Util.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Home.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Search.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Enter.3pm
Installing /usr/share/man/man3/MozRepl.3pm
Appending installation info to /usr/lib/perl5/5.12.3/i586-linux-thread-multi/perllocal.pod
ZIGOROU/MozRepl-0.06.tar.gz
make install -- OK
.... mozlReplをインストールしたアップデート:うーんだけでなく、私は深刻のろわれていることを推測します のインストールに関する問題MECHA :: FireFox Hmm - 私はWWW :: Mechanize :: Firefox :: Troubleshootingの手順を実行する必要があります!しかし、私を信じてください - これはやりにくいです:特に "インストール"のセクションは私の状況に特に当てはまります!
plzここで間違っていることを教えてください...!?暗闇の中で私を放置しないでください。
この質問はなぜ控除されましたか?それは明らかで、有用で、研究努力を示しています – Zaid
こんにちはZaid - 答えのためのthx - まあ私はちがいません。どうやって進める?!何を指示してるんですか!? – zero
**更新:**もう一度私の親愛なるZaid:うーん、私はMECHA :: FireFoxのインストールに関して深刻な問題を抱えていると思う。Hmm - WWW :: Mechanize :: Firefoxの手順を踏まなければならない。 :トラブルシューティング!しかし、私を信じてください - これはやりにくいです:特に "インストール"のセクションは私の状況に特に当てはまります! – zero