Make not working in CPAN in OSX shell

Ask a Question related to Perl / CGI, Design and Development.

  1. #1

    Default Make not working in CPAN in OSX shell

    Hi There,
    I am trying to install some Perl modules from CPAN. Upon not being able to install anything (even running 'install Data:umper', something that's installed installed and working, throws errors), I found this line in the log for all modules I was trying to install:

    Can't exec "make": No such file or directory at /System/Library/Perl/5.10.0/CPAN.pm line 7698.

    That kinda told me that the problem is in make. Either make is not installed or broken (can't say which). I also tried to remove .cpan folder in /Users/my_name/ area, but it didn't change anything. Then I checked if the path to Perl or cpan is set properly. I tried the:
    'which perl' returned /usr/bin/perl
    'which cpan' returned /usr/bin/cpan
    perl -MConfig -e 'print $Config{perlpath}, "\n"' returned /usr/bin/perl

    I check in the /System/Library/Perl area, and found two folders: 5.8.9 and 5.10.0 .
    I ran 'perl -v' and it gave this "This is perl, v5.10.0 built for darwin-thread-multi-2level"

    So my question is that how do I install the "make" so that I am able to install modules directly from CPAN and don't have to install them manually?

    Appreciate your help.
    Anshu is offline Junior Member
    Join Date
    Jun 2011
    Location
    FooBar
    Posts
    2

  2. Similar Questions and Discussions

    1. CPAN make test error with XML::Encoding
      I am trying to install XML::Encoding on my Debian woody system -- kernel 2.2.20 and perl 5.6.1. I am getting an error in CPAN and I do not know...
    2. Newbie Q: how to make a cpan package
      "Ignoramus23186" <ignoramus23186@NOSPAM.23186.invalid> wrote in message news:K3PQe.110824$f24.30223@fe18.usenetserver.com... perldoc -q "create a...
    3. CPAN Shell on Mac OS X (10.3) Not Installing Modules
      I recently installed Perl 5.8.4 on Mac OS X 10.3. It successfully installed under /usr/local/bin, and I have had no problem running Perl scripts...
    4. CPAN shell problem on MacOS X
      Hi. I am running MacOS X 10.3.1 (Panther) on a G4 iMac. I am installing some Perl modules using the CPAN shell, i.e., I issue the command #...
    5. make fails with cpan
      What is the reason? With < perl -MCPAN -e shell > < make > is impossible, but trying it manually < make > is successfull.
  3. #2

    Default Re: Make not working in CPAN in OSX shell

    nevermind.. found the problem.

    I did a 'whereis make' .. and realized that there is no make in /usr/bin

    Then, out of curiosity, I did a 'whereis gcc' .. and realized no gcc either in /usr/bin

    Oddly, I have Xcode installed and these (gcc and make) exist in /Developer/usr/bin

    Then I tried to 'look Spreadsheet::WriteExcel' (in CPAN shell) and tried to do the manual install steps of
    perl Makefile.PL
    /Developer/usr/bin make install

    no dice still. It told me that
    make: *** No rule to make target `/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'. Stop.

    Finally I think my perl installation is pretty much fried. Will reinstall from my OSX DVD.
    Anshu is offline Junior Member
    Join Date
    Jun 2011
    Location
    FooBar
    Posts
    2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139