¿Cómo puedo decirle a CPAN que proporcione Makefile.PL
un argumento específico en una instalación específica?¿Cómo puedo configurar la biblioteca e incluir rutas para Makefile.PL para una sola instalación?
Específicamente. Quiero instalar XML::LibXML
, y apt-get
instalé la biblioteca en /usr/lib/libxml2.so.2.6.32
. Makefile.PL
tiene problemas con eso y me dice:
using fallback values for LIBS and INC
options:
LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm'
INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
$ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'
looking for -lxml2... no
looking for -llibxml2... no
libxml2 not found
Try setting LIBS and INC values on the command line
Or get libxml2 from
http://xmlsoft.org/
sé dónde está el libxml2 es, pero no sé cómo decirle a la Makefile.PL
.
edición: Cuando hago dpkg -L libxml2
(es un debian), veo
/.
/usr
/usr/lib
/usr/lib/libxml2.so.2.6.32
/usr/share
/usr/share/doc
/usr/share/doc/libxml2
/usr/share/doc/libxml2/AUTHORS
/usr/share/doc/libxml2/changelog.Debian.gz
/usr/share/doc/libxml2/copyright
/usr/share/doc/libxml2/README
/usr/share/doc/libxml2/README.Debian
/usr/share/doc/libxml2/NEWS.gz
/usr/share/doc/libxml2/changelog.gz
/usr/share/doc/libxml2/TODO.gz
/usr/lib/libxml2.so.2
no soy una raíz en esa máquina y no puedo hacer un enlace simbólico en /usr/lib
o repararlo.
Entonces, ¿cómo funcionó esto? ¿Has podido resolver tu problema? – rafl
Sí, lo hice (lo siento por no responder, tuve otro trabajo), gracias! –