Professional Web Applications Themes

Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN) - PERL Beginners

I'm using the CPAN module to build my modules and have hung up just trying install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc: command not found' error during make. My system uses gcc instead of cc, but I'm not sure where to set this option. Tried setting the CC env setting and looking through .cpan/CPAN/MyConfig.pm, but no setting there seems right, either. Where can I change the cc setting? -- Matthew Glidden...

  1. #1

    Default Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)

    I'm using the CPAN module to build my modules and have hung up just trying
    install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc:
    command not found' error during make. My system uses gcc instead of cc, but
    I'm not sure where to set this option. Tried setting the CC env setting and
    looking through .cpan/CPAN/MyConfig.pm, but no setting there seems right,
    either. Where can I change the cc setting?

    --
    Matthew Glidden
    Matthew Glidden Guest

  2. #2

    Default RE: Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)

    Hi,

    glidden, matthew <glidden_matthewemc.com> asked:
    > I'm using the CPAN module to build my modules and have hung
    > up just trying install Bundle::CPAN. Installing Data::Dumper,
    > for example, shows a 'cc: command not found' error during make.
    > My system uses gcc instead of cc, but I'm not sure where to
    > set this option.
    That information lives in Config.pm, which is created
    during the build process of Perl. Tweaking this might
    or might not help you - on Win32 at least, you can't
    build Perl modules for ActiveState's binary port with
    GCC. Your best bet is to roll your own Perl, of course.
    Apart from that, you might want to try and install the
    same compiler environment as used by the peope who built
    your Perl.

    HTH,
    Thomas
    Thomas bätzler Guest

  3. #3

    Default Re: Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)


    On Dec 11, 2003, at 7:41 AM, glidden, matthew wrote:
    > I'm using the CPAN module to build my modules and have hung up just
    > trying
    > install Bundle::CPAN. Installing Data::Dumper, for example, shows a
    > 'cc:
    > command not found' error during make. My system uses gcc instead of
    > cc, but
    > I'm not sure where to set this option. Tried setting the CC env
    > setting and
    > looking through .cpan/CPAN/MyConfig.pm, but no setting there seems
    > right,
    > either. Where can I change the cc setting?
    what you might want to check is:

    perl -MConfig -e 'print "$Config{cc}\n"';

    a la
    vladimir: 52:] perl -MConfig -e 'print "$Config{cc}\n"';
    gcc
    vladimir: 53:]

    and/or -

    [jeeves: 9:] perl -MConfig -e 'print "$Config{cc}\n"';
    cc
    [jeeves: 10:] which cc
    /usr/bin/cc
    [jeeves: 11:] ls -li /usr/bin/cc
    1749093 lrwxr-xr-x 1 root wheel 7 28 Nov 18:14 /usr/bin/cc -> gcc-3.3
    [jeeves: 12:]

    It is POSSIBLE that the version of perl you
    have was built 'by the vendor' and Might
    have the line in the Config.pm that is

    cc='cc'

    eg:
    vladimir: 63:] ^more^grep cc
    ../perl -V | grep cc
    cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    ccversion='Sun WorkShop', gccversion='', gccosandvers=''
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R
    /usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE'
    cccdlflags='-KPIC', lddlflags='-G'
    11374 Make h2ph grok ccsymbols fo the form 1234L, 1234ULL etc
    vladimir: 64:]

    So you might want to work out a way that you have
    say

    PATH = $HOME/bin:$PATH

    and in your home/bin directory put in the symbolic
    link for

    cc -> /opt/gv/bin/gcc

    or where ever you have it installed. This way you
    avoid

    a. bit twiddling the Config.pm
    b. have the cheap-cheat that is not an ENV trick



    ciao
    drieux

    ---

    Drieux Guest

Similar Threads

  1. Replies: 0
    Last Post: May 10th, 08:51 PM
  2. Bundle::CPAN: File lacking bundle definition
    By Jim Keenan in forum PERL Modules
    Replies: 0
    Last Post: April 1st, 02:23 PM
  3. Bundle::CPAN reinstall problem
    By Matthew Glidden in forum PERL Beginners
    Replies: 0
    Last Post: December 26th, 08:52 PM
  4. linux - install bundle::cpan
    By Paul Kraus in forum PERL Beginners
    Replies: 2
    Last Post: September 8th, 04:10 AM
  5. Bundle::CPAN install problem ?
    By John Smith in forum PERL Miscellaneous
    Replies: 0
    Last Post: August 13th, 01:11 PM

Bookmarks

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