Io语言:异常:对象不响应"URL" [英] Io Language : Exception: Object does not respond to 'URL'
问题描述
今天,我正在练习一个七个星期的七种语言"的Io示例.
Today I'm exercising an Io example of "seven language of seven weeks."
示例代码:
futureResult := URL with("http://google.com/") @fetch
writeln("Do something immediately while fetch goes on in background...")
writeln("This will block until the result is available.")
writeln("fetched ", futureResult size, " bytes")
运行异常:
Io$ io future.io
Exception: Object does not respond to 'URL'
---------
Object URL future.io 1
CLI doFile Z_CLI.io 140
CLI run IoState_runCLI() 1
直接在io中运行URL,出现以下错误:
Directly run URL in io with following error:
~$ io
Io 20110905
Io> URL
Exception: Object does not respond to 'URL'
---------
Object URL Command Line 1
Io>
我的环境是:
Ubuntu 14.04
Ubuntu 14.04
推荐答案
Followed post , I have done following:
$ sudo apt-get install libevent-dev
$ ./build.sh
$ ./build.sh install
URL错误已修复. 但是会引发以下错误:
URL error is fixed. But following error thrown:
在后台继续进行提取的同时立即执行操作... 将阻塞,直到结果可用为止.提取的异常:错误 无法响应大小" ---------错误大小
future.io 6错误的大小future.io 6 CLI doFile Z_CLI.io 140 CLI运行
IoState_runCLI()1
Do something immediately while fetch goes on in background... This will block until the result is available. fetched Exception: Error does not respond to 'size' --------- Error size
future.io 6 Error size future.io 6 CLI doFile Z_CLI.io 140 CLI run
IoState_runCLI() 1
发布帮助安装Io
这篇关于Io语言:异常:对象不响应"URL"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!