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

code assumes sqlcipher is already install on Linux platforms? #2

Open
michael-ts opened this issue Apr 13, 2017 · 6 comments
Open

code assumes sqlcipher is already install on Linux platforms? #2

michael-ts opened this issue Apr 13, 2017 · 6 comments

Comments

@michael-ts
Copy link

I'm trying to install this on a Linux based device and keep getting various errors.

First, it was complaining about sqlite3.h not being found, so I found a recent copy I had lying around and copied it to /usr/include. Then it complained about -lsqlcipher being found.

I looked at the postinstall script, and it appears that for darwin it uses brew to install sqlcipher, but for Linux it just blindly assumes it is there.

@fritx
Copy link
Owner

fritx commented Apr 14, 2017

@michael-ts yeah, to be honest, I didn't even try Linux.

Any pull request is welcome. I'm not sure what should the commands be like:

sudo apt-get install sqlite3
sudo apt-get install libsqlite3-dev

@fritx
Copy link
Owner

fritx commented Apr 14, 2017

Maybe I should add a "WIP" or "EXPERIMENTAL" tag to this project.

Thanks everyone who gives it a try ;)

I'm not familiar with C/Linux stuff, but I would try my best to help anyone who is in trouble like I did.

@michael-ts
Copy link
Author

michael-ts commented Aug 5, 2017

Meh. I just discovered that it isn't properly installing sqlcipher on my Mac either. I hadn't had time to track down some issues I was having, and it turns out installing unix-sqlcipher (via cross-sqlcipher) via npm has no sqlcipher support.

Uninstalled and re-installed, saw this message:

Error: No such keg: /usr/local/Cellar/sqlcipher
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.

@fritx
Copy link
Owner

fritx commented Aug 6, 2017

@michael-ts see Homebrew/brew#364
It seems you need to upgrade your homebrew to 1.x?

@michael-ts
Copy link
Author

Looks like even if sqlcipher is installed it still may not worked because postinstall.js is assuming stuff is in /usr/local, but under Ubuntu if I apt-get install sqlcipher libsqlcipher-dev it's installing in /usr.

@fritx
Copy link
Owner

fritx commented Jul 21, 2018

@michael-ts I'm not familiar haha but it was copied from here:
https://github.com/mapbox/node-sqlite3#on-most-linuxes-including-raspberry-pi

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

2 participants