user1611830
user1611830

Reputation: 4867

Pb installing Date::Manip with cpan

I am struggling for one day installing date: with cpan (I am using os x). I always get this message

Warning: prerequisite Test::Inter 0 not found.
Bareword found where operator expected at ./Makefile.PL line 1, near "30 mtime"
    (Missing operator before mtime?)
Number found where operator expected at ./Makefile.PL line 2, near "30"
    (Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 2, near "30 atime"
    (Missing operator before atime?)
Number found where operator expected at ./Makefile.PL line 3, near "30"
    (Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 3, near "30 ctime"
    (Missing operator before ctime?)
ERROR from evaluation of /Users/mehdibenchoufi/.cpan/build/SBECK-QEN4kY/Date-Manip-6.36/Makefile.PL: ERROR from evaluation of /Users/mehdibenchoufi/.cpan/build/SBECK-QEN4kY/Date-Manip-6.36/PaxHeaders.11917/Makefile.PL: syntax error at ./Makefile.PL line 1, near "30 mtime"
Warning: No success on command[/opt/local/bin/perl5.12 Makefile.PL]
'YAML' not installed, will not store persistent state
  SBECK/Date-Manip-6.36.tar.gz
  /opt/local/bin/perl5.12 Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Failed during this command:
 SBECK/Date-Manip-6.36.tar.gz                 : writemakefile NO '/opt/local/bin/perl5.12 Makefile.PL' returned status 65280

Does anyone knows how to debug ?

Upvotes: 1

Views: 6123

Answers (2)

Gui
Gui

Reputation: 41

I ran into the same issue and these steps worked for me:

> sudo cpan
cpan[1]> install CPAN
cpan[2]> exit
> sudo rm -rf ~/.cpan/build/SBECK-*
> sudo cpan Date::Manip

Upvotes: 4

Len Jaffe
Len Jaffe

Reputation: 3484

Start by installing YAML.pm and Test::Iter.pm

But. You might not want to mess with the system perl on OS X.

You might want to give serious consideration to using perlbrew to manage a local install of perl wiith its own set of modules, separate form the system install.

Upvotes: 0

Related Questions