Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Linux: Problem installing Filter::Crypto

by jowe (Sexton)
on Feb 20, 2014 at 14:51 UTC ( #1075585=perlquestion: print w/replies, xml ) Need Help??

jowe has asked for the wisdom of the Perl Monks concerning the following question:

The command sudo cpan install Filter::Crypto gives the following result:

sudo cpan install Filter::Crypto Reading '/root/.cpan/Metadata' Database was generated on Wed, 19 Feb 2014 02:06:18 GMT Running install for module 'Filter::Crypto' Running make for S/SH/SHAY/Filter-Crypto-2.03.tar.gz Fetching with LWP: http://cpan.weepeetelecom.nl/authors/id/S/SH/SHAY/Filter-Crypto-2.03.t +ar.gz Fetching with LWP: http://cpan.weepeetelecom.nl/authors/id/S/SH/SHAY/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/S/SH/SHAY/Filter-Crypto-2. +03.tar.gz ok CPAN.pm: Building S/SH/SHAY/Filter-Crypto-2.03.tar.gz Subroutine Module::Install::PRIVATE::define redefined at inc/Module/In +stall/PRIVATE.pm line 53. Subroutine Module::Install::PRIVATE::inc redefined at inc/Module/Insta +ll/PRIVATE.pm line 53. Subroutine Module::Install::PRIVATE::libs redefined at inc/Module/Inst +all/PRIVATE.pm line 53. Subroutine Module::Install::PRIVATE::opts redefined at inc/Module/Inst +all/PRIVATE.pm line 53. Subroutine get_shay_private_obj redefined at inc/Module/Install/PRIVAT +E.pm line 70. Subroutine process_opts redefined at inc/Module/Install/PRIVATE.pm lin +e 74. Subroutine check_compiler redefined at inc/Module/Install/PRIVATE.pm l +ine 176. Subroutine query_scripts redefined at inc/Module/Install/PRIVATE.pm li +ne 283. Subroutine setup_env redefined at inc/Module/Install/PRIVATE.pm line 3 +34. Subroutine is_win32 redefined at inc/Module/Install/PRIVATE.pm line 34 +6. Subroutine prompt_yes_no redefined at inc/Module/Install/PRIVATE.pm li +ne 350. Subroutine prompt_dir redefined at inc/Module/Install/PRIVATE.pm line +362. Subroutine prompt_list redefined at inc/Module/Install/PRIVATE.pm line + 375. Subroutine prompt_validate redefined at inc/Module/Install/PRIVATE.pm +line 417. Subroutine show_found_var redefined at inc/Module/Install/PRIVATE.pm l +ine 445. Subroutine exit_with_version redefined at inc/Module/Install/PRIVATE.p +m line 453. Subroutine exit_with_help redefined at inc/Module/Install/PRIVATE.pm l +ine 471. Subroutine exit_with_manpage redefined at inc/Module/Install/PRIVATE.p +m line 479. Subroutine exit_with_usage redefined at inc/Module/Install/PRIVATE.pm +line 487. Subroutine exit_with_error redefined at inc/Module/Install/PRIVATE.pm +line 495. Subroutine use_default_response redefined at inc/Module/Install/PRIVAT +E.pm line 508. Subroutine _isa_tty redefined at inc/Module/Install/PRIVATE.pm line 52 +0. *** Module::AutoInstall version 1.06 *** Checking for Perl dependencies... *** Since we're running under CPAN, I'll just let it take care of the dependency's installation later. [Core Features] - Test::More ...loaded. (0.98) - blib ...loaded. (1.06) - Exporter ...loaded. (5.64_03) - Fcntl ...loaded. (1.11) - Scalar::Util ...loaded. (1.23) - Text::ParseWords ...loaded. (3.27) - XSLoader ...loaded. (0.13) [crypt_file -e tempfile support] - File::Temp ...loaded. (0.22) [PAR::Filter support] - PAR::Filter ...loaded. (0.03) - File::Temp ...loaded. (0.22) [Fuller PAR::Filter::Crypto testing] - Archive::Zip ...loaded. (1.37) [POD testing] - Test::Pod ...loaded. (1.48 >= 1.00) *** Module::AutoInstall configuration finished. Where is your OpenSSL or SSLeay? [/usr] /usr/bin/ Error (103): No include directory found at Makefile.PL line 112 Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=s +ite] 'YAML' not installed, will not store persistent state SHAY/Filter-Crypto-2.03.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Could not read metadata file. Falling back to other methods to determi +ne prerequisites

The environment:
TERM=xterm PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=de_DE.UTF-8 LANGUAGE= DISPLAY=:0 SHELL=/bin/bash LOGNAME=root USER=root USERNAME=root MAIL=/var/mail/root HOME=/root SUDO_COMMAND=/usr/bin/env SUDO_USER=indesu SUDO_UID=1000 SUDO_GID=1000

Debian 7.4.0 and Perl 5.14.2.

What is meant by the (script)question "Where is your OpenSSL?". The only openssl I could find is in /usr/bin. Is this what the install script was asking for?

Your help is very much appreciated.

Best regards - Jo

Replies are listed 'Best First'.
Re: Linux: Problem installing Filter::Crypto
by marto (Cardinal) on Feb 20, 2014 at 15:00 UTC

    You may have openssl installed, but not the development package:

    apt-get install libssl-dev

      You were absolutely right. After installing openssl-dev everything went ok.

      btw: Is there any place where to look up the required pre-requisites? Many thanks and best regards - Jo

        Note to self, I really must finish off my module installation tutorial in the very near future.

        The Perl prerequisites can be found on the cpan page for each module, there should be a link on the right hand side named ''Dependencies''. Other non perl prerequisites are usually listed in the documentation for the module in question. This includes INSTALL and README files. You can browse this via the cpan web interface or by using the cpan client to look at a module or distribution:

        Note that the cpan client dropped me into a shell (command prompt on windows) and I type the contents of INSTALL, the Linux/Unix equivalent (as I'm sure you know, but for the benefit of others) is cat.

        Some modules require external programs or as is well documented in the WWW::Mechanize::Firefox example above, other programs and/or plugins.

        -dev packages contain library headers and other development files for a package. These may be required and ideally should be listed in a perl modules documentation. Feel free to submit a patch for this module suggesting this :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1075585]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-09-20 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?