1

尝试安装和运行SpockChickenScheme的扩展)。

起初,我什至不知道这取决于 ChickenScheme 框架,但我设法安装并运行了 ChickenScheme

$ Chicken      
(c) 2008-2013, The Chicken Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.8.0.1 (stability/4.8.0) (rev 54c391c)
macosx-unix-clang-x86-64 [ 64bit manyargs dload ptables ]
compiled 2013-01-17 on aeryn.xorinia.dim (Darwin)

鸡蛋,我猜鸡蛋必须是根据安装鸡蛋的spock

$ chicken-install spock
retrieving ...

安装完成后,我尝试了http://wiki.call-cc.org/eggref/4/spock#using-the-static-compiler

$ chicken-spock
zsh: command not found: chicken-spock

$ chicken-spock -help
zsh: command not found: chicken-spock

我想念什么?

4

1 回答 1

1

可能是小鸡没有正确安装所需的权限:

$ chicken-install spock
retrieving ...
cp -r jsmin.so /opt/local/lib/chicken/6/jsmin.so
cp: /opt/local/lib/chicken/6/jsmin.so: Permission denied
Error: shell command failed with nonzero exit status 256:
  cp -r jsmin.so /opt/local/lib/chicken/6/jsmin.so
Error: shell command terminated with nonzero exit code 17920

$ chicken-spock
-bash: chicken-spock: command not found

收到相同的错误后,以下工作:

$ sudo chicken-install spock

可以使用以下命令验证安装:

$chicken-status -list
(chicken-spock "0.091")
(jsmin "2.1")
(make "1.7")
(matchable "3.3")
(spock "0.091")

$ chicken-status spock
chicken-spock ................................................. version: 0.091
spock ......................................................... version: 0.091

或者查看库文件列表:

$ chicken-status -f
/opt/local/bin/chicken-spock
/opt/local/lib/chicken/6/jsmin.import.so
/opt/local/lib/chicken/6/jsmin.so
/opt/local/lib/chicken/6/make.import.so
/opt/local/lib/chicken/6/make.so
/opt/local/lib/chicken/6/matchable.import.so
/opt/local/lib/chicken/6/matchable.so
/opt/local/lib/chicken/6/spock
/opt/local/lib/chicken/6/spock-compiler.import.so
/opt/local/lib/chicken/6/spock-compiler.so
/opt/local/lib/chicken/6/spock.import.so
/opt/local/lib/chicken/6/spock.so
于 2013-07-26T21:43:59.477 回答