Phoenix 集成 ejabberd
文章目录
mix.exs 添加依赖
{:ejabberd, "~> 20.4"}配置 ejabberd application

config/config.exs
config :ejabberd,
file: "config/ejabberd.yml",
log_path: 'logs/ejabberd.log'
config :mnesia,
dir: 'mnesiadb/'
下载官方示例配置文件到 config/ejabberd.yml
https://github.com/processone...
编译
mix.deps get
mix compileopenssl 问题
===> /Users/lidashuang/Github/ejabberd/deps/fast_tls/c_src/fast_tls.c:21:10: fatal error: 'openssl/err.h' file not foundopenssl https://github.com/processone...
设置环境变量
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CFLAGS="-I/usr/local/opt/openssl/include/"
export CPPFLAGS="-I/usr/local/opt/openssl/include/"
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论