Giter Site home page Giter Site logo

Comments (10)

jeffhiltz avatar jeffhiltz commented on June 28, 2024

The drive I was using was mounted noexec... argh. Sorry if I wasted anyone's time.

from node-serialport.

dimitry avatar dimitry commented on June 28, 2024

I'm having the same issue on Mac OS 10.7.3. Node 0.6.11. Npm 1.1.1. Any ideas? Exact same npm install output. Builds successfully and I can see the serialport_native.node in the serialport directory.

from node-serialport.

jeffhiltz avatar jeffhiltz commented on June 28, 2024

Try creating a script in that directory and then running it to verify that you have run permissions there. That's the problem I was having.

from node-serialport.

dimitry avatar dimitry commented on June 28, 2024

Thanks for a quick response!

I created a quick one-line test file in 'node_modules/serialport'. Permissions seem to be fine.
var serialport_native = require('./serialport_native');

Same error. I'm running in 64-bit mode. Could that be the issue? Restarted Lion in 32-bit, rebuilt the package and same error.

from node-serialport.

dimitry avatar dimitry commented on June 28, 2024

Downgraded to 0.6.10 version of node (npm 1.1.0-3) and it all works smoothly again.

from node-serialport.

jeffhiltz avatar jeffhiltz commented on June 28, 2024

FYI, I just upgraded to node 0.6.11 (npm 1.1.1) and don't have any problems.

from node-serialport.

sbstjn avatar sbstjn commented on June 28, 2024

Same problem with node 6.11

11:06:54 > uname -a
Darwin Woodman.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
11:06:07 > node --version
v0.6.11
11:06:09 > npm --version
1.1.1
11:06:12 > npm install serialport@latest
npm http GET https://registry.npmjs.org/serialport
npm http 304 https://registry.npmjs.org/serialport

> [email protected] install /Users/sebastian/Dropbox/Coding/node_modules/serialport
> cd serialport_native;node-waf configure build;cp build/Release/serialport_native.node ../

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                   : ok /usr/local/lib/node 
Checking for node prefix                 : ok /usr/local 
'configure' finished successfully (0.114s)
Waf: Entering directory `/Users/sebastian/Dropbox/Coding/node_modules/serialport/serialport_native/build'
[1/2] cxx: serialport_native.cc -> build/Release/serialport_native_1.o
[2/2] cxx_link: build/Release/serialport_native_1.o -> build/Release/serialport_native.node
Waf: Leaving directory `/Users/sebastian/Dropbox/Coding/node_modules/serialport/serialport_native/build'
'build' finished successfully (0.535s)
[email protected] ./node_modules/serialport
11:06:22 > node
> var serialport = require("serialport");
Error: Unable to load shared library /Users/sebastian/Dropbox/Coding/node_modules/serialport/serialport_native.node
    at Object..node (module.js:472:11)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/Users/sebastian/Dropbox/Coding/node_modules/serialport/serialport.js:11:28)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)

Downgrading to node 0.6.10 worked fine for me. The issue should be reopened ;)

from node-serialport.

ghitchens avatar ghitchens commented on June 28, 2024

Agreed. Same issue here. Not a permissions problem, something is broken for node 0.6.11 under os/x (at least).

fresh:shack garth$ uname -a
Darwin fresh.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
fresh:shack garth$ node --version
v0.6.11
fresh:shack garth$ node

require('serialport')
Error: Unable to load shared library /Users/garth/code/shack/node_modules/serialport/serialport_native.node

from node-serialport.

peterc avatar peterc commented on June 28, 2024

I'm having the identical issue with node 0.6.11 under Snow Leopard but with the "midi" library (I found this open issue when Googling the same error ;-)). So it's probably not node-serialport specific.

from node-serialport.

TooTallNate avatar TooTallNate commented on June 28, 2024

It will be fixed in the 0.6.12 node .pkg installer by distributing a fat binary.

from node-serialport.

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.