Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Argon2 Library on Mint 18 (Based on Xenial) #1472

Closed
njfox opened this issue Feb 10, 2018 · 5 comments
Closed

Missing Argon2 Library on Mint 18 (Based on Xenial) #1472

njfox opened this issue Feb 10, 2018 · 5 comments
Assignees

Comments

@njfox
Copy link
Contributor

njfox commented Feb 10, 2018

I've been unable to build the develop branch from source on my Mint 18.2 machine for awhile now as there is no argon2 package available, even in the custom APT repo for some reason:

$ cat /etc/apt/sources.list.d/phoerious-keepassxc-xenial.list 
deb http://ppa.launchpad.net/phoerious/keepassxc/ubuntu xenial main
deb-src http://ppa.launchpad.net/phoerious/keepassxc/ubuntu xenial main

$ sudo apt-get install libargon2-0-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libargon2-0-dev
$ sudo apt-get install argon2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package argon2

Here is the error from cmake:

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find Argon2 (missing: ARGON2_LIBRARIES ARGON2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindArgon2.cmake:34 (find_package_handle_standard_args)
  CMakeLists.txt:296 (find_package)


-- Configuring incomplete, errors occurred!

I've also made sure to update the package list with sudo apt-get update. Is there anything I'm missing here?

@seatedscribe
Copy link
Contributor

seatedscribe commented Feb 11, 2018

I had the same problem, see #1417. Unfortunately that issue has not been reopened, thoug.
I installed argon2 directly from github. Remeber to delete CMake cache.
@phoerious can you please update the wiki with my considerations made there (and a step on deleting cache as well)? It seems nevertheless that somehow the custom PPA failed to provide argon2 package. (see e.g. #1401). Should we investigate? I am available for testing out.

@phoerious
Copy link
Member

The PPA only provides argon2 for Trusty. I'll upload a version for Xenial as soon as we get the beta out.

@phoerious phoerious self-assigned this Feb 11, 2018
@phoerious
Copy link
Member

PPA now provides argon2 for Xenial.

@njfox
Copy link
Contributor Author

njfox commented Feb 27, 2018

I've installed the argon2 package from the PPA on Xenial but I'm getting the following CMake error:

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find Argon2 (missing: ARGON2_LIBRARIES ARGON2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindArgon2.cmake:34 (find_package_handle_standard_args)
  CMakeLists.txt:323 (find_package)


-- Configuring incomplete, errors occurred!

Do I need to set environment variables pointing to the library or pass extra CMake options to build this?

@arichiardi
Copy link

I found that you need to pass the paths to cmake by -D. Not env vars. Afk now so I don't have an example, hopefully is clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants