我正在关注的http://blog.opalang.org/2011/06/first-steps-hello-web-in-opa.html,所以代码很简单:OPA不会编译hello_web.opa
server = Server.one_page_server("Hello", (-> <>Hello web</>))
保存到hello.opa,然后我尝试编译:
[email protected]:~/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 64bit发行版。在完成依赖关系后,我使用dpkg安装了.deb。
任何援助将不胜感激,因为我非常想玩弄opa。
ebs/ubuntu-images/ubuntu-maverick-10.10-amd64-server-20101225(ami-cef405a7) –
这对我来说也适用于这台机器。与我以前的帖子不同的是gcc-4.4和libjpeg62。你使用相同的版本? (sudo apt-get install libgomp1 binutils libc-dev-bin linux-libc-dev gcc-4.5 libc6-dev libgif4 zlib1g-dev libssl-dev gcc libjpeg62 libgdm-dev) –
太棒了!我创建了一个新实例,并且做了 'sudo aptitude update sudo aptitude upgrade sudo apt-get install libgomp1 binutils libc-dev-bin linux-libc-dev gcc-4.5 libc6-dev libgif4 zlib1g-dev libssl-dev gcc无论如何,这允许我编译libjpeg62 libgdbm-dev sudo dpkg -i opa_1.0s3.5 + build520_amd64.stable.deb' –