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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: cpanm Tk build errors
by thimes (Acolyte) on May 22, 2024 at 06:58 UTC |