Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: cpanm Tk build errors

by cavac (Parson)
on May 22, 2024 at 02:54 UTC ( [id://11159615]=note: print w/replies, xml ) Need Help??

in reply to cpanm Tk build errors

C compiler cannot create executables

Uhm, that's a new one i haven't seen before. I doubt that your compiler is borked (i doubt even Apple would be so bold as to break the compiler just to keep up their walled garden), but just to make sure, write a file "hello.c":

#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }

Then compile it with mininal arguments and execute it:

$ cc -o hello hello.c $ ./hello Hello, World!

If that works, you could try with the whole kaboodle of flags that the compile script thinks it should use:

$ cc -fno-common -DPERL_DARWIN -mmacosx-version-min=14.4 -DNO_POSIX_20 +08_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/ +local/include -fno-common -DPERL_DARWIN -mmacosx-version-min=14.4 - +DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-st +rong -I/usr/local/include -mmacosx-version-min=14.4 -fstack-protecto +r-strong -L/usr/local/lib -o hello hello.c $ ./hello

Does this also work or do you get any errors?

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

Replies are listed 'Best First'.
Re^2: cpanm Tk build errors
by thimes (Acolyte) on May 22, 2024 at 06:58 UTC
    All built with no errors. Executed perfectly.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11159615]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-07-15 20:47 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.