Opa不会编译hello_web.opa [英] Opa won't compile hello_web.opa

查看:77
本文介绍了Opa不会编译hello_web.opa的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注 http://blog.opalang.org/2011/06/first-steps-hello-web-in-opa.html ,因此代码很简单:

I'm following the http://blog.opalang.org/2011/06/first-steps-hello-web-in-opa.html, so the code is simply:

server = Server.one_page_server("Hello", ( -> <>Hello web</>))

保存到hello.opa,然后尝试编译:

saved to hello.opa, then I try to compile:

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.

Hopefully I've made an obvious mistake, but I didn't come with any hits after searching on the error message. I am using an Ubuntu 64bit distro on EC2. I installed the .deb with dpkg after fulfilling the dependencies.

任何帮助将不胜感激,因为我非常想玩opa.

Any assistance would be appreciated because I'd very much like to play around with opa.

推荐答案

我刚刚尝试了EC2 Large,并安装了新的Ubuntu 11.04:

I've just tried on a EC2 Large, with a fresh Ubuntu 11.04, installing :

sudo apt-get install libgomp1 binutils libc-dev-bin linux-libc-dev gcc-4.5 libc6-dev libgif4 zlib1g-dev libssl-dev gcc libgdbm-dev

然后

sudo dpkg -i opa_1.0s3.5+build520_amd64.stable.deb 

opa hello.opa

它有效. 您能否分享有关您使用的ubuntu或AMI ID的更多信息?

And it works. Can you please share more information about the ubuntu or the AMI id you used?

最好

塞德里克

这篇关于Opa不会编译hello_web.opa的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆