我正在关注http://blog.opalang.org/2011/06/first-steps-hello-web-in-opa.html,所以代码很简单:
server = Server.one_page_server("Hello", ( -> <>Hello web</>))
保存到 hello.opa,然后我尝试编译:
me@myhost:~/src/opa/helloweb$ opa hello.opa
sh: as: not found
File "bsl_init_.ml", line 1, characters 0-1:
Error: Assembler error, input left in file /tmp/camlasm313d73.s
make: *** [bsl_init_.cmx] Error 2
error during ocaml compilation -- the command was :
make --makefile=MakefileLinking -W MakefileLinking -j 7 cmxa -s
希望我犯了一个明显的错误,但是在搜索错误消息后我没有找到任何结果。我在 EC2 上使用 Ubuntu 64 位发行版。完成依赖项后,我使用 dpkg 安装了 .deb。
任何帮助将不胜感激,因为我非常想玩 opa。