in reply to Problem with my CPAN module

CPAN and many tools that stem from a unix mindset handle whitespace in path names very badly. The recommended fix is to avoid that.

As a workaround, I would set the CPAN directory to a directory without any whitespace in its name. Then everything should work again.

Replies are listed 'Best First'.
Re^2: Problem with my CPAN module
by Anonymous Monk on Jun 28, 2010 at 12:01 UTC
    Its beyond sad that cpan still has problems with whitespace, hopefully cpanp doesn't have this problem

      It might help to remove all support for external helper programs from the CPAN configuration. That way it would fall back on the Perl modules doing the same things but avoid the shell or missing quotes when invoking shell programs.

      It might also help to construct test cases and open tickets for CPAN.

Re^2: Problem with my CPAN module
by vendion (Scribe) on Jun 28, 2010 at 12:50 UTC
    That is just what was defaulted to in my Mac, would it be possible just to change this or would i have to just redo the entire configuration? If this is required then I would also do the next suggestion of just using the built in perl modules

      The easiest way to reconfigure just one thing is to know its name and to change that from within cpan:

      cpan> o conf foo bar

      The conf command lists all configuration items:

      cpan> o conf

      If you don't find things there, another way is to edit CPAN/Config.pm and to change the values there.

      As a somewhat related aside some advice:

      If you're going to be heavily using stuff from CPAN you probably will save yourself headaches in the long run if you install a separate copy of perl yourself somewhere else (e.g. under /usr/local from source, or by using macports) and install things from CPAN into that copy instead. That way n months down the road when Apple pushes a software update that diddles the OS' perl install you're not spending time trying to figure out why module X suddenly is rolled back to the "latest" version from 3 months back.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

        Thank you for that suggestion, I do have macports installed on my Mac but never thought of install Perl from it. I'm sure macports will have a newer version than 5.8.9 anyways.