Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: undefined symbol: ev_default_loop_ptr #102

Open
szagi3891 opened this issue Apr 8, 2013 · 5 comments
Open

Error: undefined symbol: ev_default_loop_ptr #102

szagi3891 opened this issue Apr 8, 2013 · 5 comments

Comments

@szagi3891
Copy link

When you start getting an error:

grzegorz@debian:~/Pulpit/fiszki_node$ node test-db.js

module.js:356
Module._extensions[extension](this, filename);
^
Error: /home/grzegorz/node_modules/db-mysql/build/Release/mysql_bindings.node: undefined symbol: ev_default_loop_ptr
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/grzegorz/node_modules/db-mysql/db-mysql.js:18:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

File content "test-db.js" :

var mysql = require('db-mysql');
console.log('test');

grzegorz@debian:~/Pulpit/fiszki_node$ node -v
v0.10.0

System version (debian)
grzegorz@debian:~/Pulpit/fiszki_node$ uname -a
Linux debian 2.6.32-5-686 #1 SMP Mon Feb 25 01:04:36 UTC 2013 i686 GNU/Linux

@ellisium
Copy link

Same error on ubuntu and node.js 0.10.4

@mscdex
Copy link

mscdex commented Apr 23, 2013

This module hasn't been updated to use libuv. It is still using libev/libeio directly, which were deprecated in node v0.8.x and now removed in node v0.10.x.

@ellisium
Copy link

Downgrade to node 0.8 and it works. Module will be updated?

@joycerw
Copy link

joycerw commented May 2, 2013

I had the same error after upgrading to node v0.10 from v0.8. Resolved the error by doing the following:

  1. upgrade to node v0.10.
  2. Do an 'nvm update' to update all installed node modules
  3. At this point i was getting some 'module mismatch' errors. Had to do 'npm install' on some of my modules. I believe this reinstalls the modules and their dependendencies.
  4. To fix db-mysql module, i then followed the instructions from issue Failure to Install on ArchLinux #98. Make sure you download the latest from the git repository. Doing 'npm install db-mysql' at this point will not pull the latest. After you download the latest source and make the change to package.json as described in Failure to Install on ArchLinux #98, do an npm install from your LOCAL package that you just modified.

@ellisium
Copy link

ellisium commented Jul 9, 2013

THX @joycerw
it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants