2012-02-27 115 views
0

我試圖編譯在appleTV 2上執行的irssi的最新版本(ios)irssi已經存在於回購協議中,但它是一個不支持perl支持的舊版本。我已經在設備上編譯了一個應用程序,一個簡單的來自http://imho.nu/Home/start-your-frappliance/appletv-mm-example/的HelloWorld。在iOS上編譯irssi(Apple TV)

當我嘗試編譯之前配置別的,它失敗,出現錯誤:

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',這可能會搞砸了?

回答

0

很高興你發現了我的imho.nu頁面。我只是通過測試簡單的方法來進入。 apt-get install irssi。這安裝了irssi 0.8.12(20071006 0939)直接從cydia。

我裝:

wget http://apt.saurik.com/debs/libgcc_4.2-20080410-1-6_iphoneos-arm.deb 
dpkg -i libgcc_4.2-20080410-1-6_iphoneos-arm.deb 
apt-get install iphone-gcc ldid make 

當我鍵入gcc -v(不-V)它會給我:

AppleTV:/usr/bin root# gcc -v 
Using built-in specs. 
Target: arm-apple-darwin9 
Configured with: ../llvm-gcc-4.2/configure --build=x86_64-unknown-linux-gnu --host=arm-apple-darwin9 --enable-static=no --enable-shared=yes --prefix=/usr --localstatedir=/var/cache/iphone-gcc --enable-languages=c,c++,objc,obj-c++ --enable-wchar_t=no --with-gxx-include-dir=/usr/include/c++/4.0.0 
Thread model: posix 
gcc version 4.2.1 (Based on Apple Inc. build 5555) 
AppleTV:/usr/bin root# 

參見:http://imho.nu/iMHo/scripting-with-irssi/

在任何情況下
+0

,你寫了爲恕我直言。 nu是好的,但我不認爲perl模塊是在該版本的irssi中加載的。你的/ LOAD輸出是否包含perl?我的不是。此版本是08.12最新版本是08.15 – 2012-03-01 21:45:18

+0

也請在imho.nu上添加聯繫信息或打開評論 – 2012-03-01 21:45:50