Git Product home page Git Product logo

Comments (10)

kkaefer avatar kkaefer commented on July 24, 2024

There's code for checking at https://github.com/developmentseed/node-sqlite3/blob/master/wscript#L16-17. Seems it doesn't work correctly.

from node-sqlite3.

springmeyer avatar springmeyer commented on July 24, 2024

I'll take a look at fixing this up as I did with node-blend recently.

from node-sqlite3.

angelochen960 avatar angelochen960 commented on July 24, 2024

got exactly same issue, any status update?

from node-sqlite3.

springmeyer avatar springmeyer commented on July 24, 2024

@angelochen960 - 2793ca0 I added the option --internal-sqlite so for now you could checkout from master and do:

./configure --internal-sqlite
make

from node-sqlite3.

angelochen960 avatar angelochen960 commented on July 24, 2024

this got installed, also the usual ./configure, problem is only npm install sqlite3.
trying to do a test after this, but got:
Error: Cannot find module 'sqlite3'

i use this:var sqlite3 = require('sqlite3').verbose();

from node-sqlite3.

springmeyer avatar springmeyer commented on July 24, 2024

to run the tests locally you need to either do:

make test

or manually put the lib/ directory on your node path like:

 export NODE_PATH=`pwd`/lib

from node-sqlite3.

angelochen960 avatar angelochen960 commented on July 24, 2024

i run a local test:
make test
node-waf build
Waf: Entering directory /root/node-sqlite3/build' make[1]: Entering directory/root/node-sqlite3/deps/sqlite-autoconf-3070701'
make[1]: Nothing to be done for all'. make[1]: Leaving directory/root/node-sqlite3/deps/sqlite-autoconf-3070701'
Waf: Leaving directory `/root/node-sqlite3/build'
'build' finished successfully (0.016s)
Creating test database... This may take several minutes.
/bin/sh: line 3: 31907 Killed node test/support/createdb.js
make: *** [db] Error 137

from node-sqlite3.

springmeyer avatar springmeyer commented on July 24, 2024

the "killed" must be happening because you are on some host that limits cpu or ram. Perhaps, just don't run the tests then, and get on with coding :)

from node-sqlite3.

angelochen960 avatar angelochen960 commented on July 24, 2024

you are right! it works. now, how to move node-sqlite3 into the global node-modules? or have to use NODE_PATH all the time?

from node-sqlite3.

springmeyer avatar springmeyer commented on July 24, 2024

this should be improved and resolved again with a7de57a - now internal is truly default and external uses new configure checking code. closing.

from node-sqlite3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.