无法安装简单图形

Not able to install simple-graphics

我尝试使用以下命令安装简单图形:

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 稳定版 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...

您需要安装 libcairo-dev 软件包,其中包含头文件和 pkg-config 信息。 chicken-install 需要针对 libcairo 编译 cairo egg 和 link。你得到的错误是因为 pkg-config --cflags cairo returns 一个错误。