Foro de elhacker.net

Programación => Scripting => Mensaje iniciado por: Danick en 19 Septiembre 2013, 16:28 pm



Título: [Perl] Problema al instalar módulo en Linux
Publicado por: Danick en 19 Septiembre 2013, 16:28 pm
Pues nada..intento instalar de manera manual y con cpan el módulo Crypt::OpenSSL::CA pero me el siguiente error (a ver si a alguien se le ocurre qué puede ser y me daría una alegría) (He puesto en negrita lo más significativo)

Código:
Checking OpenSSL version number...

Writing Makefile for Crypt::OpenSSL::CA::ExtractVersionNumberProblem
Writing MYMETA.yml
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp  -typemap "/usr/share/perl/5.14/ExtUtils/typemap"   ExtractVersionNumberProblem.xs > ExtractVersionNumberProblem.xsc && mv ExtractVersionNumberProblem.xsc ExtractVersionNumberProblem.c
cc -c  -I"/home/dany/Escritorio/Crypt-OpenSSL-CA-0.23" -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2   -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC "-I/usr/lib/perl/5.14/CORE"   ExtractVersionNumberProblem.c
ExtractVersionNumberProblem.xs:5:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
make: *** [ExtractVersionNumberProblem.o] Error 1
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp  -typemap "/usr/share/perl/5.14/ExtUtils/typemap"   ExtractVersionNumber.xs > ExtractVersionNumber.xsc && mv ExtractVersionNumber.xsc ExtractVersionNumber.c
cc -c  -I"/home/dany/Escritorio/Crypt-OpenSSL-CA-0.23" -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2   -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC "-I/usr/lib/perl/5.14/CORE"   ExtractVersionNumber.c

Código:
ExtractVersionNumber.xs:5:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
make: *** [ExtractVersionNumber.o] Error 1

Código:
A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
  make > out.make 2>&1

The build directory was:
/home/dany/Escritorio/Crypt-OpenSSL-CA-0.23/_Inline/build/Crypt/OpenSSL/CA/ExtractVersionNumber

To debug the problem, cd to the build directory, and inspect the output files.

 at (eval 59) line 10.
...propagated at /usr/local/share/perl/5.14.2/Inline/C.pm line 772.
BEGIN failed--compilation aborted at (eval 59) line 25.


Compiling and linking a test OpenSSL program failed; please examine
the errors above.  You may have to install OpenSSL's development kit
according to your distribution's instructions.

Maybe you could try re-running Build.PL with appropriate values for
--openssl-cflags and --openssl-ldflags, for instance:

  perl Build.PL --openssl-cflags=-I/usr/local/lib/openssl/include \
        --openssl-libs=-L/usr/local/lib/openssl/lib

Hint: don't sprinkle spaces where not necessary, as they are known to
confuse the GNU linker!



[MOD]: Usa las etiquetas para insertar código, no las de negrita.


Título: Re: [Perl] Problema al instalar módulo en Linux
Publicado por: Danick en 21 Octubre 2013, 17:27 pm
A nadie se le ocurre nada para echarme un cable?