可能是小鸡没有正确安装所需的权限:
$ 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