jlib 14.07 generate can't find include lib "p1_xml/include/xml.hrl"

I have follow https://www.process-one.net/en/wiki/ejabberd_HTTP_request_handlers/ to create example, I have installed Ejabberd 14.07 on mac os. I have compile this program by using

erlc -I /Applications/ejabberd-14.07/lib/ejabberd-14.07/include -pz /Applications/ejabberd-14.07/lib/ejabberd-14.07/ebin mod_http_hello.erl

But when I compile I have found below Error Message.

Applications/ejabberd-14.07/lib/ejabberd-14.07/include/jlib.hrl:22: can't find include lib "p1_xml/include/xml.hrl"
/Applications/ejabberd-14.07/lib/ejabberd-14.07/include/jlib.hrl:426: record xmlel undefined
/Applications/ejabberd-14.07/lib/ejabberd-14.07/include/jlib.hrl:466: type xmlel() undefined

I have Searched but didn't find any solution, If you any idea how to solve this error then guide me.

from 15.03, in order to fix

from 15.03, in order to fix this you must add an argument to erlc: -DNO_EXT_LIB

Syndicate content