[erlang-questions] undefined function lib_chan:start/0

Harit Himanshu harit.subscriptions@REDACTED
Sat Jan 24 17:32:53 CET 2015


Thanks Jesper, yes you are right, the module is not there

On Sat, Jan 24, 2015 at 8:08 AM, Jesper Louis Andersen <
jesper.louis.andersen@REDACTED> wrote:

>
> On Sat, Jan 24, 2015 at 3:44 PM, Harit Himanshu <
> harit.subscriptions@REDACTED> wrote:
>
>> What is going wrong here?
>
>
> Good tools for debugging these kinds of things:
>
> The 'undefined function' errors occurs even in the case where there is no
> such module loaded. So first, you should make sure there is such a module,
> by using, for instance, the m/0 command of the shell. An alternative is to
> ask the code loader for the location of the module, `code:which(lib_chan)`.
>
> If the module is loaded, you can ask for its info, by executing
>
> m(lib_chan).
>
> which can be used to verify there is a function named `start` of arity 0.
>
> In this case, my hunch would be that the module is not loaded, probably
> due to a loader path which is not set. And since it is nowhere to be found,
> the system will not allow you to call a function in a module which is not
> even accessible to the system.
>
>
> --
> J.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150124/f3d49c51/attachment.htm>


More information about the erlang-questions mailing list