Ejabberd: SQLite3 library >= 3.6.19 was not found when installed Ejabberd on Mac OS X Catalina

Created on 22 Jul 2020  路  2Comments  路  Source: processone/ejabberd

Environment

  • ejabberd version: Not Installed
  • Erlang version: Erlang/OTP 23 [erts-11.0.2]
  • OS: Mac OS Catalina (10.15.3)
  • Installed from: source (Github with make)

Errors from error.log/crash.log

No errors

Bug description

While attempting to install ejabberd, the following error comes after executing: ./configure --prefix=$HOME/my-ejabberd --enable-sqlite

checking for SQLite3 library >= 3.6.19... yes
cat: /include/sqlite3.h: No such file or directory
./configure: line 4172: test: !=: unary operator expected
configure: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!
configure: error: SQLite3 library >= 3.6.19 was not found

I have sqlite installed via brew. The latest version via brew is 3.23.xx. The latest version on sqlite shows that the latest version is 3.23.xx. Is the error message referring to another aspect of sqlite3 that we have to install?

Thanks a lot for your time!

P.S. I ran brew install erlang elixir openssl expat libyaml libiconv libgd sqlite rebar rebar3 automake autoconf with success (no hiccups).

Most helpful comment

Use this to configure and find sqlite installed with brew:

./configure --prefix=$HOME/my-ejabberd --enable-sqlite --with-sqlite3=/usr/local/opt/sqlite

All 2 comments

Isn't there an ejabberd homebrew recipe that you can use instead?

Use this to configure and find sqlite installed with brew:

./configure --prefix=$HOME/my-ejabberd --enable-sqlite --with-sqlite3=/usr/local/opt/sqlite

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jjdp picture jjdp  路  3Comments

pacija picture pacija  路  4Comments

Vshnv picture Vshnv  路  4Comments

ForGuru picture ForGuru  路  4Comments

haegar picture haegar  路  4Comments