Nov 3, 2009, 4:39 PM
Post #2 of 2
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?
Re: [ancau] Installing WWW::Mechanize on Mac
[In reply to]
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:
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
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:
(This post was edited by 7stud on Nov 3, 2009, 4:42 PM)