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

can't find sodium.h on Ubuntu (not in vagrant) #95

Closed
alltom opened this issue Oct 22, 2014 · 5 comments
Closed

can't find sodium.h on Ubuntu (not in vagrant) #95

alltom opened this issue Oct 22, 2014 · 5 comments

Comments

@alltom
Copy link

alltom commented Oct 22, 2014

I tried installing Inbox on terminal.com, but the setup script failed. Here's a snapshot (which includes scroll-back, so you can see the script output): https://www.terminal.com/tiny/V6yKVSNCVM

What I did was:

  1. Go to Terminal.com and launch an Ubuntu 14 instance
  2. Install git, then clone the inbox repo.
  3. sudo ./setup.sh (you're root, but the script looks for $SUDO_USER

The python bin/create-db step fails trying to build something that requires sodium.h.

AFAIK, Terminal.com isn't one of your supported hosts, but since commits like 69685d6 claim to deal with this issue, I thought you might like to know.

@grinich
Copy link
Contributor

grinich commented Oct 22, 2014

@dlitz do you know about this?

@dlitz
Copy link
Contributor

dlitz commented Oct 22, 2014

This seems to be a manifestation of pyca/pynacl#79

On a recent Debian-based system, a workaround is to install the libsodium-dev package if it's available. If not, you can build and install libsodium manually.

I'll update setup.sh to do this automatically in the vagrant VM.

@dlitz dlitz closed this as completed in b0c925a Oct 22, 2014
@dlitz
Copy link
Contributor

dlitz commented Oct 22, 2014

@alltom I didn't test this with Terminal.com, but I believe that my latest change to setup.sh should fix this. The issue was closed automatically, but feel free to reopen this issue if it doesn't solve the problem.

Cheers!
Dwayne

@alltom
Copy link
Author

alltom commented Oct 22, 2014

That did fix it. Thank you!

dlitz added a commit that referenced this issue Nov 4, 2014
Summary:
Workaround for the "error: sodium.h: No such file or directory" bug in
pynacl and/or cffi: pyca/pynacl#79

Fixes #95

Test Plan: `vagrant up --provision` from scratch

Reviewers: charles

Reviewed By: charles

Subscribers: mg

Differential Revision: https://review.inboxapp.com/D635
@vinceasurion
Copy link

This seems to be a manifestation of pyca/pynacl#79

On a recent Debian-based system, a workaround is to install the libsodium-dev package if it's available. If not, you can build and install libsodium manually.

I'll update setup.sh to do this automatically in the vagrant VM.

Thanks Solved my problem!

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

No branches or pull requests

4 participants