LWP Installation Session

The following is a session transcript for the installation of the libwww (including LWP) modules. The session is in Cygwin. I had already downloaded the modules (from CPAN) into a directory named Perl and unzipped and untarred them there.

$ cd Perl

$ ls
HTML-Parser-3.35      HTML-Tagset-3.03      URI-1.30      libwww-perl-5.76
HTML-Parser-3.35.tar  HTML-Tagset-3.03.tar  URI-1.30.tar

$ cd ../HTML-Tagset-3.03
$ ls
ChangeLog  Makefile     README     blib        test.pl
MANIFEST   Makefile.PL  Tagset.pm  pm_to_blib
$ perl Makefile.PL
Writing Makefile for HTML::Tagset
$ make

$ make test
/usr/bin/perl.exe "-Iblib/lib" "-Iblib/arch" test.pl
1..1
ok 1

$ make install
Installing /usr/lib/perl5/site_perl/5.8.2/HTML/Tagset.pm
Writing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/HTML/Tagset/.packlist
Appending installation info to /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/perllocal.pod

$ cd ../HTML-Parser-3.35

$ ls
Changes      Parser.c   TODO      hints      mkhctype    t
MANIFEST     Parser.pm  blib      hparser.c  mkpfunc     tokenpos.h
Makefile     Parser.xs  eg        hparser.h  pfunc.h     typemap
Makefile.PL  README     hctype.h  lib        pm_to_blib  util.c

$ perl Makefile.PL

Perl-5.8 provide core support for Unicode strings.  You can compile
HTML::Entities so that Unicode entities like € and € are
decoded into a string containing "\x{20AC}".  If you select no to
the question below such entities will be left alone and only entities
in the Latin-1 range is decoded.

Do you want decoding on unicode entities? [no]
Writing Makefile for HTML::Parser

$ make
gcc -c   -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O2   -DVERS
ION=\"3.35\" -DXS_VERSION=\"3.35\"  "-I/usr/lib/perl5/5.8.2/cygwin-thread-multi-
64int/CORE"  -DMARKED_SECTION Parser.c
Running Mkbootstrap for HTML::Parser ()
chmod 644 Parser.bs
rm -f blib/arch/auto/HTML/Parser/Parser.dll
LD_RUN_PATH="" ld2  -s -L/usr/local/lib Parser.o  -o blib/arch/auto/HTML/Parser/
Parser.dll  /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/libperl.dll.a

gcc -shared -o  Parser.dll -Wl,--out-implib=libParser.dll.a -Wl,--export-all-sym
bols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib Parser.o  /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/COR
E/libperl.dll.a
Creating library file: libParser.dll.a
mv Parser.dll libParser.dll.a blib/arch/auto/HTML/Parser/
chmod 755 blib/arch/auto/HTML/Parser/Parser.dll
cp Parser.bs blib/arch/auto/HTML/Parser/Parser.bs
chmod 644 blib/arch/auto/HTML/Parser/Parser.bs

$ make test
/usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'b
lib/arch')" t/*.t
t/api_version........ok
t/argspec-bad........ok
t/argspec............ok
t/argspec2...........ok
t/attr-encoded.......ok
t/callback...........ok
t/case-sensitive.....ok
t/cases..............ok
t/comment............ok
t/crashme............ok
t/declaration........ok
t/default............ok
t/dtext..............ok
t/entities...........ok
t/entities2..........ok
t/filter-methods.....ok
t/filter.............ok
t/handler-eof........ok
t/handler............ok
t/headparser-http....skipped
        all skipped: no reason given
t/headparser.........ok
t/ignore.............ok
t/largetags..........ok
t/linkextor-base.....skipped
        all skipped: no reason given
t/linkextor-rel......ok
t/magic..............ok
t/marked-sect........ok
t/msie-compat........ok
t/offset.............ok
t/options............ok
t/parsefile..........ok
t/parser.............ok
t/plaintext..........ok
t/process............ok
t/pullparser.........ok
t/skipped-text.......ok
t/stack-realloc......ok
t/textarea...........ok
t/tokeparser.........ok
t/uentities..........skipped
        all skipped: Unicode entities not selected
t/unbroken-text......ok
t/xml-mode...........ok
All tests successful, 3 tests skipped.
Files=42, Tests=228, 12 wallclock secs ( 7.75 cusr +  2.17 csys =  9.92 CPU)

$ make install
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/HTML/Parser/libParser.dll.a
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/HTML/Parser/Parser.bs
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/HTML/Parser/Parser.dll
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/HTML/Entities.pm
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/HTML/Filter.pm
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/HTML/HeadParser.pm
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/HTML/LinkExtor.pm
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/HTML/Parser.pm
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/HTML/PullParser.pm
Installing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/HTML/TokeParser.pm
Writing /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/HTML/Parser/.packlist
Appending installation info to /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/perllocal.pod