Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Installing Perl 5.18.0 in Mac OS X with PerlBrew

by coolmichael (Deacon)
on Jul 04, 2013 at 00:00 UTC ( #1042300=perlquestion: print w/ replies, xml ) Need Help??
coolmichael has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install 5.18 with perlbrew like so: perlbrew install perl-5.18.0 --as padre-perl But I'm getting the strangest error message I've ever seen in the error logs (below)

I've already installed a few Perls, including 5.18 on this machine with PerlBrew. It's running Mac OS X 10.8.4,

gcc -v gives "gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) installed by XCode 4.6.3."

cc -v gives "Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)"

(I'm not sure if it's using CC or GCC). I'm stumped. Any advice appreciated.

/usr/bin/awk: syntax error at source line 1 context is { print $ >>> } <<< /usr/bin/awk: illegal statement at source line 1 /usr/bin/awk: illegal statement at source line 1 <stdarg.h> NOT found. /usr/bin/awk: syntax error at source line 1 context is { print $ >>> } <<< /usr/bin/awk: illegal statement at source line 1 /usr/bin/awk: illegal statement at source line 1 <varargs.h> NOT found, but that's ok (I hope). *** WHOA THERE!!! *** Your C compiler "cc" doesn't seem to support stdarg or varargs! I'm giving up; maybe you can try again with a different compiler?

Comment on Installing Perl 5.18.0 in Mac OS X with PerlBrew
Select or Download Code
Re: Installing Perl 5.18.0 in Mac OS X with PerlBrew
by dave_the_m (Parson) on Jul 04, 2013 at 00:23 UTC
    Earlier on in the Configure output there should be a line like
    Your cpp writes the filename in the 4th field of the line.
    What does it say in your case? In particular, I suspect it will give '???' for the field number

    Dave.

      That's exactly what is says:

      Your cpp writes the filename in the ??? field of the line.
        In that case, Configure is failing to parse the output of the C preprocessor. Look at he following code, around line 5413:
        echo '#include <stdio.h>' > foo.c $cat >fieldn <<EOF $startsh $cppstdin $cppflags $cppminus <foo.c 2>/dev/null | \ $grep '^[ ]*#.*stdio\.h' | \ while read cline; do pos=1 set \$cline while $test \$# -gt 0; do if $test $testaccess \`echo \$1 | $tr -d '"'\`; then echo "\$pos" exit 0 fi shift pos=\`expr \$pos + 1\` done done EOF
        You might want to edit Configure so that it shows the exact command being executed on the $cppstdin line, then run it manually and what output you get.

        Dave.

Re: Installing Perl 5.18.0 in Mac OS X with perlall
by Anonymous Monk on Jul 04, 2013 at 01:16 UTC

    (I'm not sure if it's using CC or GCC). I'm stumped. Any advice appreciated.

    forget about perlbrew :) try perlall

    OR, try it yourself :) given the diagnostic message you got is I'm giving up; maybe you can try again with a different compiler? so run configure yourself with prefix and specify your compiler as gcc

    sh configure -Dcc=gcc -Dprefix=~/p5180

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1042300]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2014-07-12 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls