Opened 10 years ago

Closed 8 years ago

#45191 closed defect (worksforme)

wml @2.0.11_3, fails to execute with LWP::Simple.pm error

Reported by: hahn.seb@… Owned by: cfaerber@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: wml

Description

Hey, trying to compile a wml file, I get:

ePerl:Error: Perl parsing error (interpreter rc=2)

---- Contents of STDERR channel: ---------
Can't locate LWP/Simple.pm in @INC (@INC contains: /opt/local/lib/wml/perl/lib /opt/local/lib/wml/perl/lib/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.12.5/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.12.5 /opt/local/lib/perl5/vendor_perl/5.12.5/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.12.5 /opt/local/lib/perl5/5.12.5/darwin-thread-multi-2level /opt/local/lib/perl5/5.12.5 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /var/folders/pw/q34rdc055cg701h9z61nt67h0000gn/T//wml.27817.tmp1.wml line 608.
BEGIN failed--compilation aborted at /var/folders/pw/q34rdc055cg701h9z61nt67h0000gn/T//wml.27817.tmp1.wml line 608.
------------------------------------------
** WML:Break: Error in Pass 3 (rc=1).

Looks like a dependency error?

Change History (9)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: cfaerber@… removed
Owner: changed from macports-tickets@… to cfaerber@…

comment:2 Changed 10 years ago by cfaerber@…

It seems that the WML source file uses LWP::Simple. "/var/folders/pw/q34rdc055cg701h9z61nt67h0000gn/Twml.27817.tmp1.wml" looks like the name of an intermediary file between the passes of WML. Unfortunately, the line numbers are not helpful in WML errors; line 608 is the line where the statement ended up after pass 2.

WML itself only depends on LWP::Simple, Lynx, wget or fetch for including remote files.

comment:3 Changed 10 years ago by hahn.seb@…

Hrm, you're right - it's inside the wml source. Sorry for the wrong report. Do you know how I might be able to get LWP::Simple with macports? I'm not spotting a pre-made port, but maybe I'm overlooking something.

comment:4 Changed 10 years ago by cfaerber@…

This should to the trick:

sudo cpan install LWP::Simple

comment:5 Changed 10 years ago by mf2k (Frank Schima)

It looks like LWP::Simple is in the already existing p5-libwww-perl port. Maybe this should be added as a runtime dependency?

comment:6 in reply to:  5 Changed 8 years ago by cfaerber@…

LWP::Simple is not required by the wml port but by the wml source for the web page.

comment:7 Changed 8 years ago by mf2k (Frank Schima)

So can this ticket be closed?

comment:8 Changed 8 years ago by hahn.seb@…

Yes, I meant to imply that by comment #3.

comment:9 Changed 8 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.