Skip to content

Instantly share code, notes, and snippets.

@jankolkmeier
Created February 2, 2011 18:51
Show Gist options
  • Save jankolkmeier/808162 to your computer and use it in GitHub Desktop.
Save jankolkmeier/808162 to your computer and use it in GitHub Desktop.
pksqlite install fails on cygwin
$npm install supermarket
npm info it worked if it ends with ok
npm info using npm@0.2.17
npm info using node@v0.2.6
npm info range pksqlite@>=0.0.3
npm info preinstall pksqlite@0.0.4
npm info preinstall supermarket@1.1.1
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 library sqlite3 : not found
'configure' finished successfully (0.985s)
Waf: Entering directory `/usr/local/lib/node/.npm/pksqlite/0.0.4/package/build'
make: Nothing to be done for `all'.
[1/4] cxx: src/sqlite3_bindings.cc -> build/default/src/sqlite3_bindings_1.o
[2/4] cxx: src/database.cc -> build/default/src/database_1.o
[3/4] cxx: src/statement.cc -> build/default/src/statement_1.o
In file included from ../src/sqlite3_bindings.cc:22:
../src/database.h:24:21: sqlite3.h: No such file or directory
In file included from ../src/sqlite3_bindings.cc:22:
../src/database.h:65: error: ISO C++ forbids declaration of `sqlite3' with no type
../src/database.h:65: error: expected `;' before '*' token
../src/database.h:67: error: expected `;' before "protected"
../src/database.h:69: error: ISO C++ forbids declaration of `sqlite3' with no type
../src/database.h:69: error: expected `;' before '*' token
../src/database.h: In constructor `Database::Database()':
../src/database.h:35: error: class `Database' does not have any field named `db_'
../src/database.h: In destructor `virtual Database::~Database()':
../src/database.h:38: error: `db_' undeclared (first use this function)
../src/database.h:38: error: (Each undeclared identifier is reported only once for each function it appears in.)
../src/database.h: At global scope:
../src/database.h:93: error: ISO C++ forbids declaration of `sqlite3_stmt' with no type
../src/database.h:93: error: expected `;' before '*' token
../src/database.h:95: error: `sqlite3_int64' does not name a type
In file included from ../src/database.cc:23:
../src/database.h:24:21: sqlite3.h: No such file or directory
In file included from ../src/database.cc:23:
../src/database.h:65: error: ISO C++ forbids declaration of `sqlite3' with no type
../src/database.h:65: error: expected `;' before '*' token
../src/database.h:67: error: expected `;' before "protected"
../src/database.h:69: error: ISO C++ forbids declaration of `sqlite3' with no type
../src/database.h:69: error: expected `;' before '*' token
../src/database.h: In constructor `Database::Database()':
../src/database.h:35: error: class `Database' does not have any field named `db_'
../src/database.h: In destructor `virtual Database::~Database()':
../src/database.h:38: error: `db_' undeclared (first use this function)
../src/database.h:38: error: (Each undeclared identifier is reported only once for each function it appears in.)
../src/database.h: At global scope:
../src/database.h:93: error: ISO C++ forbids declaration of `sqlite3_stmt' with no type
../src/database.h:93: error: expected `;' before '*' token
../src/database.h:95: error: `sqlite3_int64' does not name a type
In file included from ../src/database.cc:24:
../src/statement.h:61: error: expected `)' before '*' token
../src/statement.h:109: error: ISO C++ forbids declaration of `sqlite3_stmt' with no type
../src/statement.h:109: error: expected `;' before '*' token
../src/statement.h: In destructor `virtual Statement::~Statement()':
../src/statement.h:68: error: `stmt_' undeclared (first use this function)
../src/statement.h:68: error: `sqlite3_finalize' undeclared (first use this function)
../src/database.cc: In static member function `static int Database::EIO_Open(eio_req*)':
../src/database.cc:94: error: `sqlite3' undeclared (first use this function)
../src/database.cc:94: error: `dbptr' undeclared (first use this function)
../src/database.cc:94: error: 'class Database' has no member named 'GetDBPtr'
../src/database.cc:98: error: `SQLITE_OPEN_READWRITE' undeclared (first use this function)
../src/database.cc:99: error: `SQLITE_OPEN_CREATE' undeclared (first use this function)
../src/database.cc:100: error: `SQLITE_OPEN_FULLMUTEX' undeclared (first use this function)
../src/database.cc:100: error: `sqlite3_open_v2' undeclared (first use this function)
In file included from ../src/statement.cc:23:
../src/database.h:24:21: sqlite3.h: No such file or directory
In file included from ../src/statement.cc:23:
../src/database.h:65: error: ISO C++ forbids declaration of `sqlite3' with no type
../src/database.h:65: error: expected `;' before '*' token
../src/database.h:67: error: expected `;' before "protected"
../src/database.h:69: error: ISO C++ forbids declaration of `sqlite3' with no type
../src/database.h:69: error: expected `;' before '*' token
../src/database.h: In constructor `Database::Database()':
../src/database.h:35: error: class `Database' does not have any field named `db_'
../src/database.h: In destructor `virtual Database::~Database()':
../src/database.h:38: error: `db_' undeclared (first use this function)
../src/database.h:38: error: (Each undeclared identifier is reported only once for each function it appears in.)
../src/database.h: At global scope:
../src/database.h:93: error: ISO C++ forbids declaration of `sqlite3_stmt' with no type
../src/database.h:93: error: expected `;' before '*' token
../src/database.h:95: error: `sqlite3_int64' does not name a type
../src/database.cc: In static member function `static int Database::EIO_Close(eio_req*)':
../src/database.cc:174: error: 'class Database' has no member named 'db_'
../src/database.cc:174: error: `sqlite3_close' undeclared (first use this function)
../src/database.cc:175: error: 'class Database' has no member named 'db_'
../src/database.cc: In static member function `static int Database::EIO_AfterPrepareAndStep(eio_req*)':
../src/database.cc:241: error: `SQLITE_OK' undeclared (first use this function)
../src/database.cc:243: error: 'class Database' has no member named 'db_'
../src/database.cc:243: error: `sqlite3_errmsg' undeclared (first use this function)
../src/database.cc:248: error: `SQLITE_DONE' undeclared (first use this function)
../src/database.cc:257: error: 'struct prepare_request' has no member named 'lastInsertId'
../src/database.cc:272: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc: In static member function `static int Database::EIO_PrepareAndStep(eio_req*)':
../src/database.cc:305: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc:307: error: `sqlite3' undeclared (first use this function)
../src/database.cc:307: error: `db' undeclared (first use this function)
../src/database.cc:307: error: 'class Database' has no member named 'db_'
../src/database.cc:310: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc:310: error: `sqlite3_prepare_v2' undeclared (first use this function)
../src/database.cc:319: error: `SQLITE_OK' undeclared (first use this function)
../src/database.cc:319: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc:319: error: `sqlite3_bind_parameter_count' undeclared (first use this function)
../src/database.cc:320: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc:320: error: `sqlite3_step' undeclared (first use this function)
../src/database.cc:324: error: `SQLITE_DONE' undeclared (first use this function)
../src/database.cc:325: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc:325: error: `sqlite3_finalize' undeclared (first use this function)
../src/database.cc:326: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc:331: error: 'struct prepare_request' has no member named 'lastInsertId'
../src/database.cc:336: error: 'struct prepare_request' has no member named 'lastInsertId'
../src/database.cc:336: error: `sqlite3_last_insert_rowid' undeclared (first use this function)
../src/database.cc:338: error: `sqlite3_changes' undeclared (first use this function)
In file included from ../src/statement.cc:24:
../src/statement.h:61: error: expected `)' before '*' token
../src/database.cc: In static member function `static int Database::EIO_AfterPrepare(eio_req*)':
../src/database.cc:383: error: `SQLITE_OK' undeclared (first use this function)
../src/statement.h:109: error: ISO C++ forbids declaration of `sqlite3_stmt' with no type
../src/statement.h:109: error: expected `;' before '*' token
../src/database.cc:385: error: 'class Database' has no member named 'db_'
../src/database.cc:385: error: `sqlite3_errmsg' undeclared (first use this function)
../src/database.cc:389: error: 'struct prepare_request' has no member named 'stmt'
../src/statement.h: In destructor `virtual Statement::~Statement()':
../src/statement.h:68: error: `stmt_' undeclared (first use this function)
../src/statement.h:68: error: `sqlite3_finalize' undeclared (first use this function)
../src/database.cc: In static member function `static int Database::EIO_Prepare(eio_req*)':
../src/database.cc:421: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc:423: error: `sqlite3' undeclared (first use this function)
../src/database.cc:423: error: `db' undeclared (first use this function)
../src/database.cc:423: error: 'class Database' has no member named 'db_'
../src/database.cc:426: error: 'struct prepare_request' has no member named 'stmt'
../src/database.cc:426: error: `sqlite3_prepare_v2' undeclared (first use this function)
../src/database.cc:430: error: 'struct prepare_request' has no member named 'lastInsertId'
../src/database.cc:435: error: 'struct prepare_request' has no member named 'lastInsertId'
../src/database.cc:435: error: `sqlite3_last_insert_rowid' undeclared (first use this function)
../src/database.cc:437: error: `sqlite3_changes' undeclared (first use this function)
../src/statement.cc: In static member function `static v8::Handle<v8::Value> Statement::New(const v8::Arguments&)':
../src/statement.cc:59: error: `sqlite3_stmt' undeclared (first use this function)
../src/statement.cc:59: error: expected primary-expression before ')' token
../src/statement.cc: In static member function `static int Statement::EIO_BindArray(eio_req*)':
../src/statement.cc:124: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:125: error: `sqlite3_bind_parameter_index' undeclared (first use this function)
../src/statement.cc:134: error: `SQLITE_MISMATCH' undeclared (first use this function)
../src/statement.cc:141: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:141: error: `sqlite3_bind_int' undeclared (first use this function)
../src/statement.cc:144: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:144: error: `sqlite3_bind_double' undeclared (first use this function)
../src/statement.cc:147: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:148: error: `SQLITE_TRANSIENT' undeclared (first use this function)
../src/statement.cc:148: error: `sqlite3_bind_text' undeclared (first use this function)
../src/statement.cc:151: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:151: error: `sqlite3_bind_null' undeclared (first use this function)
../src/statement.cc: In static member function `static int Statement::EIO_Finalize(eio_req*)':
../src/statement.cc:435: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:436: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:436: error: `sqlite3_finalize' undeclared (first use this function)
../src/statement.cc:437: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc: In static member function `static v8::Handle<v8::Value> Statement::ClearBindings(const v8::Arguments&)':
../src/statement.cc:465: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:465: error: `sqlite3_clear_bindings' undeclared (first use this function)
../src/statement.cc:465: error: `SQLITE_OK' undeclared (first use this function)
../src/statement.cc:465: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:465: error: `sqlite3_db_handle' undeclared (first use this function)
../src/statement.cc:465: error: `sqlite3_errmsg' undeclared (first use this function)
../src/statement.cc: In static member function `static v8::Handle<v8::Value> Statement::Reset(const v8::Arguments&)':
../src/statement.cc:473: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:473: error: `sqlite3_reset' undeclared (first use this function)
../src/statement.cc:473: error: `SQLITE_OK' undeclared (first use this function)
../src/statement.cc:473: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:473: error: `sqlite3_db_handle' undeclared (first use this function)
../src/statement.cc:473: error: `sqlite3_errmsg' undeclared (first use this function)
../src/statement.cc: In static member function `static int Statement::EIO_AfterStep(eio_req*)':
../src/statement.cc:484: error: `sqlite3' undeclared (first use this function)
../src/statement.cc:484: error: `db' undeclared (first use this function)
../src/statement.cc:484: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:484: error: `sqlite3_db_handle' undeclared (first use this function)
../src/statement.cc:489: error: `sqlite3_errmsg' undeclared (first use this function)
../src/statement.cc:495: error: `SQLITE_DONE' undeclared (first use this function)
../src/statement.cc:506: error: `SQLITE_INTEGER' undeclared (first use this function)
../src/statement.cc:512: error: `SQLITE_FLOAT' undeclared (first use this function)
../src/statement.cc:518: error: `SQLITE_TEXT' undeclared (first use this function)
../src/statement.cc:528: error: `SQLITE_NULL' undeclared (first use this function)
../src/statement.cc:542: error: `sqlite3_last_insert_rowid' undeclared (first use this function)
../src/statement.cc:547: error: `sqlite3_changes' undeclared (first use this function)
../src/statement.cc: In member function `void Statement::InitializeColumns()':
../src/statement.cc:575: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:575: error: `sqlite3_column_count' undeclared (first use this function)
../src/statement.cc:580: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:580: error: `sqlite3_column_name' undeclared (first use this function)
../src/statement.cc: In static member function `static int Statement::EIO_Step(eio_req*)':
../src/statement.cc:586: error: `sqlite3_stmt' undeclared (first use this function)
../src/statement.cc:586: error: `stmt' undeclared (first use this function)
../src/statement.cc:586: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:600: error: `sqlite3_step' undeclared (first use this function)
../src/statement.cc:605: error: `SQLITE_ROW' undeclared (first use this function)
../src/statement.cc:622: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:622: error: `sqlite3_column_type' undeclared (first use this function)
../src/statement.cc:626: error: `SQLITE_INTEGER' undeclared (first use this function)
../src/statement.cc:628: error: `sqlite3_column_int' undeclared (first use this function)
../src/statement.cc:631: error: `SQLITE_FLOAT' undeclared (first use this function)
../src/statement.cc:633: error: `sqlite3_column_double' undeclared (first use this function)
../src/statement.cc:636: error: `SQLITE_TEXT' undeclared (first use this function)
../src/statement.cc:637: error: `sqlite3_column_text' undeclared (first use this function)
../src/statement.cc:638: error: `sqlite3_column_bytes' undeclared (first use this function)
../src/statement.cc:647: error: `SQLITE_NULL' undeclared (first use this function)
../src/statement.cc:666: error: `SQLITE_DONE' undeclared (first use this function)
../src/statement.cc: In static member function `static int Statement::EIO_AfterFetchAll(eio_req*)':
../src/statement.cc:727: error: `SQLITE_NULL' undeclared (first use this function)
../src/statement.cc:733: error: `SQLITE_INTEGER' undeclared (first use this function)
../src/statement.cc:738: error: `SQLITE_FLOAT' undeclared (first use this function)
../src/statement.cc:743: error: `SQLITE_TEXT' undeclared (first use this function)
../src/statement.cc: In static member function `static int Statement::EIO_FetchAll(eio_req*)':
../src/statement.cc:816: error: `sqlite3_stmt' undeclared (first use this function)
../src/statement.cc:816: error: `stmt' undeclared (first use this function)
../src/statement.cc:816: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:838: error: `sqlite3_step' undeclared (first use this function)
../src/statement.cc:840: error: `SQLITE_DONE' undeclared (first use this function)
../src/statement.cc:871: error: 'class Statement' has no member named 'stmt_'
../src/statement.cc:871: error: `sqlite3_column_type' undeclared (first use this function)
../src/statement.cc:875: error: `SQLITE_INTEGER' undeclared (first use this function)
../src/statement.cc:879: error: `sqlite3_column_int' undeclared (first use this function)
../src/statement.cc:882: error: `SQLITE_FLOAT' undeclared (first use this function)
../src/statement.cc:886: error: `sqlite3_column_double' undeclared (first use this function)
../src/statement.cc:889: error: `SQLITE_TEXT' undeclared (first use this function)
../src/statement.cc:890: error: `sqlite3_column_text' undeclared (first use this function)
../src/statement.cc:891: error: `sqlite3_column_bytes' undeclared (first use this function)
../src/statement.cc:902: error: `SQLITE_NULL' undeclared (first use this function)
Waf: Leaving directory `/usr/local/lib/node/.npm/pksqlite/0.0.4/package/build'
Build failed:
-> task failed (err #1):
{task: cxx sqlite3_bindings.cc -> sqlite3_bindings_1.o}
-> task failed (err #1):
{task: cxx database.cc -> database_1.o}
-> task failed (err #1):
{task: cxx statement.cc -> statement_1.o}
npm info pksqlite@0.0.4 Failed to exec preinstall script
npm ERR! install failed Error: pksqlite@0.0.4 preinstall: `node-waf configure build`
npm ERR! install failed `sh` failed with 1
npm ERR! install failed at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.17/package/lib/utils/exec.js:25:18)
npm ERR! install failed at ChildProcess.emit (events:34:17)
npm ERR! install failed at ChildProcess.onexit (child_process:168:12)
npm ERR! install failed at node.js:773:9
npm info install failed rollback
npm info uninstall [ 'supermarket@1.1.1'
npm info uninstall , 'pksqlite@0.0.4'
npm info uninstall ]
npm info preuninstall supermarket@1.1.1
npm info preuninstall pksqlite@0.0.4
npm info uninstall supermarket@1.1.1
npm info uninstall pksqlite@0.0.4
npm info auto-deactive not symlink
npm info auto-deactive not symlink
npm info postuninstall supermarket@1.1.1
npm info postuninstall pksqlite@0.0.4
npm info uninstall supermarket@1.1.1 complete
npm info uninstall pksqlite@0.0.4 complete
npm info install failed rolled back
npm ERR! Error: pksqlite@0.0.4 preinstall: `node-waf configure build`
npm ERR! `sh` failed with 1
npm ERR! at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.17/package/lib/utils/exec.js:25:18)
npm ERR! at ChildProcess.emit (events:34:17)
npm ERR! at ChildProcess.onexit (child_process:168:12)
npm ERR! at node.js:773:9
npm ERR!
npm ERR! Failed at the pksqlite@0.0.4 preinstall script.
npm ERR! This is most likely a problem with the pksqlite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls pksqlite
npm ERR! There may be additional logging output above.
npm not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment