Failed Perl Module install (Perl extension for the Mcrypt cryptography library)

I get errors while trying to install the Perl extension for the Mcrypt cryptography library module. I am on a GD hosting acct, and running the latest libmcrypt (libmcrypt-2.5.8-4.el5.centos).

I have tried the top two Mcrypt modules @ http://search.cpan.org/search?query=mcrypt&mode=all but both give errors (as below).

I need Mcrypt as it is integrated into all my custom order scripts.

Any suggestions? Thx.

EDIT: I do notice ‘error: mcrypt.h: No such file or directory’ a few times. Could that be related?

host22:/usr/src/MCrypt-0.92# perl Makefile.PL
Writing Makefile for MCrypt
ip-97-74-192-135:/usr/src/MCrypt-0.92# make
gcc -c -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=\“0.92\” -DXS_VERSION=\“0.92\” -fPIC “-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE” MCrypt.c
MCrypt.xs: In function ‘XS_MCrypt__mcrypt_cbc’:
MCrypt.xs:33: warning: implicit declaration of function ‘is_hex’
MCrypt.xs:53: warning: implicit declaration of function ‘pmcrypt_get_block_size’
MCrypt.xs:61: warning: implicit declaration of function ‘pmcrypt_cbc’
MCrypt.xs:27: warning: unused variable ‘HAS_IV’
MCrypt.xs: In function ‘XS_MCrypt__mcrypt_ecb’:
MCrypt.xs:92: warning: implicit declaration of function ‘pmcrypt_ecb’
MCrypt.xs: In function ‘XS_MCrypt__mcrypt_ofb’:
MCrypt.xs:131: warning: implicit declaration of function ‘pmcrypt_ofb’
MCrypt.xs:111: warning: unused variable ‘IV_len’
MCrypt.xs:109: warning: unused variable ‘HAS_IV’
MCrypt.xs: In function ‘XS_MCrypt__mcrypt_cfb’:
MCrypt.xs:170: warning: implicit declaration of function ‘pmcrypt_cfb’
MCrypt.xs:150: warning: unused variable ‘IV_len’
MCrypt.xs:148: warning: unused variable ‘HAS_IV’
MCrypt.xs: In function ‘XS_MCrypt_mcrypt_get_cipher_name’:
MCrypt.xs:182: warning: implicit declaration of function ‘pmcrypt_get_cipher_name’
MCrypt.xs: In function ‘XS_MCrypt_mcrypt_get_key_size’:
MCrypt.xs:193: warning: implicit declaration of function ‘pmcrypt_get_key_size’
gcc -c -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=\“0.92\” -DXS_VERSION=\“0.92\” -fPIC “-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE” mc-interface.c
mc-interface.c:15:20: error: mcrypt.h: No such file or directory
mc-interface.c: In function ‘pmcrypt_get_cipher_name’:
mc-interface.c:33: warning: implicit declaration of function ‘mcrypt_get_algorithms_name’
mc-interface.c:33: warning: assignment makes pointer from integer without a cast
mc-interface.c: In function ‘pmcrypt_get_block_size’:
mc-interface.c:47: warning: implicit declaration of function ‘mcrypt_get_block_size’
mc-interface.c: In function ‘pmcrypt_get_key_size’:
mc-interface.c:54: warning: implicit declaration of function ‘mcrypt_get_key_size’
mc-interface.c: In function ‘pmcrypt_ecb’:
mc-interface.c:91: warning: implicit declaration of function ‘init_mcrypt_ecb’
mc-interface.c:100: warning: implicit declaration of function ‘mcrypt_ecb’
mc-interface.c:101: warning: implicit declaration of function ‘end_mcrypt_ecb’
mc-interface.c:102: warning: pointer targets in passing argument 1 of ‘bin2hex’ differ in signedness
mc-interface.c:108: warning: implicit declaration of function ‘mdecrypt_ecb’
mc-interface.c: In function ‘pmcrypt_cbc’:
mc-interface.c:145: warning: implicit declaration of function ‘init_mcrypt_cbc’
mc-interface.c:147: warning: implicit declaration of function ‘init_mcrypt_cbc_iv’
mc-interface.c:156: warning: implicit declaration of function ‘mcrypt’
mc-interface.c:160: warning: implicit declaration of function ‘mcrypt_cbc’
mc-interface.c:161: warning: implicit declaration of function ‘end_mcrypt_cbc’
mc-interface.c:162: warning: pointer targets in passing argument 1 of ‘bin2hex’ differ in signedness
mc-interface.c:168: warning: implicit declaration of function ‘mdecrypt_cbc’
mc-interface.c: In function ‘pmcrypt_ofb’:
mc-interface.c:204: warning: implicit declaration of function ‘init_mcrypt_ofb’
mc-interface.c:213: warning: implicit declaration of function ‘mcrypt_ofb’
mc-interface.c:214: warning: implicit declaration of function ‘end_mcrypt_ofb’
mc-interface.c:215: warning: pointer targets in passing argument 1 of ‘bin2hex’ differ in signedness
mc-interface.c:221: warning: implicit declaration of function ‘mdecrypt_ofb’
mc-interface.c: In function ‘pmcrypt_cfb’:
mc-interface.c:257: warning: implicit declaration of function ‘init_mcrypt_cfb’
mc-interface.c:266: warning: implicit declaration of function ‘mcrypt_cfb’
mc-interface.c:267: warning: implicit declaration of function ‘end_mcrypt_cfb’
mc-interface.c:268: warning: pointer targets in passing argument 1 of ‘bin2hex’ differ in signedness
mc-interface.c:274: warning: implicit declaration of function ‘mdecrypt_cfb’
mc-interface.c: In function ‘bin2hex’:
mc-interface.c:286: warning: pointer targets in assignment differ in signedness
mc-interface.c:288: warning: pointer targets in return differ in signedness
mc-interface.c:296: warning: pointer targets in return differ in signedness
mc-interface.c: In function ‘main’:
mc-interface.c:371: error: ‘MCRYPT_3DES’ undeclared (first use in this function)
mc-interface.c:371: error: (Each undeclared identifier is reported only once
mc-interface.c:371: error: for each function it appears in.)
make: *** [mc-interface.o] Error 1
host22:/usr/src/MCrypt-0.92#

http://search.cpan.org/~jesus/Mcrypt-2.5.7.0/

host22:/usr/src/Mcrypt-2.5.7.0# perl Makefile.PL
Note (probably harmless): No library found for -lltdl
Writing Makefile for Mcrypt
ip-97-74-192-135:/usr/src/Mcrypt-2.5.7.0# make install
gcc -c -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=\“2.5.7.0\” -DXS_VERSION=\“2.5.7.0\” -fPIC “-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE” Mcrypt.c
Mcrypt.xs:16:20: error: mcrypt.h: No such file or directory
Mcrypt.c: In function ‘XS_Mcrypt_ERROR’:
Mcrypt.c:272: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:272: error: (Each undeclared identifier is reported only once
Mcrypt.c:272: error: for each function it appears in.)
Mcrypt.c:272: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:273: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:277: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:252: warning: implicit declaration of function ‘mcrypt_strerror’
Mcrypt.xs: In function ‘XS_Mcrypt_mcrypt_load’:
Mcrypt.xs:263: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.xs:263: error: expected ‘;’ before ‘td’
Mcrypt.c:305: error: expected ‘;’ before ‘RETVAL’
Mcrypt.xs:265: error: ‘td’ undeclared (first use in this function)
Mcrypt.xs:265: warning: implicit declaration of function ‘mcrypt_module_open’
Mcrypt.xs:266: error: ‘RETVAL’ undeclared (first use in this function)
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_unload’:
Mcrypt.c:324: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:324: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:325: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:329: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:274: warning: implicit declaration of function ‘mcrypt_module_close’
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_init’:
Mcrypt.c:351: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:351: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:352: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:361: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:291: warning: implicit declaration of function ‘mcrypt_generic_init’
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_end’:
Mcrypt.c:389: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:389: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:390: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:394: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:302: warning: implicit declaration of function ‘mcrypt_generic_end’
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_get_key_size’:
Mcrypt.c:416: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:416: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:417: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:422: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:311: warning: implicit declaration of function ‘mcrypt_enc_get_key_size’
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_is_block_algorithm_mode’:
Mcrypt.c:442: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:442: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:443: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:447: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:319: warning: implicit declaration of function ‘mcrypt_enc_is_block_algorithm_mode’
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_get_block_size’:
Mcrypt.c:469: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:469: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:470: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:475: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:328: warning: implicit declaration of function ‘mcrypt_enc_get_block_size’
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_get_iv_size’:
Mcrypt.c:495: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:495: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:496: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:501: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:336: warning: implicit declaration of function ‘mcrypt_enc_get_iv_size’
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_encrypt’:
Mcrypt.c:521: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:521: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:522: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:530: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:350: warning: implicit declaration of function ‘mcrypt_generic’
Mcrypt.c: In function ‘XS_Mcrypt_mcrypt_decrypt’:
Mcrypt.c:557: error: ‘MCRYPT’ undeclared (first use in this function)
Mcrypt.c:557: error: expected ‘;’ before ‘mcrypt’
Mcrypt.c:558: warning: ISO C90 forbids mixed declarations and code
Mcrypt.c:566: error: ‘mcrypt’ undeclared (first use in this function)
Mcrypt.xs:367: warning: implicit declaration of function ‘mdecrypt_generic’
make: *** [Mcrypt.o] Error 1
host22:/usr/src/Mcrypt-2.5.7.0#

Fixed. I had to install ‘libmcrypt-devel’.

Now, I have some other errs popping up to address.