我尝试使用以下命令安装简单图形:
chicken-install simple-graphics
但是,在运行并安装文件一段时间后,它结束于以下错误:
....
....
sdl-base located at /tmp/temp95d8.5948/sdl-base
checking platform for `sdl-base' ...
checking dependencies for `sdl-base' ...
checking platform for `clojurian' ...
checking dependencies for `clojurian' ...
checking platform for `cairo' ...
checking dependencies for `cairo' ...
install order:
("cairo"
"clojurian"
"sdl-base"
"matchable"
"doodle"
"setup-helper"
"foreigners"
"stty"
"srfi-71"
"miscmacros"
"parley"
"simple-graphics")
installing cairo:0.1.16 ...
changing current directory to /tmp/temp95d8.5948/cairo
'/usr/bin/csi' -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"cairo\" \"0.1.16\"))" 'cairo.setup'
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Error: (string-parse-start+end) bad argument type - not a string: #!eof
Error: shell command terminated with nonzero exit code
17920
"'/usr/bin/csi' -bnq -setup-mode -e \"(require-library setup-api)\" -e \"(import...
我正在使用Debian Stable Linux。
我检查了'cairo'并且我安装了以下软件包:
libcairo-perl 1.106-1build1 1.106-1build1 1.106-1build1 install
libpango-perl 1.227-1 1.227-1 1.227-1 install
poppler-utils 0.41.0-0ubuntu1.1 0.41.0-0ubuntu1.1 0.41.0-0ubuntu1.1 install
python-cairo 1.8.8-2 1.8.8-2 1.8.8-2 install
python-gi-cairo 3.20.0-0ubuntu1 3.20.0-0ubuntu1 3.20.0-0ubuntu1 install
python-scour 0.32-1 0.32-1 0.32-1 install
python3-cairo 1.10.0+dfsg-5build1 1.10.0+dfsg-5build1 1.10.0+dfsg-5build1 install
python3-gi-cairo 3.20.0-0ubuntu1 3.20.0-0ubuntu1 3.20.0-0ubuntu1 install
我尝试安装libcairo2,但收到了以下消息:
libcairo2 is already the newest version (1.14.6-1).
问题在哪里以及如何解决?
我安装了libcairo2-dev,然后又进一步运行了。但是,现在它终止了以下错误:
...
...
installing sdl-base:0.1 ...
changing current directory to /tmp/tempeeb8.15805/sdl-base
'/usr/bin/csi' -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"sdl-base\" \"0.1\"))" 'sdl-base.setup'
sh: 1: sdl-config: not found
Error: (string-split) bad argument type - not a string: #!eof
Error: shell command terminated with nonzero exit code
17920
"'/usr/bin/csi' -bnq -setup-mode -e \"(require-library setup-api)\" -e \"(import...
我尝试安装sdl-base但是没有成功:
$ sudo chicken-install sdl-base
retrieving ...
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
requesting "/henrietta.cgi?name=sdl-base&mode=default" ...
reading response ...
HTTP/1.1 200 OK
Date: Tue, 14 Mar 2017 17:40:11 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 ...
./sdl-base.meta
./heap.scm
./keysym.scm
./timer.scm
./sdl-base-foreign-types-include.scm
./sdl-base.scm
./sdl-base.setup
./test-heap.scm
sdl-base located at /tmp/tempf3a9.15940/sdl-base
checking platform for `sdl-base' ...
checking dependencies for `sdl-base' ...
install order:
("sdl-base")
installing sdl-base:0.1 ...
changing current directory to /tmp/tempf3a9.15940/sdl-base
'/usr/bin/csi' -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"sdl-base\" \"0.1\"))" 'sdl-base.setup'
sh: 1: sdl-config: not found
Error: (string-split) bad argument type - not a string: #!eof
Error: shell command terminated with nonzero exit code
17920
"'/usr/bin/csi' -bnq -setup-mode -e \"(require-library setup-api)\" -e \"(import...
答案 0 :(得分:0)
您需要安装libcairo-dev
包,其中包含头文件和pkg-config信息。 chicken-install需要编译cairo egg并将其链接到libcairo。您得到的错误是因为pkg-config --cflags cairo
返回错误。