Skip to content

Conversation

@rastkojokic
Copy link

Switching from xml to fast_xml...

About 20 days ago ejabberd switched from xml to fast_xml. Using mode_interact with newest ejabberd version will cause it to fail during runtime.

@navjeetc
Copy link

This really helped me to get the module working with ejabberd 16.x. Thanks

@rastkojokic
Copy link
Author

Glad it helped!

@srijan02420
Copy link

Hey,

@rastkojokic @navjeetc can you please help me I am not able run build.sh correctly for 16.02.

for following build.sh
erl -pa . -pz ebin -make

it gives following error

Recompile: src/mod_offline_post
src/mod_offline_post.erl: undefined parse transform 'lager_transform'

and for following build.sh

#!/bin/bash

# change with the erlc path of your current ejabberd installation
: ${EJBR_PATH:='/home/ubuntu/ejabberd-16.02'}
: ${EJBR_VERSION:='16.02'}

$EJBR_PATH/bin/erlc -DLAGER -DNO_EXT_LIB -I $EJBR_PATH/lib/ejabberd-$EJBR_VERSION/include/ -o ebin/ src/mod_offline_post.erl

its giving this error:

/home/ubuntu/ejabberd-16.02/lib/ejabberd-16.02/include/jlib.hrl:23: can't find include file "fxml.hrl"
/home/ubuntu/ejabberd-16.02/lib/ejabberd-16.02/include/jlib.hrl:430: record xmlel undefined
/home/ubuntu/ejabberd-16.02/lib/ejabberd-16.02/include/jlib.hrl:470: type xmlel() undefined

Please help.

@navjeetc
Copy link

The way I did was to get ejabberd source code from
https://github.com/processone/ejabberd.

Cloned https://github.com/adamvduke/mod_interact/ into a new folder

Copied erlang files from mod_interact/src folder to src folder under
ejabberd source code
and then ran

./configure, make and make install

This will compile the erlang files and add the binaries to ejabberd
installation.

After that updated ejabberd.yml based on instructions in
mod_interact/readme and you should be good to go.

Hope this helps.

-Navjeet

Navjeet

On Tue, Mar 29, 2016 at 11:12 AM, Srijan Gupta notifications@github.com
wrote:

Hey,

@rastkojokic https://github.com/rastkojokic @navjeetc
https://github.com/navjeetc can you please help me I am not able run
build.sh correctly for 16.02.

for following build.sh
erl -pa . -pz ebin -make

it gives following error

Recompile: src/mod_offline_post
src/mod_offline_post.erl: undefined parse transform 'lager_transform'

and for following build.sh

#!/bin/bash

change with the erlc path of your current ejabberd installation

: ${EJBR_PATH:='/home/ubuntu/ejabberd-16.02'}
: ${EJBR_VERSION:='16.02'}

$EJBR_PATH/bin/erlc -DLAGER -DNO_EXT_LIB -I $EJBR_PATH/lib/ejabberd-$EJBR_VERSION/include/ -o ebin/ src/mod_offline_post.erl

its giving this error:

/home/ubuntu/ejabberd-16.02/lib/ejabberd-16.02/include/jlib.hrl:23: can't find include file "fxml.hrl"
/home/ubuntu/ejabberd-16.02/lib/ejabberd-16.02/include/jlib.hrl:430: record xmlel undefined
/home/ubuntu/ejabberd-16.02/lib/ejabberd-16.02/include/jlib.hrl:470: type xmlel() undefined

Please help.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#13 (comment)

@rastkojokic
Copy link
Author

@srijan02420 I did the exact same actions as @navjeetc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants