tejashsoni111
tejashsoni111

Reputation: 1405

ejabberdctl start result in error for p1_yaml

I am trying to configure eJabberd on my server.

I finished the installation but when I am trying to start the ejabberd using

ejabberdctl start

Its showing following error in the log file

2015-11-17 03:28:29.928 [info] <0.7.0> Application asn1 started on node ejabberd@localhost
2015-11-17 03:28:29.928 [info] <0.7.0> Application public_key started on node ejabberd@localhost
2015-11-17 03:28:29.941 [info] <0.7.0> Application ssl started on node ejabberd@localhost
2015-11-17 03:28:29.945 [warning] <0.100.0> unable to load p1_yaml NIF: {error,{load_failed,"Failed to load NIF library /lib/p1_yaml/priv/lib/p1_yaml: 'libyaml-0.so.2: cannot open shared object file: No such file or directory'"}}
2015-11-17 03:28:29.945 [error] <0.99.0> CRASH REPORT Process <0.99.0> with 0 neighbours exited with reason: {{load_failed,"Failed to load NIF library /lib/p1_yaml/priv/lib/p1_yaml: 'libyaml-0.so.2: cannot open shared object file: No such file or directory'"},{p1_yaml_app,start,[normal,[]]}} in application_master:init/4 line 134
2015-11-17 03:28:29.945 [info] <0.7.0> Application p1_yaml exited with reason: {{load_failed,"Failed to load NIF library /lib/p1_yaml/priv/lib/p1_yaml: 'libyaml-0.so.2: cannot open shared object file: No such file or directory'"},{p1_yaml_app,start,[normal,[]]}}
2015-11-17 03:28:29.947 [critical] <0.38.0>@ejabberd:exit_or_halt:133 failed to start application 'p1_yaml': {error,
                                        {{load_failed,
                                          "Failed to load NIF library /lib/p1_yaml/priv/lib/p1_yaml: 'libyaml-0.so.2: cannot open shared object file: No such file or directory'"},
                                         {p1_yaml_app,start,[normal,[]]}}}

For reference, the p1_yaml files are located in following directories :

root@ip-XX-XX-XX-XX [/lib/p1_yaml/priv/lib]# locate libyaml-0.so
/root/tmp/downloads/yaml-0.1.5/src/.libs/libyaml-0.so.2
/root/tmp/downloads/yaml-0.1.5/src/.libs/libyaml-0.so.2.0.3
/usr/local/lib/libyaml-0.so.2
/usr/local/lib/libyaml-0.so.2.0.3

I am not able to trace the issue. Any kind of reference will be very helpful. Thanks in advance.

Upvotes: 3

Views: 364

Answers (1)

deimus
deimus

Reputation: 9865

Check if /usr/local/lib/ is listed in LD_LIBRARY_PATH if not add it into it, and restart ejabberd

$ export LD_LIBRARY_PATH=/usr/local/lib

Upvotes: 1

Related Questions