Perl CPAN on Debian




You don’t have the XS version of Scalar::Util

cpan> force install Scalar::Util

Again I am installing djabberd on debian via cpan, have to install make, gcc, libc6-dev, libxml2-dev, openssl, libssl-dev.

I couldn’t get Net::SSLeay to install from CPAN, so I used libnet-ssleay-perl from debian.

UPDATE: See DJabberd on Debian

5 Responses to “Perl CPAN on Debian”


  1. 1 mistermartin75

    You rock!

    This just solved a problem I’ve been looking at for two hours. Thanks a lot!

  2. 2 Albert

    Hey mistermartin75! Thanks for commenting and letting me know that this post helped you out. Have fun with Debian it is amazingly great.

  3. 3 Albert

    I just noticed I had to install libextutils-xsbuilder-perl using apt-get install when trying to force install Scalar::Util.

  4. 4 Kamal

    Thanks so much, you saved me a lot of time!
    Documentation on Perl XS appears to be quite bad.
    Now I have XS version of Scalar::Util and I could get Net::SSLeay (1.35) installed by cpan.
    I needed that for having Net::SMTP::SSL installed, which in turn I needed to use Gmail SMTP server in Dada Mail (http://dadamailproject.com/).

    So after:

    apt-get install gcc libc6-dev openssl libssl-dev

    (Maybe some of these isn’t needed but I don’t care now).

    I could finally:

    cpan -f Scalar::Util

    How could I know that I needed gcc and something else to have the XS version of Scalar::Util?

    Thanks again.

  5. 5 Albert

    Hi Kamal,

    Glad I could help, and thanks for commenting.

    On debian you can do “apt-get build-dep packagename” to install the stuff needed to build that package from source.

    - Albert

Leave a Reply