sodium.h needed
Building target: mpw...
core/mpw-util.c:33:20: fatal error: sodium.h: No such file or directory
#include "sodium.h"
^
compilation terminated.
How do I fix this?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Maarten Billemo... on 13 Apr, 2017 04:09 AM
Is the problem resolved by modifying
core/mpw-util.c
and changinginto
2 Posted by Sam S on 13 Apr, 2017 04:55 AM
I did sudo gedit on the file and saved it, but the same build-error occurs.
3 Posted by Sam S on 13 Apr, 2017 10:11 PM
Was the sodium header file left out of the source package by accident?
Support Staff 4 Posted by Maarten Billemo... on 13 Apr, 2017 10:13 PM
No, it is part of libsodium. Do you have libsodium installed?
5 Posted by Sam S on 14 Apr, 2017 06:36 AM
I don't have libsodium and just assumed that it was part of the "build". Found the problem?
I read that libssl-dev is a substitute for openssl-dev. ? Also, where do I get ncurses-dev?
Support Staff 6 Posted by Maarten Billemo... on 14 Apr, 2017 12:49 PM
It all depends on your operating system / distribution. These are questions for them, I can't really help with it.
It's slightly peculiar, because
./build
should have detected you don't have libsodium and downloaded & linked against Tarsnap's scrypt instead.openssl is only required if you don't use libsodium ( see updated build instructions here: https://github.com/Lyndir/MasterPassword#native-cli ).
Can you run this in your shell and give me the output?
7 Posted by Sam S on 14 Apr, 2017 08:56 PM
~ $ gcc -lsodium
/usr/bin/ld: cannot find -lsodium
Mint 17.
I don't see libsodium in the repository or Synaptic pkg manager.
Support Staff 8 Posted by Maarten Billemo... on 14 Apr, 2017 09:02 PM
OK. You can either pull the latest changes from the repo and try again or install libsodium with your distribution's package manager. If you don't install libsodium, the build process should download scrypt for you after pulling the latest changes.
I still recommend you use libsodium, though.