Erlang 如何向CouchDB添加插件
我需要安装插件到CouchDB。问题是,我在服务器上唯一可以访问的文件夹是用户主目录。 设置ERL_LIBS env变量后,我可以从ERL控制台调用插件模块,但CouchDB返回“{”error:“unknown_error”,“reason:“undef”}”Erlang 如何向CouchDB添加插件,erlang,couchdb,otp,erl,Erlang,Couchdb,Otp,Erl,我需要安装插件到CouchDB。问题是,我在服务器上唯一可以访问的文件夹是用户主目录。 设置ERL_LIBS env变量后,我可以从ERL控制台调用插件模块,但CouchDB返回“{”error:“unknown_error”,“reason:“undef”}” 在CouchDB start上包含外部库的正确方法是什么?我设法使用CouchDB shell添加了一个erlang模块。以下是我所做的: 我在交互模式下启动了couchdbsudo couchdb-I 用code:add_patha(
在CouchDB start上包含外部库的正确方法是什么?我设法使用CouchDB shell添加了一个erlang模块。以下是我所做的:
sudo couchdb-I
code:add_patha(“/home/akshat/Desktop”)将路径添加到列表的开头。
code:get\u path()测试路径列表。
c(“/home/akshat/Desktop/test”)编译模块。
代码加载模块:加载文件(测试)。
test:test()
-module(test).
-export([test/0]).
test()->
hello.
我认为您所做的工作的问题可能是您没有使用couchdb shell添加模块