2016-11-12 74 views
1

我試圖用CHICKEN編譯一個方案文件,它說那裏需要安裝雞的iup端口。所以我去了網站,並試圖安裝iup端口,但我得到了一個錯誤。然後我意識到我需要得到ffcall。我已經安裝並嘗試再次安裝iup端口。並失敗。 我不知道我的系統上是否安裝了srfi-42。即使我知道它沒有安裝,我仍然不知道如何安裝srfi-42來使iup端口工作。(CHICKEN)無法通過終端安裝iup雞蛋

這是我的錯誤:

[email protected]:~/blah/chicken-4.11.0/chicken-4.11.0$ sudo chicken-install iup    
retrieving ... 
connecting to host "chicken.kitten-technologies.co.uk", port 80 ... 
requesting "/henrietta.cgi?name=iup&mode=default" ... 
reading response ... 
HTTP/1.1 200 OK 
Date: Sat, 12 Nov 2016 06:16:26 GMT 
Server: Apache/2.2.31 (Unix) DAV/2 PHP/5.5.36 mod_fastcgi/2.4.6 
Connection: close 
Transfer-Encoding: chunked 
Content-Type: text/plain 
reading chunks .... 
reading files ... 
    ./iup-controls.scm 
    ./iup-base.scm 
    ./iup-config.scm 
    ./iup-glcanvas.scm 
    ./iup-dialogs.scm 
    ./iup-dynamic.scm 
    ./iup-glcontrols.scm 
    ./iup-mglplot.scm 
    ./iup-ole.scm 
    ./iup-plot.scm 
    ./iup-pplot.scm 
    ./iup-scintilla.scm 
    ./iup-types.scm 
    ./iup-web.scm 
    ./iup.meta 
    ./iup.release-info 
    ./iup.scm 
    ./iup.setup 
iup located at /tmp/temp5d54.6346/iup 
checking platform for `iup' ... 
checking dependencies for `iup' ... 
install order: 
("iup") 
installing iup:1.8.0 ... 
changing current directory to /tmp/temp5d54.6346/iup 
    '/usr/local/bin/csi' -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"iup\" \"1.8.0\"))" 'iup.setup' 
    '/usr/local/bin/csc' -feature compiling-extension -setup-mode -s -O2 -d1 iup.scm -j iup -j iup-base -j iup-controls -j iup-dialogs -j iup-glcanvas -j iup-glcontrols -j iup-plot -j iup-mglplot -j iup-pplot -j iup-scintilla -j iup-web -j iup-config -lcallback -liup -liupim -liupimglib -liupcontrols -liupmatrixex -liupgl -liupglcontrols -liup_plot -liup_mglplot -liup_pplot -liup_scintilla -liupweb 
iup.c:17:16: fatal error: im.h: No such file or directory 
compilation terminated. 

Error: shell command terminated with non-zero exit status 256: 'gcc' 'iup.c' -o 'iup.o' -c -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer -fPIC -DPIC -DC_SHARED -I/usr/local/include/chicken 

Error: shell command failed with nonzero exit status 256: 

    '/usr/local/bin/csc' -feature compiling-extension -setup-mode -s -O2 -d1 iup.scm -j iup -j iup-base -j iup-controls -j iup-dialogs -j iup-glcanvas -j iup-glcontrols -j iup-plot -j iup-mglplot -j iup-pplot -j iup-scintilla -j iup-web -j iup-config -lcallback -liup -liupim -liupimglib -liupcontrols -liupmatrixex -liupgl -liupglcontrols -liup_plot -liup_mglplot -liup_pplot -liup_scintilla -liupweb 


Error: shell command terminated with nonzero exit code 
17920 
"'/usr/local/bin/csi' -bnq -setup-mode -e \"(require-library setup-api)\" -e \"(... 

我知道這是很長,但錯誤彈出只是在輸出的上述堆的一端。

回答

1

這裏真正的錯誤是iup.c:17:16: fatal error: im.h: No such file or directory,這實際上是C編譯器的抱怨。

此錯誤意味着要麼你沒有發展包安裝(系統頭)IUP,或C編譯器找不到頭文件,因爲它是在一個非標準的位置。如果是後者,你可以試試CSC_OPTIONS=-I/path/to/include chicken-install iup

不幸的是,IUP本身被認爲是一個真正的安裝痛苦,主要是因爲很少有發行版的軟件包。你在消息中沒有說的是爲什麼你需要iup。這是一種你正在嘗試安裝的程序,它使用了CHICKEN和IUP?

+1

如何獲取iup的**開發包**? –

+0

我想編譯一個教程Hello世界程序。但是當我嘗試用雞編譯.scm文件時,它說沒有安裝模塊iup。所以我打雞安裝iup來安裝缺失的模塊。以上是我得到的錯誤。 im.h究竟是什麼?也許 - 我會解決ir –

+0

通過開發包我的意思是你的操作系統的軟件包。所以,如果你這樣做,例如'apt-get install iup',你還需要執行'apt-get install iup-dev'或類似的東西。 – sjamaan