rootcho has asked for the wisdom of the Perl Monks concerning the following question:

hi tring to install perl via perlbrew... but seem to have problem with finding gcc.. btw gcc is installed :
Linux Mint gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8)
Dont even know what is the use of "crt1" and company ? Any idea how I can resolve this issue.. ?
perlbrew install stable f this doesn't make any sense to you, just accept the default 'n'. Build Perl for multiplicity? [n] Use which C compiler? [cc] /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find -lc /usr/bin/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status Uh-oh, the C compiler 'cc' doesn't seem to be working. You seem to have a working gcc, though. *** However, any setting of the C compiler flags (e.g. for thread supp +ort) *** will be lost. It may be necessary for you to restart Configure an +d *** add -Dcc=gcc to your Configure command line. Would you like to go ahead and try gcc anyway? [n] /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find -lc /usr/bin/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status Uh-oh, the C compiler 'cc' doesn't seem to be working. You need to find a working C compiler. Either (purchase and) install the C compiler supplied by your OS vendo +r, or for a free C compiler try http://gcc.gnu.org/ I cannot continue any further, aborting.

Replies are listed 'Best First'.
Re: fail: perlbrew install stable
by kcott (Archbishop) on Dec 02, 2013 at 05:17 UTC

    G'day rootcho,

    "... but seem to have problem with finding gcc ..."

    When it asked "Use which C compiler? [cc]", you took the default (i.e. cc). I don't know if that was a mistake or not; however, gcc would probably have been a better response.

    gcc was found: "You seem to have a working gcc, though."

    You chose not to use it: "Would you like to go ahead and try gcc anyway? [n]"

    I think your choices are fairly clear:

    • either "restart Configure and add -Dcc=gcc to your Configure command line."
    • or indicate gcc when asked: "Use which C compiler?"
    • or, failing taking one of those steps, do "go ahead and try gcc anyway"

    Unless there's some other problem you haven't mentioned, I suggest you try again using one of those choices.

    -- Ken

      Hi guys,
      this is log file..
      I cant pick options, it is not manual process.. I just issue the command then perlbrew is doing all this automatically.. i.e. I dont have any control
Re: fail: perlbrew install stable
by wazat (Monk) on Dec 02, 2013 at 04:30 UTC

    I haven't used perlbrew, so I don't know if the following will be helpful.

    I vaguely recall crt is "C runtime", basically bootstrapping code for compiled C programs.

    If you get the opportunity to respond to the prompt

    Would you like to go ahead and try gcc anyway? [n]

    Try typing 'y'.

Re: fail: perlbrew install stable
by Anonymous Monk on Dec 02, 2013 at 11:20 UTC
    It sounds like you're missing something from your setup. Do you have the Debian package build-essential installed?
      That solved it .. thanks (I've used Linux Mint for just two days , which is why I missed those things)