Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Install seems impossible!

by rupesh (Hermit)
on Jul 19, 2005 at 11:01 UTC ( #476034=perlquestion: print w/ replies, xml ) Need Help??
rupesh has asked for the wisdom of the Perl Monks concerning the following question:


Monks,

I've been trying to install a couple of ... yep ... "Crypto" modules lately, in my Linux box (RedHat 9). Among other (simpler) things, I've lost on what is going wrong with Crypt::RSA and Crypt::OpenSSL::DSA.

To install, I use:
perl -MCPAN -e shell, then install <module>
An exerpt from a failed install:
/usr/include/openssl/kssl.h:160: parse error before "kssl_build_princi +pal_2" /usr/include/openssl/kssl.h:160: parse error before "context" /usr/include/openssl/kssl.h:163: parse error before "kssl_validate_tim +es" /usr/include/openssl/kssl.h:163: parse error before "atime" /usr/include/openssl/kssl.h:165: parse error before "kssl_check_authen +t" /usr/include/openssl/kssl.h:165: parse error before '*' token /usr/include/openssl/kssl.h:167: parse error before "enctype" In file included from DSA.xs:15: /usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX" /usr/include/openssl/ssl.h:931: parse error before '}' token make: *** [DSA.o] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
The cpan shell takes care of installing all the "child" modules (worked for all previous installations).
What's wrong (or special) about this one?

Thanks,
Rupesh.

Comment on Install seems impossible!
Download Code
Re: Install seems impossible!
by gellyfish (Monsignor) on Jul 19, 2005 at 11:08 UTC

    This is not a problem with CPAN or the Perl modules themselves but with your installation of the OpenSSL libraries and includes I would guess, it is possible you haven't installed the appropriate openssl-devel package or that you have somehow got incompatible versions on your machine.

    /J\


      Agreed. But...
      I just installed the same modules in a freshly built Redhat 9 box.
      Same error.
      I'll "embed" the RSA errors here...


      Cheers,
      Rupesh.

        Er, this is a completely different set of probably unrelated errors. Some the dependencies are missing - you need to install Crypt::Random and Crypt::Primes. Bear in mind there is nothing magical about the CPAN module that will examine the module you are installing and determine the dependencies, the author of the module has to explicitly state them in the Makefile.PL

        /J\

Re: Install seems impossible!
by halley (Prior) on Jul 19, 2005 at 13:47 UTC
    I prefer to manage Red Hat with RPM-- the first step when I find a new module I'd like to install is to see if there's an RPM of that module. Here's a strategy:

    (1) Do an (up2date install perl-Crypt-RSA) to see if Red Hat Network already has it packaged.

    (2) Google for "perl-Crypt-RSA rpm" for some ideas if this is commonly packaged by third-parties.

    (3) Download the CPAN tarball and use a cpan2rpm converter script to make a .src.rpm for it. This .src.rpm will have all of the build-requires fields properly set. Then rebuild to get the .noarch.rpm or .i386.rpm or whatever.

    Every once in a while, someone proposes an all-CPAN RPM repository, but I've yet to see anyone stick to such a project. Since Red Hat is a python-favoring distribution, this is not a big surprise.

    This may seem like a pain to manage, but it makes your Perl configuration easily duplicatable on other machines, and eases your management of upgrades of the whole system.

    --
    [ e d @ h a l l e y . c c ]

Re: Install seems impossible!
by rupesh (Hermit) on Jul 20, 2005 at 14:25 UTC

    I finally installed the Crypt::RSA module today. What I did was I completely did the installation in a totally-rebuilt perl environment (in RedHat 9).
    Allowed CPAN to install all dependent modules all by its own. Manually installed Crypt::Primes and Crypt::Random and finally installed the RSA module. Went smoothly.

    Thanks to everybody for their time...


    Rupesh.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-12-25 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (162 votes), past polls