Skip to content

Loading…

Can not run app with db-mysql installed #87

Open
tsouza opened this Issue · 2 comments

2 participants

@tsouza

Hi,

After following installation procedure I can not start nodejs. It dies with the following message:

node: /usr/local/include/node/node_object_wrap.h:71: void node::ObjectWrap::Wrap(v8::Handle<v8::Object>): Assertion `handle->InternalFieldCount() > 0' failed.

ubuntu: 12.04
nodejs: 0.8.11
db-mysql: 0.7.6

@teragoon

me too!!

{
 node: '0.8.14',
  v8: '3.11.10.25',
  npm: '1.1.65' }

db-mysql@0.7.6 install /home/haraka/MySQL-Driver-ORM-Tests/node_modules/db-mysql
node-waf configure 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 /root/local
Checking for program mysql_config : /usr/local/bin/mysql_config
Checking for library mysqlclient_r : yes
'configure' finished successfully (0.478s)
Waf: Entering directory /home/haraka/MySQL-Driver-ORM-Tests/node_modules/db-mysql/build'
[ 1/12] cxx: lib/node-db/binding.cc -> build/Release/lib/node-db/binding_1.o
[ 2/12] cxx: lib/node-db/connection.cc -> build/Release/lib/node-db/connection_1.o
[ 3/12] cxx: lib/node-db/events.cc -> build/Release/lib/node-db/events_1.o
[ 4/12] cxx: lib/node-db/exception.cc -> build/Release/lib/node-db/exception_1.o
[ 5/12] cxx: lib/node-db/query.cc -> build/Release/lib/node-db/query_1.o
[ 6/12] cxx: lib/node-db/result.cc -> build/Release/lib/node-db/result_1.o
[ 7/12] cxx: src/connection.cc -> build/Release/src/connection_1.o
[ 8/12] cxx: src/mysql.cc -> build/Release/src/mysql_1.o
[ 9/12] cxx: src/query.cc -> build/Release/src/query_1.o
[10/12] cxx: src/result.cc -> build/Release/src/result_1.o
[11/12] cxx: src/mysql_bindings.cc -> build/Release/src/mysql_bindings_1.o
[12/12] cxx_link: build/Release/lib/node-db/binding_1.o build/Release/lib/node-db/connection_1.o build/Release/lib/node-db/events_1.o build/Release/lib/node-db/exception_1.o build/Release/lib/node-db/query_1.o build/Release/lib/node-db/result_1.o build/Release/src/connection_1.o build/Release/src/mysql_1.o build/Release/src/query_1.o build/Release/src/result_1.o build/Release/src/mysql_bindings_1.o -> build/Release/mysql_bindings.node
Waf: Leaving directory
/home/haraka/MySQL-Driver-ORM-Tests/node_modules/db-mysql/build'
'build' finished successfully (4.564s)

@teragoon

sorry in my case It was my fault

var mysql = require('db-mysql');
var connection = mysql.Database({          // change to -> var connection = new mysql.Database({
    host : 'localhost',
    user : 'root',
    database: 'webmail'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.