Comments (10)
The drive I was using was mounted noexec... argh. Sorry if I wasted anyone's time.
from node-serialport.
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.
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.
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.
Downgraded to 0.6.10 version of node (npm 1.1.0-3) and it all works smoothly again.
from node-serialport.
FYI, I just upgraded to node 0.6.11 (npm 1.1.1) and don't have any problems.
from node-serialport.
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.
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.
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.
It will be fixed in the 0.6.12
node .pkg installer by distributing a fat binary.
from node-serialport.
Related Issues (20)
- Cannot find module 'serialport' on build with cordova-electron
- Build Error on Different Platforms (serialport & electron) HOT 1
- NodeGyp Issue on OSX HOT 2
- Invalid serial number in PortInfos (windows) HOT 2
- Provide a "back door" to mock port bindings so we can emulate serial devices HOT 1
- Resource temporarily unavailable Cannot lock port HOT 16
- Connection Port Problem
- Cannot work in a worker thread... please save me HOT 2
- SerialPort has no construct signatures. HOT 1
- Latency Issue on an ARM Embedded System
- Abnormal reading of serial port data
- ESP8266 Initial Connection Issue: Reset Required for Message Sending
- Typescript error with module esnext and moduleResolution bundler. HOT 1
- After packing with electron, the running program reported an error that the module could not be found HOT 2
- Hanging promise after close() in flowing mode HOT 1
- Operation not supported, cannot set
- How to write the return promise from the read register in the serial server HOT 1
- RTS flag on Darwin (MacOS)
- serialport/bindings-cpp/unixRead read error [Error: EAGAIN: resource temporarily unavailable, read] HOT 1
- How to fix Replacement Character �
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-serialport.