in reply to Hypergeometric Distribution

Thank you so much for your quick response. Ok, I think I have the correct module and sub routine to call, but now I am having great difficulty installing the use Math::GSL::CDF library. I tried this on my PC with: ppm install Math-GSL (and several other tries) with no luck. Also, I tried on my Linux server using: perl -MCPAN -e shell and subsequently: cpan> install Math-GSL ... again with no luck. I have Perl version 5.8.8 on both platforms. The error on linux strangely states: Perl v5.8.8 required--this is only v5.8.5, stopped at Makefile.PL line 2. Any help? Thank you!

Replies are listed 'Best First'.
Re^2: Hypergeometric Distribution
by syphilis (Archbishop) on Aug 12, 2008 at 07:49 UTC
    Hi,
    If you need a Math-GSL (latest version 0.07) ppm for Win32, just save the below as 'Math-GSL.ppd':
    <?xml version="1.0" encoding="UTF-8"?> <SOFTPKG NAME="Math-GSL" VERSION="0,07,0,0"> <TITLE>Math-GSL</TITLE> <ABSTRACT></ABSTRACT> <AUTHOR></AUTHOR> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" /> <CODEBASE HREF="http://members.optusnet.com.au/~sisyphus1/Math-GSL +-0.07_58.tar.gz" /> <PROVIDE NAME="Math::GSL" VERSION="0.07" /> </IMPLEMENTATION> </SOFTPKG>
    Then run ppm install Math-GSL.ppd

    Note that it apparently needs perl 5.8.8 - according to the requirements as specified by the module's authors.

    In a week or so I'll see if randyk wants to put it (plus the 5.10 version) in his ppm reps. There's one minor problem with it at the moment (in that gsl_set_error_handler_off is not having the desired effect). It's easy to work around that shortcoming, but I'd like to get it sorted before I approach randyk.

    Cheers,
    Rob
      Thank you, I tried this, and got the following error: Downloading Math-GSL-0.07...not found ppm install failed: 404 Not Found Does it matter what folder I place it in? Also, I am Windows XP, will this still work? Thank you so much! Aloha, Annette
        Does it matter what folder I place it in?

        No, it just needs to be in your current working directory. However, if you simply copy'n'paste the code I provided for the ppd file, it won't work - because of the line wrapping and the + symbol in the CODEBASE HREF link. You'll need to either download the file, or amend your copy'n'paste.

        I am Windows XP, will this still work?

        Yes - should work on XP as long as it's perl-5.8.8 that you're running.

        Cheers,
        Rob
      Thank you! Thank you! Thank you! You have made me a happy cat! I did fix the line wrap last time, but silly me missed the + sign. You're a life saver! Much Mahalo as we say here! Aloha, Annette