KonnexionsGmbH / shared_resources

Repository with Shared Content.
Other
0 stars 0 forks source link

dderl fails to compile #3

Open KarlKeiser opened 4 years ago

KarlKeiser commented 4 years ago

When I try to compile a freshly cloned dderl with DEBUG=1 rebar3 as ui compile I get the following error:

===> sh(c++ "/projects/dderl/_build/default/lib/erlscrypt/c_src/scrypt_nif.o" "/projects/dderl/_build/default/lib/erlscrypt/c_src/scrypt.o" "/projects/dderl/_build/default/lib/erlscrypt/c_src/sha256.o" $LDFLAGS -shared  -L"/usr/lib/erlang/lib/erl_interface-4.0/lib" -lerl_interface -lei -o "/projects/dderl/_build/default/lib/erlscrypt/priv/scrypt_nif.so")
failed with return code 1 and the following output:
/usr/bin/ld: cannot find -lerl_interface
collect2: error: ld returned 1 exit status

The erl_interface library is not in the provided library path:

root@5ae33e5878c2:/projects/dderl# ls /usr/lib/erlang/lib/erl_interface-4.0/lib
libei.a  libei_st.a

dderl works fine in version 1.1.0.

KarlKeiser commented 4 years ago

I get the error by running the following lines on my machine (Ubuntu in VM)

docker run -it -p 8443:8443 --name my_kxn_dev -v /c/Users/KarlKeiser/Desktop/projects:/projects konnexionsgmbh/kxn_dev:latest
cd projects
rm -rf dderl
git clone https://github.com/konnexionsgmbh/dderl
cd dderl
DEBUG=1 rebar3 as ui compile