tag:help.masterpassword.app,2014-09-03:/help/discussions/problems/438-sodiumh-neededMaster Password: Discussion 2017-04-14T21:02:52Ztag:help.masterpassword.app,2014-09-03:Comment/423543102017-04-13T04:09:44Z2017-04-13T04:09:44Zsodium.h needed<div><p>Is the problem resolved by modifying <code>core/mpw-util.c</code> and changing</p>
<pre>
<code> #include "sodium.h"</code>
</pre>
<p>into</p>
<pre>
<code> #include <sodium.h></code>
</pre></div>Maarten Billemonttag:help.masterpassword.app,2014-09-03:Comment/423543102017-04-13T04:55:53Z2017-04-13T04:55:57Zsodium.h needed<div><p>I did sudo gedit on the file and saved it, but the same build-error occurs.</p></div>Sam Stag:help.masterpassword.app,2014-09-03:Comment/423543102017-04-13T22:11:46Z2017-04-13T22:11:51Zsodium.h needed<div><p>Was the sodium header file left out of the source package by accident?</p></div>Sam Stag:help.masterpassword.app,2014-09-03:Comment/423543102017-04-13T22:13:07Z2017-04-13T22:13:07Zsodium.h needed<div><p>No, it is part of libsodium. Do you have libsodium installed?</p></div>Maarten Billemonttag:help.masterpassword.app,2014-09-03:Comment/423543102017-04-14T06:36:32Z2017-04-14T06:36:37Zsodium.h needed<div><p>I don't have libsodium and just assumed that it was part of the "build". Found the problem?</p>
<p>I read that libssl-dev is a substitute for openssl-dev. ? Also, where do I get ncurses-dev?</p></div>Sam Stag:help.masterpassword.app,2014-09-03:Comment/423543102017-04-14T12:49:26Z2017-04-14T12:49:26Zsodium.h needed<div><p>It all depends on your operating system / distribution. These are questions for them, I can't really help with it.</p>
<p>It's slightly peculiar, because <code>./build</code> should have detected you don't have libsodium and downloaded & linked against Tarsnap's scrypt instead.</p>
<p>openssl is only required if you don't use libsodium ( see updated build instructions here: <a href="https://github.com/Lyndir/MasterPassword#native-cli">https://github.com/Lyndir/MasterPassword#native-cli</a> ).</p>
<p>Can you run this in your shell and give me the output?</p>
<pre>
<code>gcc -lsodium</code>
</pre></div>Maarten Billemonttag:help.masterpassword.app,2014-09-03:Comment/423543102017-04-14T20:56:26Z2017-04-14T20:56:27Zsodium.h needed<div><p>~ $ gcc -lsodium /usr/bin/ld: cannot find -lsodium</p>
<p>Mint 17.<br>
I don't see libsodium in the repository or Synaptic pkg manager.</p></div>Sam Stag:help.masterpassword.app,2014-09-03:Comment/423543102017-04-14T21:02:48Z2017-04-14T21:02:48Zsodium.h needed<div><p>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.</p>
<p>I still recommend you use libsodium, though.</p></div>Maarten Billemont