これに関する別の投稿があることは知っていますが、Opa が hello_web.opa をコンパイルしないという別のエラーがあります。
hello_chat.opa
サンプル3.Hello, chatをコンパイルしようとすると、次のエラーが表示されます。
In hello_chat.opa [1:29-1:29 | global chars=29-29]
Syntax error at line 1, column 29
The error may be in the following citation, usually in the red part (starting at ?) or just before:
<<type message = {string author?,string text}
room = Network.network(message) (Network.cloud("room"))
do function start() {
>>
Hint: expected "'" or "..." or ":" or ";" or "_" or "}" or "~" or '_' or <spacing> or <value identifier> or ['0'-'9'] or ['A'-'Z'] or ['a'-'z']
(while parsing <record type fields> starting at line 1, column 16)
Error
Syntax error
私はUbuntu 64(v11.04)を実行しており、すべての依存関係をインストールしています(ドキュメントに従ってください)。.deb パッケージ (opa_1.0s3.5+build687_amd64.stable.deb) から opa をインストールしました。
また、ソースからビルドしようとしましたが、構成ステップで、一部の deps が欠落していると不平を言います。これが問題解決のカギになるのではないでしょうか?
giacomo@linuxlap:~/src/opalang$ ./configure
Checking your OS... Linux
Checking your architecture... x86_64
Checking ocamlopt... /usr/local/bin/ocamlopt
Checking ocamlbuild... /usr/local/bin/ocamlbuild
Checking ocamldir... /usr/local/lib/ocaml
Checking ocaml version... 3.12.1
Checking your ocaml setup... 3.12.1, Unix 64bit
Checking for camlp4... /usr/local/bin/camlp4o
Checking for perl 5... found
Checking for java... found
Checking for camlidl... Disabled
Checking for ocamlfind... Not found (but optional)
Checking for ssl... Not found
Checking for cryptokit... Not found
Checking for camlzip... Not found
Checking for graph... Not found
Checking for ulex... Not found
Not configured. You need the following libraries installed:
- ocaml_ssl (might be found in package libssl-ocaml-dev)
- cryptokit (might be found in package libcryptokit-ocaml-dev)
- camlzip (might be found in package libzip-ocaml-dev)
- ocamlgraph (might be found in package libocamlgraph-ocaml-dev)
- ulex (might be found in package ocaml-ulex)
不足しているスクリプト クレームを構成するパッケージはすべて、システムにインストールされています。