CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Installing WWW::Mechanize on Mac


New User

Nov 1, 2009, 6:59 AM

Post #1 of 2 (1250 views)
Installing WWW::Mechanize on Mac Can't Post


I've tried to install WWW::Mechanize on Mac (Leopard) using perl -MCPAN -e shell, but it just can not install it. It all ends with:
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Did that happen to someone else?
What alternative solution do I have to still install that WWW::Mechanize package?



Nov 3, 2009, 4:39 PM

Post #2 of 2 (1241 views)
Re: [ancau] Installing WWW::Mechanize on Mac [In reply to] Can't Post

I tried to install my first module, LWP::Simple, using cpan on mac osx 10.4.11 a few days ago, and I was getting a similar error. Maybe WWW::Mechanize uses LWP::Simple?

As I understand it, the problem had to do with a utf8 encoding flag that some other module that LPW depended on was choking on. Therefore, in the final install steps that cpan uses:

1) make
2) make test
3) make install

make test was failing. Someone suggested I download the libwww-perl library, which I guess contains LWP::Simple, and install it by hand, which just involved:

1) downloading libwww-perl
2) untarring and unzipping in a directory of your choice(e.g. my_tar_extractions)
3) cd'ing into the newly created libwww-perl directory
4) perl Makefile.PL
5) make
6) make install

As you can see, those steps skip the "make test" step that cpan conducts. I don't know if that's something you should generally do or not.

The final suggestion I got was to install my own perl because there might be something wrong with the perl that came with my mac, which was causing the problem I was having. Generally, you don't want to go changing things with the system perl, so at some point I will do a side by side install of perl 5.10.

Here is the thread where I posted the diagnosis of the problem:;sb=post_latest_reply;so=ASC;forum_view=forum_view_collapsed;;page=unread#unread

Good luck.

(This post was edited by 7stud on Nov 3, 2009, 4:42 PM)


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives