Git Product home page Git Product logo

Comments (11)

kkaefer avatar kkaefer commented on July 24, 2024

What version of the sqlite3 library do you have installed? If in doubt, you should update yours to a more recent 3.7.x version.

from node-sqlite3.

djroshi avatar djroshi commented on July 24, 2024

I was running 3.5.x (from an apt-get install sqlite3). I installed the latest version of sqlite3 from source, which now throws runtime errors when I attempt to start the program. However, node-sqlite3 installs fine now so we'll see how that goes...

Thanks for your help, much appreciated.

from node-sqlite3.

ile avatar ile commented on July 24, 2024

I have SQLite version 3.7.4 and I'm getting also this:

# npm install sqlite3
> [email protected] preinstall /root/node_modules/sqlite3
> node-waf clean || true; node-waf configure build

Nothing to clean (project not configured)
Setting srcdir to                        : /root/node_modules/sqlite3
Setting blddir to                        : /root/node_modules/sqlite3/build
Checking for program g++ or c++          : /usr/bin/g++
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for g++                         : ok
Checking for node path                   : not found
Checking for node prefix                 : ok /usr/local
Checking for program pkg-config          : not found
Checking for library sqlite3             : not found
/root/node_modules/sqlite3/wscript:21: error: the configuration failed (see '/root/node_modules/sqlite3/build/config.log')
npm ERR! error installing [email protected] Error: [email protected] preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing [email protected] `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing [email protected]     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected]     at ChildProcess.emit (events.js:67:17)
npm ERR! error installing [email protected]     at ChildProcess.onexit (child_process.js:192:12)
npm ERR! [email protected] preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf clean || true; node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.38-8-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "sqlite3"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/src/chamber/npm-debug.log
npm not ok

from node-sqlite3.

ile avatar ile commented on July 24, 2024

Trying to build, but I get this:


Checking for sqlite3
pkg-config --errors-to-stdout --print-errors --libs --cflags sqlite3
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
not found

I do have these installed:

i   sqlite3                                                        - A command line interface for SQLite 3
i   libsqlite3-0                                                   - SQLite 3 shared library

Also, I don't seem to have sqlite3.pc file anywhere (Ubuntu 11.04).

Thanks.

from node-sqlite3.

ile avatar ile commented on July 24, 2024

Never mind, I didn't have libsqlite3-dev installed. Sorry about this.

from node-sqlite3.

ile avatar ile commented on July 24, 2024

Although, maybe, if that package could be checked on the installation phase, those who don't read instructions could get around it :)

from node-sqlite3.

djroshi avatar djroshi commented on July 24, 2024

I have resolved runtime errors by downgrading to sqlite 3.7.3 and node-sqlite3 is now working as expected. Thanks again for the support.

from node-sqlite3.

kkaefer avatar kkaefer commented on July 24, 2024

@djroshi, what version were you using before?

from node-sqlite3.

djroshi avatar djroshi commented on July 24, 2024

Version 3.5.9-6. All working now, running 3.7.3-1.

from node-sqlite3.

kkaefer avatar kkaefer commented on July 24, 2024

Ah sorry, I only tested it with 3.6+. I'll add a version information to the README.

from node-sqlite3.

 avatar commented on July 24, 2024

That was surprisingly challenging.

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.