読者です 読者をやめる 読者になる 読者になる

[備忘録]Exception: Object does not respond to 'URL'とIo(Iolanguage)で表示されたのでインストールしなおした。

追記

Getting Startedにインストール手順あった><

表題の通り。URLパッケージをIo(Iolanguage)で使おうとしたら下記の通りエラー。

$ io
Io 20110905
Io> URL

  Exception: Object does not respond to 'URL'
  ---------
  Object URL                          Command Line 1

yajiとlibeventが必要なんだけど、それぞれバージョン何が必要かわからないからreposのHEADを入れた。

環境

  • MacOSX10.7.3

yajl

$ git clone https://github.com/lloyd/yajl.git
$ cd yaji
$ ./configure
$ make
$ sudo make install

libevent

$ git clone https://github.com/libevent/libevent.git
$ cd libevent
$ sh -x autogen.sh
$ ./configure
$ make
$ sudo make install

cmake

cmakeはじめて使った。下記からダウンロード&&インストール
http://www.cmake.org/cmake/resources/software.html

Io

$ git clone https://github.com/stevedekorte/io.git
$ cd io
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

試しに

% io
Io 20110905
Io> URL
==>  URL_0x7f8599911f60:
  cacheFile        = method(...)
  cacheFolder      = Directory_0x7f8598e2dd90
  cacheLoad        = method(...)
  cacheOn          = false
  cacheStore       = method(data, ...)
  cacheTimeout     = 86400
  childUrl         = method(u, ...)
  clear            = method(...)
  connectAndWriteHeader = method(header, ...)
  constructHttpHeader = method(httpVerb, parameters, headers, ...)
  cookie           = method(...)
  delete           = method(parameters, headers, ...)
  domain           = method(...)
  escapeString     = method(u, ...)
  evFetchHttp      = method(...)
  evPost           = method(parameters, headers, ...)
  fetch            = method(url, redirectCount, ...)
  fetchAndFollowRedirect = method(...)
  fetchHttp        = method(progressBlock, ...)
  fetchOrFailToFilePath = method(path, ...)
  fetchRaw         = method(...)
  fetchToFile      = method(file, ...)
  fetchWithDelegate = method(delegate, ...)
  fetchWithProgress = method(progressBlock, ...)
  followRedirects  = true
  fourCharheaderBreaks = list(

, 

)
  hasResponseHeaders = method(...)
, headerBreaks     = list(

, 

, 

)
  host             = nil
  init             = method(...)
  isSynchronous    = false
  lastRedirectUrl  = method(...)
  maxRedirects     = 1
  openOnDesktop    = method(...)
  parse            = method(...)
  password         = nil
  post             = method(parameters, headers, ...)
  processHttpResponse = method(progressBlock, ...)
  protocol         = nil
  put              = method(parameters, headers, ...)
  readHeader       = nil
  redirectUrl      = nil
  redirectUrlNormalizer = nil
  referer          = nil
  requestHeader    = method(...)
  requestHeaders   = Map_0x7f8598d0c6e0
  responseCookie   = method(...)
  setCacheOn       = method(...)
  setCookie        = method(cookie, ...)
  setFollowRedirects = method(...)
  setHost          = method(...)
  setIsSynchronous = method(aBool, ...)
  setMaxRedirects  = method(...)
  setPassword      = method(...)
  setProtocol      = method(...)
  setReadHeader    = method(...)
  setRedirectUrl   = method(...)
  setRedirectUrlNormalizer = method(...)
  setReferer       = method(...)
  setRequest       = method(r, ...)
  setResponseHeaderString = method(header, ...)
  setSocket        = method(...)
  setSocketProto   = method(...)
  setStatusCode    = method(...)
  setStreamDestination = method(...)
  setTimeout       = method(timeout, ...)
  setURL           = method(s, ...)
  setUserAgent     = method(v, ...)
  setUsername      = method(...)
  setUsesBasicAuthentication = method(...)
  socket           = nil
  socketProto      = Socket_0x7f859985d910
  standardHeaderSymbols = list(Accept-Ranges, Cache-Control, La...
  startStreaming   = method(...)
  statusCode       = nil
  stopFetch        = method(...)
  streamDestination = nil
  test             = method(...)
, twoCharheaderBreaks = list(

)
  type             = "URL"
  unescapeString   = method(u, ...)
  unparse          = method(...)
  url              = ""
  useBasicAuthentication = method(username, password, ...)
  useEv            = method(...)
  username         = nil
  usesBasicAuthentication = false
  with             = method(s, fromURL, ...)

以上、終わり!