Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
b9b49d48
Commit
b9b49d48
authored
Jul 09, 2015
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #473 from coolaj86/patch-2
correct instructions for building against sqlcipher
parents
1127c277
15ce4531
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletions
+24
-1
README.md
README.md
+24
-1
No files found.
README.md
View file @
b9b49d48
...
@@ -136,15 +136,38 @@ Visit the “[Using Node modules](https://github.com/rogerwang/node-webkit/wiki/
...
@@ -136,15 +136,38 @@ Visit the “[Using Node modules](https://github.com/rogerwang/node-webkit/wiki/
## Building for sqlcipher
## Building for sqlcipher
For instructions for building sqlcipher see
[
Building SQLCipher for node.js
](
https://coolaj86.com/articles/building-sqlcipher-for-node-js-on-raspberry-pi-2/
)
To run node-sqlite3 against sqlcipher you need to compile from source by passing build options like:
To run node-sqlite3 against sqlcipher you need to compile from source by passing build options like:
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=/usr/
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=/usr/
node -e 'require("sqlite3")'
If your sqlcipher is installed in a custom location (if you compiled and installed it yourself),
you'll also need to to set some environment variables:
### On OS X with Homebrew
If your sqlcipher is installed in a custom location, say if you installed it with homebrew on OS X you also need to do
:
Set the location where
`brew`
installed it
:
export LDFLAGS="-L`brew --prefix`/opt/sqlcipher/lib"
export LDFLAGS="-L`brew --prefix`/opt/sqlcipher/lib"
export CPPFLAGS="-I`brew --prefix`/opt/sqlcipher/include"
export CPPFLAGS="-I`brew --prefix`/opt/sqlcipher/include"
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix`
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix`
node -e 'require("sqlite3")'
### On most Linuxes (including Raspberry Pi)
Set the location where
`make`
installed it:
export LDFLAGS="-L/usr/local/lib"
export CPPFLAGS="-I/usr/local/include -I/usr/local/include/sqlcipher"
export CXXFLAGS="$CPPFLAGS"
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=/usr/local --verbose
node -e 'require("sqlite3")'
# Testing
# Testing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment