perl module HTML::Entities not found

Asked by At

I have a Mac that can't find HTML::Entities and running the command perl -V:'installsitehtml' gives installsitehtml='UNKNOWN';. When ls ~/ I see a perl5/ that I guess was installed by edirect package from NCBI. Do you know how can I fix this?

My attempt to install the module and some potentially useful debugging information:

$ perl -MHTML::Entities -e1
Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: /Users/aerijman/miniconda3/lib/site_perl/5.26.2/darwin-thread-multi-2level /Users/aerijman/miniconda3/lib/site_perl/5.26.2 /Users/aerijman/miniconda3/lib/5.26.2/darwin-thread-multi-2level /Users/aerijman/miniconda3/lib/5.26.2 .).
BEGIN failed--compilation aborted.

$ cpan HTML::Entities
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/Users/aerijman/.cpan/Metadata'
  Database was generated on Sat, 27 Apr 2019 15:17:03 GMT
Running install for module 'HTML::Entities'
Checksum for /Users/aerijman/.cpan/sources/authors/id/G/GA/GAAS/HTML-Parser-3.72.tar.gz ok
Configuring G/GA/GAAS/HTML-Parser-3.72.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for HTML::Parser
Writing MYMETA.yml and MYMETA.json
  GAAS/HTML-Parser-3.72.tar.gz
  /Users/aerijman/miniconda3/bin/perl Makefile.PL -- OK
Running make for G/GA/GAAS/HTML-Parser-3.72.tar.gz
cp lib/HTML/Entities.pm blib/lib/HTML/Entities.pm
cp lib/HTML/LinkExtor.pm blib/lib/HTML/LinkExtor.pm
cp lib/HTML/TokeParser.pm blib/lib/HTML/TokeParser.pm
cp lib/HTML/Filter.pm blib/lib/HTML/Filter.pm
cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm
cp Parser.pm blib/lib/HTML/Parser.pm
cp lib/HTML/PullParser.pm blib/lib/HTML/PullParser.pm
Running Mkbootstrap for Parser ()
chmod 644 "Parser.bs"
"/Users/aerijman/miniconda3/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Parser.bs blib/arch/auto/HTML/Parser/Parser.bs 644
"/Users/aerijman/miniconda3/bin/perl" "/Users/aerijman/miniconda3/lib/site_perl/5.26.2/ExtUtils/xsubpp"  -typemap '/Users/aerijman/miniconda3/lib/5.26.2/ExtUtils/typemap' -typemap '/Users/aerijman/.cpan/build/HTML-Parser-3.72-11/typemap'  Parser.xs > Parser.xsc
mv Parser.xsc Parser.c
"/Users/aerijman/miniconda3/bin/perl" mkhctype >hctype.h
"/Users/aerijman/miniconda3/bin/perl" mkpfunc >pfunc.h
x86_64-apple-darwin13.4.0-clang -c   -fno-common -DPERL_DARWIN -no-cpp-precomp -mmacosx-version-min=10.9 -fno-strict-aliasing -pipe -fstack-protector-strong -DPERL_USE_SAFE_PUTENV -O3   -DVERSION=\"3.72\" -DXS_VERSION=\"3.72\" -fPIC --sysroot=/opt/MacOSX10.9.sdk "-I/Users/aerijman/miniconda3/lib/5.26.2/darwin-thread-multi-2level/CORE"  -DMARKED_SECTION Parser.c
/bin/sh: x86_64-apple-darwin13.4.0-clang: command not found
make: *** [Parser.o] Error 127
  GAAS/HTML-Parser-3.72.tar.gz
  /usr/bin/make -- NOT OK

$ perl -le'print $^X'
Users/aerijman/miniconda3/bin/perl

$ perl -le'print for @INC;'
/Users/aerijman/miniconda3/lib/site_perl/5.26.2/darwin-thread-multi-2level
/Users/aerijman/miniconda3/lib/site_perl/5.26.2
/Users/aerijman/miniconda3/lib/5.26.2/darwin-thread-multi-2level
/Users/aerijman/miniconda3/lib/5.26.2
.

$ perl -le'print "$_: $ENV{$_}" for sort grep /^PERL/, keys %ENV;'

$ type cpan
cpan is /Users/aerijman/miniconda3/bin/cpan

$ head -n 1 "$( which cpan )"
#!/Users/aerijman/miniconda3/bin/perl

$ echo 'o conf' | cpan 2>&1 | perl -ne'print if /^\s*(make|mbuild)/'
    make               [/usr/bin/make]
    make_arg           []
    make_install_arg   []
    make_install_make_command [/usr/bin/make]
    makepl_arg         []
    mbuild_arg         []
    mbuild_install_arg []
    mbuild_install_build_command [./Build]
    mbuildpl_arg       []

0 Answers