I have been having problems with the p1_rand module of lib p1_utils. Something with the UndefinedFunctionError error. It does not find the reference of this module.
Looking for the reason for the error, I find that in the compilation using the mix it seems that it does not download the latest version of the p1_utils repository where the p1_rand module is present.
So, I cloned the p1_utils repository, compile and copy the beam and erl file and to its respective directory in the ejabberd project.
But when I compile everything and try to run the container it gives the same error as always.
Here is the error:
** (Mix) Could not start application ejabberd: exited in: :ejabberd_app.start(:normal, [])
** (EXIT) an exception was raised:
** (UndefinedFunctionError) function :p1_rand.get_string/0 is undefined (module :p1_rand is not available)
:p1_rand.get_string()
(ejabberd) src/ejabberd_config.erl:79: :ejabberd_config.start/0
(ejabberd) src/ejabberd_app.erl:48: :ejabberd_app.start/2
(kernel) application_master.erl:273: :application_master.start_it_old/4
Hello,
I have been having problems with the p1_rand module of lib p1_utils. Something with the UndefinedFunctionError error. It does not find the reference of this module.
Looking for the reason for the error, I find that in the compilation using the mix it seems that it does not download the latest version of the p1_utils repository where the p1_rand module is present.
So, I cloned the p1_utils repository, compile and copy the beam and erl file and to its respective directory in the ejabberd project.
But when I compile everything and try to run the container it gives the same error as always.
Here is the error: