Installing mod_push in processOne ejabberd server

I am trying to install mod_push module into ejabberd(ProcessOne) server. But i got the following compilation errors:

/Users/.ejabberd-modules/sources/mod_push/ebin/mochijson2.bea#: error writing file: no such file or directory
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:183: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:267: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:284: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:298: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:432: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:525: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:537: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:574: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:630: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:645: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:674: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:731: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:780: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:824: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:878: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:898: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:922: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:941: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1007: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1032: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1055: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1156: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1171: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1210: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1248: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1276: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1303: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1514: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1572: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1642: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1711: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1796: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1879: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1901: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1973: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2042: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2125: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2148: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2170: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2177: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2222: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2232: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2246: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2256: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2269: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2348: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2364: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2376: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2384: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2394: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2414: syntax error before: '/'
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:31: Warning: undefined callback function depends/2 (behaviour 'gen_mod')
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:145: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:160: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:163: Warning: type auth_data() is unused
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:171: Warning: type push_backend() is unused
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:172: Warning: type push_registration() is unused
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:246: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:657: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:811: Warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
/Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1221: Warning: variable 'PubsubHost' is unused
/Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_apns.bea#: error writing file: no such file or directory
/Users/.ejabberd-modules/sources/mod_push/src/mod_push_apns.erl:251: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
/Users/.ejabberd-modules/sources/mod_push/src/mod_push_apns.erl:368: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
/Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_gcm.bea#: error writing file: no such file or directory
/Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_mozilla.bea#: error writing file: no such file or directory
/Users/.ejabberd-modules/sources/mod_push/src/mod_push_mozilla.erl:74: Warning: variable 'DisableArgs' is unused
/Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_ubuntu.bea#: error writing file: no such file or directory
/Users/.ejabberd-modules/sources/mod_push/src/mod_push_ubuntu.erl:74: Warning: variable 'DisableArgs' is unused
/Users/.ejabberd-modules/sources/mod_push/src/mod_push_ubuntu.erl:139: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
/Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_wns.bea#: error writing file: no such file or directory
/Users/.ejabberd-modules/sources/mod_push/src/mod_push_wns.erl:84: Warning: variable 'DisableArgs' is unused
/Users/.ejabberd-modules/sources/mod_push/src/mod_push_wns.erl:160: Warning: variable 'ReplyHead' is unused
/Users/.ejabberd-modules/sources/mod_push/ebin/node_push.bea#: error writing file: no such file or directory
Error: {compilation_failed,"/Users/.ejabberd-modules/sources/mod_push/src/mochijson2.erl"}

What i have followed is below:

git clone https://github.com/royneary/mod_push.git

//copy the source code folder to the module sources folder of your ejabberd

//installation (may be different on your machine)

sudo cp -R mod_push /var/spool/jabber/.ejabberd-modules/sources/

//if done right ejabberdctl will list mod_push as available module

ejabberdctl modules_available

//automatically compile and install mod_push

ejabberdctl module_install mod_push

Can any one please specify how to install mod_push. If ProcessOne ejabberd doesn't support this feature, then specify any good alternative to this.

Syndicate content