Skip to content

Commit 1bb9b41

Browse files
committed
Document --with-erlang, add section "Erlang Local Install"
1 parent 9d9c975 commit 1bb9b41

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

content/admin/install/source.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ Options details:
8686

8787
- **`--prefix=/`**: Specify the path prefix where the files will be copied when running the `make install` command.
8888

89+
- **`--with-erlang=/`**: Specify the directory where [Erlang/OTP is installed](#erlang-local-install).
90+
8991
- **`--with-min-erlang=9.0.5`**: Allow to compile ejabberd with Erlang/OTP 20.0,
9092
bypassing the verification of lower supported version.
9193
Use only if you know what you are doing.
@@ -374,6 +376,32 @@ system is set in `rel/vm.args`, apps in `rel/sys.config`
374376
system is set in `rel/vm.args.eex` and `rel/env.sh.eex`, apps in `config/runtime.exs`
375377

376378

379+
### Erlang Local Install
380+
381+
If you compile Erlang/OTP from source code and install in a local folder,
382+
for example in `$HOME/erl27` like this:
383+
384+
```bash
385+
cd otp_src
386+
./configure --prefix=$HOME/erl-local
387+
make
388+
make install
389+
```
390+
391+
then those are the steps to compile ejabberd:
392+
393+
```bash
394+
cd ejabberd-master
395+
export PATH=$HOME/erl-local/bin/:$PATH
396+
./autogen.sh
397+
./configure --with-erlang=$HOME/erl-local --with-rebar=./rebar3
398+
make
399+
```
400+
401+
Also notice that Erlang and ejabberd can be used only from that system account,
402+
see section [asdf](#asdf) for details.
403+
404+
377405
### macOS
378406

379407
If compiling from sources on Mac OS X, you must configure ejabberd to use custom OpenSSL, Yaml, iconv.

0 commit comments

Comments
 (0)