【发布时间】:2012-02-29 03:50:34
【问题描述】:
我正在尝试编译最新版本的 irssi 以在 AppleTV 2 (ios) 上执行 irssi 已存在于 repos 中,但它是一个旧版本,不支持 perl。我在设备上编译了一个应用程序,一个来自 http://imho.nu/Home/start-your-frappliance/appletv-mm-example/ 的简单 HelloWorld。
当我尝试在编译之前配置任何其他内容时,它会失败并显示错误:
checking whether the C compiler works... no
configure: error: in `/private/var/download/irssi/irssi-0.8.15'
config.log 内容:
gcc version 4.2.1 (Based on Apple Inc. build 5555)
configure:3477: $? = 0
configure:3466: gcc -V >&5
gcc: '-V' option must have argument
configure:3477: $? = 1
configure:3466: gcc -qversion >&5
gcc: no input files
configure:3477: $? = 1
configure:3497: checking whether the C compiler works
configure:3519: gcc conftest.c >&5
ld: library not found for -lSystem
collect2: ld returned 1 exit status
configure:3523: $? = 1
configure:3561: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "irssi"
| #define PACKAGE_TARNAME "irssi"
| #define PACKAGE_VERSION "0.8.15"
| #define PACKAGE_STRING "irssi 0.8.15"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3566: error: in `/private/var/download/irssi/irssi-0.8.15':
configure:3570: error: C compiler cannot create executables
See `config.log' for more details.
谁能说明问题可能是什么?似乎脚本通过 gcc '-V' 而不是 '-v' 这可能会搞砸?
【问题讨论】: