【问题标题】:Not able to install simple-graphics无法安装简单图形
【发布时间】:2017-03-14 14:26:20
【问题描述】:

我尝试使用以下命令安装 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...

【问题讨论】:

    标签: scheme chicken-scheme


    【解决方案1】:

    您需要安装libcairo-dev 包,其中包含头文件和pkg-config 信息。 chicken-install 需要编译 cairo egg 并将其链接到 libcairo。你得到的错误是因为pkg-config --cflags cairo 返回了一个错误。

    【讨论】:

    • 它想为此安装所有这些文件: libcairo-script-interpreter2 libcairo2-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libglib2.0-dev libice-dev libpixman-1-dev libpthread- stubs0-dev libsm-dev libx11-dev libxau-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxdmcp-dev libxext-dev libxrender-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto -render-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev
    • 我安装了 libcairo-dev 但还是有问题。请参阅上面我的问题中的编辑。
    • 这里也需要安装库的开发版本。那是libsdl-dev
    猜你喜欢
    • 2018-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多