On Thu, 15 May 2025 19:29:00 -0400 Jon Fineman <j...@fineman.me> wrote:
> I am trying to install XML::Feed on 7.7 GENERIC.MP#625. This I believe > relies upon XML::LibXML. It looks like I am getting unit test errors > for LibXML. > > I also installed libxml-2, p5-libxml. Alien::Libxml2 was already installed > > I am rather new to installing Perl modules. Am I doing something wrong? Am I > missing a dependency? Or is LibXML broken? > > Thanks. > > Jon The ports tree is often a good place to look even if you want to install perl modules with cpanm for your own perl environments for specific users. This is helpful when system perl isn't the way you want to support a perl program or environment. If you were using lib::local or perlbrew, and wanted to install, for example, XML::LibXML you could do something like this: While using your preferred environment, download XML::LibXML from cpan: % wget https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0210.tar.gz It is probably best to make sure you are using the same version as what is currently in your ports tree at /usr/ports/textproc/p5-XML-LibXML/ % tar xzvf XML-LibXML-2.0210.tar.gz % cd XML-LibXML-2.0210 % patch </usr/ports/textproc/p5-XML-LibXML/patches/patch-Makefile_PL % perl Makefile.PL % make install You should now have the module installed in your perl env with the patches provided by the port. It is helpful to check the port for many modules that may give you problems in their latest or default forms. Some you can patch. Some you may need to take clues about what version will best work (instead of the most recent). Some you may just have to --force I maintain installs of RT, Sympa, and some other things this way. YMMV --TimH