opa - 编译 opa 文件时出错

标签 opa

我是 Opa(和兼容语言)的新手 - 通常使用 Python 开发网络应用程序。

我正在学习 http://doc.opalang.org/index.html#_introducing_opa 上的介绍教程但是当我运行“opa hello_chat.opa”时,我的 hello_chat.opa 文件不会编译。我收到以下错误:

/usr/bin/ld: cannot find -lgdbm_compat collect2: ld returned 1 exit status File "caml_startup", line 1, characters 0-1: Error: Error during linking make: * [native] Error 2 error during ocaml compilation -- the command was : make --makefile=Makefile -W Makefile -j 7 native -s

我使用的是 Debian 6.0.2。我按照上面链接的介绍教程中“2.1.2. Ubuntu Linux、Debian Linux”中的说明安装了 opa。

Lua 没有安装。但是,已安装 liblua5.1-0(如果相关的话)。

最佳答案

似乎我们有一个新的 Opa 依赖项:libgdbm-dev

尝试安装它;)

供您引用(来自 opa owasp 列表):

Concerning libgdbm-dev, it's a rather new dependency and we are not sure we want to keep it. At least we will make it an official dependency for future packages.

关于opa - 编译 opa 文件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7302213/

相关文章:

opa - 为什么 Opa 语言中需要 'do'?

opa - 将用户定义的类型添加到数组

html - 我可以在 Opa 中使用 XHTML 1.1 以外的东西吗?

ide - 用于 Opa 编程的 IDE 以及如何托管 Opa 代码?

opa - 不同的 OPA 应用程序可以共享数据库吗?

opa - 将 OPA 连接到现有关系数据库

database - 奥帕 : passing database as function parameters

javascript - 如何将 JavaScript 框架与 Opa 一起使用

opa - xhtml.of_string_unsafe 禁用 onclick

Opa:如何在不阻塞 UI 的情况下与数据库交互