kateinoigakukun / ruby-compute-runtime

Home Page:https://ruby-compute-runtime-demo.edgecompute.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error '`RubyGems' were not loaded' occured

varu3 opened this issue · comments

Hi, Thanks for the great demo and sample code!

When I tried a sample from this repository, I faced the following errors.
(GET request to http://127.0.0.1:7878 using curl)

$ viceroy ./tmp/sample.wasm
Sep 27 21:07:41.065  WARN no configuration provided, invoke with `-C <TOML_FILE>` to provide a configuration
Sep 27 21:07:41.066  INFO Listening on http://127.0.0.1:7878
Sep 27 21:07:46.290  INFO request{id=0}: handling request GET http://127.0.0.1:7878/
`RubyGems' were not loaded.
`error_highlight' was not loaded.
`did_you_mean' was not loaded.
`syntax_suggest' was not loaded.
Sep 27 21:07:46.372  INFO request{id=0}: request completed using 107.2 MB of WebAssembly heap
Sep 27 21:07:46.372  INFO request{id=0}: request completed in 82ms

runtime environment is as follows.

$ sw_vers
ProductName:	macOS
ProductVersion:	12.4
BuildVersion:	21F79

$ sysctl machdep.cpu.brand_string
machdep.cpu.brand_string: Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz

$ ruby -v
ruby 3.2.0preview2 (2022-09-09 master 35cfc9a3bb) [x86_64-darwin21]

Do you have any idea to resolve this error?

Sorry for the confusion. Could you try it again after installing wasi-preset-args? I missed it in readme instruction.

Thanks! I'll try it.