本文介绍了Io语言:异常:对象不响应"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>

我的环境是:

推荐答案

发布,我已经完成了以下操作:

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:

发布帮助安装Io

这篇关于Io语言:异常:对象不响应"URL"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 21:47