steve.stone4 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Has anyone managed to install any new modules to the standard PERL install on MAC OS Lion? All attempts result in Make failing...
Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
Any help would be great... regards

Replies are listed 'Best First'.
Re: Adding PERL Modules to MAC OS Lion Failing
by kcott (Archbishop) on Jun 15, 2012 at 09:45 UTC

    G'day steve.stone4,

    Welcome to the Monastery.

    Modifying the system Perl on Mac OS X is generally not a good idea. In fact, unless you have a specific reason for doing this, it's likely to be a bad idea. I started using Mac OS X last year, and received some very sage advice when I asked "Are there any major Perl issues with Mac OS X Lion?" - not modifying system Perl was a common theme.

    Of the various Perl options discussed, I didn't try ActiveState and preferred Perlbrew over MacPorts. Beyond that, I pretty much followed the advice on Developer Tools, Xcode, etc. as given.

    There's been a few discussions recently regarding Mac OS X and Perlbrew, so searching on those strings may prove fruitful.

    -- Ken

Re: Adding PERL Modules to MAC OS Lion Failing
by Anonymous Monk on Jun 15, 2012 at 07:04 UTC
    You need to show all output from  perl Makefile.PL and  make, all the interesting errors / info are from those commands
      Here is the result of trying to install DBI....
      cpan[3]> install DBI Running install for module 'DBI' Running make for T/TI/TIMB/DBI-1.622.tar.gz Fetching with LWP: ftp://cpan.etla.org/pub/CPAN/authors/id/T/TI/TIMB/DBI-1.622.tar.gz Warning (usually harmless): 'YAML' not installed, cannot parse '/var/r +oot/.cpan/FTPstats.yml' Warning (usually harmless): 'YAML' not installed, cannot parse '/var/r +oot/.cpan/FTPstats.yml' Fetching with LWP: ftp://cpan.etla.org/pub/CPAN/authors/id/T/TI/TIMB/CHECKSUMS Checksum for /var/root/.cpan/sources/authors/id/T/TI/TIMB/DBI-1.622.ta +r.gz ok CPAN.pm: Going to build T/TI/TIMB/DBI-1.622.tar.gz Your perl was compiled with gcc (version 4.2.1 (Based on Apple Inc. bu +ild 5658) (LLVM build 2335.15.00)), okay. Creating test wrappers for DBD::Gofer: t/zvg_01basics.t t/zvg_02dbidrv.t . . . Long list .. . . t/zvxnp_52dbm_complex.t t/zvxnp_85gofer.t Creating test wrappers for DBD::Gofer + DBI::SQL::Nano + DBI::PurePerl +: t/zvxgnp_48dbi_dbd_sqlengine.t t/zvxgnp_49dbd_file.t t/zvxgnp_50dbm_simple.t t/zvxgnp_51dbm_file.t t/zvxgnp_52dbm_complex.t t/zvxgnp_85gofer.t Checking if your kit is complete... Looks good I see you're using perl 5.012003 on darwin-thread-multi-2level, ok +ay. Remember to actually *read* the README file! Use 'make' to build the software (dmake or nmake on Windows). Then 'make test' to execute self tests. Then 'make install' to install the DBI and then delete this workin +g directory before unpacking and building any DBD::* drivers. Writing Makefile for DBI Can't exec "make": No such file or directory at /System/Library/Perl/5 +.12/CPAN/Distribution.pm line 2026. TIMB/DBI-1.622.tar.gz make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: TIMB/DBI-1.622.tar.gz : make NO cpan[4]>
      this is the same for all modules