如何修改远程Erlang节点的代码搜索路径? [英] How do I modify the code search path for a remote Erlang node?

查看:147
本文介绍了如何修改远程Erlang节点的代码搜索路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已连接到具有 -remsh 的Erlang节点。

I'm connected to an Erlang node with -remsh. How do I modify the code path, in order to load a library that wasn't packaged into my release?

推荐答案

所有必要的内容函数来操作代码加载,路径...在代码模块中(参见文档 erlang otp代码模块)。

All necessary functions to manipulate code loading, path... are in the code module (see doc at erlang otp code module).

您可以通过执行以下操作将系统路径添加到列表中:

You could add the system paths to the list by doing the following:

[code:add_pathz(P) || P <- filelib:wildcard("/usr/lib/erlang/lib/*/ebin")].

这篇关于如何修改远程Erlang节点的代码搜索路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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