A
A
Alexey Sundukov2019-11-21 22:51:33
Erlang
Alexey Sundukov, 2019-11-21 22:51:33

How to connect a module to the erlang console?

I compiled a module for erlang from the sources and I want to execute it as described in the documentation, but for some reason it does not work:

[email protected]:~/projects$ git clone [email protected]:saleyn/erlexec.git
Клонирование в «erlexec»…
remote: Enumerating objects: 27, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 1471 (delta 12), reused 21 (delta 8), pack-reused 1444
Получение объектов: 100% (1471/1471), 703.40 KiB | 1.11 MiB/s, готово.
Определение изменений: 100% (939/939), готово.
Проверка соединения… готово.
[email protected]:~/projects$ cd erlexec/
[email protected]:~/projects/erlexec$ make
===> Fetching pc v1.10.0
===> Version cached at /home/alekciy/.cache/rebar3/hex/hexpm/packages/pc-1.10.0.tar is up to date, reusing it
===> Compiling pc
===> Verifying dependencies...
===> Compiling erlexec
===> Compiling /home/alekciy/projects/erlexec/c_src/ei++.cpp
===> Compiling /home/alekciy/projects/erlexec/c_src/exec.cpp
===> Compiling /home/alekciy/projects/erlexec/c_src/exec_impl.cpp
===> Linking /home/alekciy/projects/erlexec/priv/x86_64-pc-linux-gnu/exec-port
[email protected]:~/projects/erlexec$ erl
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]

Eshell V7.3  (abort with ^G)
1> exec:start([]).
** exception error: undefined function exec:start/1
2>

I suspect that I am not doing some simple standard action that is not described in the module documentation https://saleyn.github.io/erlexec/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TriKrista, 2019-11-22
@alekciy

alternatively, before entering the console, go to the ebin folder or set the path when entering the console: erl -pa ebin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question