in reply to Re: How to install Math::GSL module
in thread How to install Math::GSL module

Thanks for the replies. Sorry, about the typo. I meant to write ppm install http://theoryx5.uwinnipeg.ca/ppms/Math-GSL.ppd.

Also, I guess PPM was installing my perl modules in another temp directory so that was why I was moving over the files. I changed my ppm to install modules to /perl/bin from now on and removed files that I currently moved to perl/bin just to begin with a fresh install.

Now, after I downloaded it though I can't seem to see the package in /perl/bin though it says that 99 files have been downloaded. When I open up PPM graphical interface it says that Math-GSL has been downloaded to /perl/bin.

Can anyone tell me what I am doing wrong?

Replies are listed 'Best First'.
Re^3: How to install Math::GSL module
by syphilis (Archbishop) on Jan 26, 2009 at 02:04 UTC
    I guess PPM was installing my perl modules in another temp directory

    PPM uses a temp directory to store files that it downloads, prior to actually installing the module. I think the location of that temp directory is configurable - in any case, it doesn't matter where that folder is located, so long as PPM is permitted to create the files in that folder.

    Afaik, the actual location into which PPM installs the modules cannot be configured - they simply go into perl/site/lib (as Anonymous Monk has already said). The only things that should be going into perl/bin are the 2 DLL's - unless, of course, you requested that they be placed elsewhere.

    What happens now when you run:
    perl -MMath::GSL::Histogram=":all" -we "gsl_histogram_alloc(100);"
    For me, that runs and terminates without producing any output at all (which is as expected).

    Cheers,
    Rob
      Hmm, ok. I actually don't have anything loaded in my perl/site/lib folder except a sitecustomize.pl script.
      When I run this command:
      perl -MMath::GSL::Histogram=":all" -we "gsl_histogram_alloc(100);" I get this as an output error. <br> Can't locate Math/GSL/Histogram.pm in @INC (@INC contains: C:/Program +Files/Perl /perl/site/lib C:/Program Files/Perl/perl/lib .). BEGIN failed--compilation aborted.
      Another thing, all my modules are at C:/Program Files/Perl/lib, not perl/site/lib. Is this a problem since the @INC array is looking at both locations for modules. I uninstalled the MATH module and used PPM to reinstall it the way people have suggested but I don't see the MATH module in either directory. Is it supposed to show up in either perl/lib or perl/site/lib? Do you guys think I should reinstall perl?
        You're @INC consists of "C:/Program Files/Perl/perl/site/lib", "C:/Program Files/Perl/perl/lib" and "." (the current directory). Based on that, one would expect that, having installed Math::GSL, the file C:/Program Files/Perl/perl/site/lib/Math/GSL/Histogram.pm would now exist, but it obviously doesn't. It's absence is *not* a good sign.

        Do you guys think I should reinstall perl?

        Yes, I think so. Installing a module using PPM should not present these types of problems - and the fact that you're still getting errors with this PPM installation of Math::GSL suggests to me that something has got broken.

        Also, it's not a good idea to install perl into a directory whose name contains any spaces (such as "Program Files"). Doing so can create difficulties. It doesn't matter much where perl is installed, but it's definitely best to avoid directories like "Program Files" - there's nothing wrong with installing into simply C:\perl.

        So yes - I would perform a fresh install of perl. Then run the 'ppm install' command to install Math::GSL (and the 2 gsl DLL's). That's all you should need to do.

        Cheers,
        Rob
Re^3: How to install Math::GSL module
by Anonymous Monk on Jan 26, 2009 at 01:03 UTC
    Modules do not go into perl/bin, they go into perl/site/lib. Sounds like you've "configured" something that didn't need any configuring, and now its broken. You can always start fresh and reinstall perl.