Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Still does not compile #18

Open
marcelodiegues opened this issue Jun 19, 2019 · 1 comment
Open

Still does not compile #18

marcelodiegues opened this issue Jun 19, 2019 · 1 comment

Comments

@marcelodiegues
Copy link

marcelodiegues commented Jun 19, 2019

I'm trying to add paseto library in my elixir application. In the doc they say to install libsodium on my macOS, but when I start my app server this error come up.

cc -o priv/salty_nif.so src/salty_nif.c -I/usr/local/Cellar/erlang/21.3.7/lib/erlang/usr/include -O2 -Wall -Wextra -I/usr/local/include/sodium -L/usr/local/Cellar/erlang/21.3.7/lib/erlang/usr/lib -fPIC -shared -lsodium -lei -lerl_interface -L/usr/local/lib -Wl,-rpath /usr/local/lib -flat_namespace -undefined suppress src/salty_nif.c:19:10: fatal error: 'sodium.h' file not found #include "sodium.h"

@marcelodiegues
Copy link
Author

marcelodiegues commented Jun 19, 2019

I figured out what's happening. The libsalty is trying to find sodium.h inside of usr/local/include/sodium, but in the new versions, sodium.h came outside this folder. I copied the file to inside the folder and change the include's path.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant