WWW::Mechanize::Firefox - installation-troubles on

2019-06-14 18:03发布

问题:

good day dear fellow perl-programmers.

i have serious install-troubles with WWW::Mechanize::Firefox on OpenSuse 12.1 (which is a linux system that is used here in Europe): see the issues that i noticed in the command-line:

 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. 

well - what does the programme want to tell me?

i am a bit lost

btw what does that mean: do i also need to install mozRepl

update see tbe update - what do ya think?

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

回答1:

You are using the system Perl. Install from the standard repository or devel:languages:perl first.

sudo zypper install perl-WWW-Mechanize

Fall back to CPAN if the module is not packaged yet.


MozRepl. Use a search engine next time for such a basic thing.



回答2:

Yes; that is the correct way to install a module using the cpan script. The important lines are:

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

They state that make, make test and make install ran successfully.