edollar-project / edollar

BSD 3-Clause "New" or "Revised" License
11 stars 7 forks source link

Information: Solving Build Issues under Ubuntu #4

Open the-real-tokai opened 6 years ago

the-real-tokai commented 6 years ago

I ran into an issue where the edollard failed to link with various "undefined references" (sodium_init, pgm_error_free, pgm_getsockopt, randombytes_close, etc.) under Ubuntu 17. I think those were introduced indirectly by libzmq.

This issues can be solved by installing libsodium and libpgm developer files:

$ sudo apt-get install libsodium-dev
$ sudo apt-get install libpgm-dev

Probably the build scripts should check if those libraries are available, and if not warn before running into a build failure later. Also the table in "README.md" could/should contain this information.

Just sharing here as info in case someone else runs into the issue. 😄

ArqTras commented 6 years ago

Confirmed it resolve problem with compilation