WebFaction
Community site: login faq

I am trying to install Melody (open source version of Movable Type) and the install process indicates it cannot find the HTML::Parser Perl Module.

The error:

The following Perl modules are required for Melody to run properly.
Note that you may have an older version of these modules installed. 
See check.cgi for further details.

* HTML::Parser -
  Minimal version requirement: 3.66

So, I tried installing with:

cpan -i HTML::Parser

But I ended up with a permissions error:

Running make install
Warning: You do not have permissions to install into /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi at /usr/lib/perl5/5.8.8/ExtUtils/Install.pm line 114.
mkdir /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/HTML: Permission denied at /usr/lib/perl5/5.8.8/ExtUtils/Install.pm line 176
make: *** [pure_site_install] Error 13
/usr/bin/make install  -- NOT OK
You may have to su to root to install the package

asked 25 Apr '11, 02:30

Alistair
26246
accept rate: 0%

1

Hi,

Did you setup CPAN correctly as mentioned here:

http://docs.webfaction.com/software/perl.html?highlight=cpan#installing-cpan-modules

before attempting the install?

(25 Apr '11, 03:46) neeravk

I'm getting nearly identical symptoms to those described above. I did setup CPAN as described in the linked docs.

Here's my log:

jfsiii@web165 ~]$ cpan install Geo::IP CPAN: Storable loaded ok CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://cpan-du.viaverio.com/pub/CPAN/authors/01mailrc.txt.gz Going to read /home/jfsiii/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Fetching with LWP: ftp://cpan-du.viaverio.com/pub/CPAN/modules/02packages.details.txt.gz Going to read /home/jfsiii/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Tue, 03 May 2011 17:29:44 GMT

  There's a new CPAN.pm version (v1.9600) available!
  [Current version is v1.7602]
  You might want to try
    install Bundle::CPAN
    reload cpan
  without quitting the current session. It should be a seamless upgrade
  while we are running...

Fetching with LWP:
  ftp://cpan-du.viaverio.com/pub/CPAN/modules/03modlist.data.gz
Going to read /home/jfsiii/.cpan/sources/modules/03modlist.data.gz
Going to write /home/jfsiii/.cpan/Metadata
install is up to date.
Running install for module Geo::IP
Running make for B/BO/BORISZ/Geo-IP-1.38.tar.gz
Fetching with LWP:
  ftp://cpan-du.viaverio.com/pub/CPAN/authors/id/B/BO/BORISZ/Geo-IP-1.38.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
  ftp://cpan-du.viaverio.com/pub/CPAN/authors/id/B/BO/BORISZ/CHECKSUMS
Checksum for /home/jfsiii/.cpan/sources/authors/id/B/BO/BORISZ/Geo-IP-1.38.tar.gz ok
Scanning cache /home/jfsiii/.cpan/build for sizes
Geo-IP-1.38/
Geo-IP-1.38/Changes
Geo-IP-1.38/example/
Geo-IP-1.38/example/city.pl
Geo-IP-1.38/example/netspeed.pl
Geo-IP-1.38/example/org.pl
Geo-IP-1.38/example/region.pl
Geo-IP-1.38/INSTALL
Geo-IP-1.38/IP.xs
Geo-IP-1.38/lib/
Geo-IP-1.38/lib/Geo/
Geo-IP-1.38/lib/Geo/IP/
Geo-IP-1.38/lib/Geo/IP/Record.pm
Geo-IP-1.38/lib/Geo/IP/Record.pod
Geo-IP-1.38/lib/Geo/IP.pm
Geo-IP-1.38/lib/Geo/Mirror.pm
Geo-IP-1.38/Makefile.PL
Geo-IP-1.38/MANIFEST
Geo-IP-1.38/META.yml
Geo-IP-1.38/README
Geo-IP-1.38/t/
Geo-IP-1.38/t/0_base.t
Geo-IP-1.38/t/1_lookup.t
Geo-IP-1.38/t/2_namelookup.t
Geo-IP-1.38/t/3_mirror.t
Geo-IP-1.38/t/cpan_mirror.txt
Geo-IP-1.38/typemap

  CPAN.pm: Going to build B/BO/BORISZ/Geo-IP-1.38.tar.gz

The GeoIP CAPI is not installed you should do that. Otherwise try

    perl Makefile.PL PP=1

to install this module anyway. It uses a slower pure perl version 
and you can rebuid it later.

GeoIP must be installed prior to building Geo::IP and I can't find
it in the standard library directories. You can download GeoIP C API from:

http://www.maxmind.com/app/c

If GeoIP is installed, but in a non-standard directory, then use the
following options to Makefile.PL:

    perl Makefile.PL LIBS='-L/home/me/lib' INC='-I/home/me/include'

Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.

If you installed the GeoIP C libraries to the /usr/local/lib directory,
then you may need to add /usr/local/lib to /etc/ld.so.conf then run
/sbin/ldconfig /etc/ld.so.conf

make: *** No targets specified and no makefile found.  Stop.
  /usr/bin/make -j3 -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

cpan> Terminal does not support GetHistory.
Lockfile removed.
[jfsiii@web165 ~]$ cd ~/.cpan/build/Geo-IP-1.38/
[jfsiii@web165 Geo-IP-1.38]$ perl Makefile.PL LIBS='-L/home/jfsiii/lib/perl5/lib' INC='-I/home/jfsiii/lib/perl5/include'
Checking if your kit is complete...
Looks good
Writing Makefile for Geo::IP
[jfsiii@web165 Geo-IP-1.38]$ make
cp lib/Geo/Mirror.pm blib/lib/Geo/Mirror.pm
cp lib/Geo/IP/Record.pod blib/lib/Geo/IP/Record.pod
cp lib/Geo/IP/Record.pm blib/lib/Geo/IP/Record.pm
cp lib/Geo/IP.pm blib/lib/Geo/IP.pm
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap  IP.xs > IP.xsc && mv IP.xsc IP.c
gcc -c  -I/home/jfsiii/lib/perl5/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables   -DVERSION=\"1.38\" -DXS_VERSION=\"1.38\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"  -DPERL_EXT IP.c
Running Mkbootstrap for Geo::IP ()
chmod 644 IP.bs
rm -f blib/arch/auto/Geo/IP/IP.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib IP.o  -o blib/arch/auto/Geo/IP/IP.so     \
       -L/home/jfsiii/lib/perl5/lib -lGeoIP     \

chmod 755 blib/arch/auto/Geo/IP/IP.so
cp IP.bs blib/arch/auto/Geo/IP/IP.bs
chmod 644 blib/arch/auto/Geo/IP/IP.bs
Manifying blib/man3/Geo::Mirror.3pm
Manifying blib/man3/Geo::IP::Record.3pm
Manifying blib/man3/Geo::IP.3pm
[jfsiii@web165 Geo-IP-1.38]$ make install
Warning: You do not have permissions to install into /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi at /usr/lib/perl5/5.8.8/ExtUtils/Install.pm line 114.
mkdir /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Geo: Permission denied at /usr/lib/perl5/5.8.8/ExtUtils/Install.pm line 176
make: *** [pure_site_install] Error 13
(07 May '11, 21:38) JFSIII
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×102
×20
×15
×1

question asked: 25 Apr '11, 02:30

question was seen: 11,949 times

last updated: 07 May '11, 21:57

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM