Comments (10)
I should add that Im using node v0.5.4
from node-fibers.
Is there anything odd about your node installation? Did you install node by something other than ./configure; make; make install
?
What does: node --vars
give you?
from node-fibers.
I installed node from the v0.5.4 tag: ./configure && make && make install
. Strange thing though, node --vars
returns nothing..
I tried to downgrade to v0.5.2, same install procedure, and node --vars
returns:
NODE_PREFIX: /usr/local
NODE_CFLAGS: -rdynamic -pthread -arch x86_64 -g -O3 -DHAVE_OPENSSL=1 -DHAVE_MONOTONIC_CLOCK=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_FDATASYNC=0 -DARCH="x64" -DPLATFORM="darwin" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -I/usr/local/include/node
Fibers builds and install without any problem, almost. The future.js
fails, without further info. I can use fibers without in my app without errors.
from node-fibers.
Ah I see, yes node --vars
is broken in 0.5.4. I opened an issue for this here: nodejs/node-v0.x-archive#1536
In the mean time try using 0.5.3 or 0.5.2. Sorry about that. Alternatively if you want to use the latest node version you can install fibers from source with some modifications to the build:
diff --git a/src/platform.mk b/src/platform.mk
index b53d31f..08db4ac 100644
--- a/src/platform.mk
+++ b/src/platform.mk
@@ -1,6 +1,6 @@
# I know nothing about scons, waf, or autoconf. Sorry.
-NODE_PREFIX := $(shell node --vars | egrep ^NODE_PREFIX: | cut -c14-)
-NODE_PLATFORM := $(shell node --vars | egrep -o 'DPLATFORM="[^"]+' | cut -c12-)
+NODE_PREFIX := /usr/local
+NODE_PLATFORM := linux
NODE_BITS := $(shell file --dereference `which node` | egrep -o '[0-9]{2}-bit' | cut -c-2)
CPPFLAGS = -Wall -Wno-deprecated-declarations -I$(NODE_PREFIX)/include -I$(NODE_PREFIX)/include/node
from node-fibers.
Thanks for looking into it. I can live with 0.5.3 for a while longer.
from node-fibers.
Closed by c877c39. Just working around this because there's radio silence on the joyent side.
from node-fibers.
Any chance you could publish 0.6.1 to npm? This issue means that the currently published version can't be used with the latest version of node.
from node-fibers.
Oh yeah sorry about that. Published!
from node-fibers.
Don't install node as "sudo apt-get install nodejs" in ubuntu linux to walk out this problem.
I had this problem: "fatal error: node/node.h: No such file or directory".
I solve it as: 0. sudo apt-get remove nodejs; 1. download last version on node on nodejs.org site ("wget http://nodejs.org/dist/v0.6.9/node-v0.6.9.tar.gz" + "tar -zxvf node-v0.6.9.tar.gz" + "cd node-v.0.6.9"); 2. ./configure & make & sudo make install 3. profit ("make" on node-fibers)
P.S. I didn't use "npm".
from node-fibers.
@unclechu this is a different issue you're talking about it. I ran into this as well. The workaround for me was:
ln -s /usr/include/nodejs /usr/include/node
from node-fibers.
Related Issues (20)
- Binary is not included when installing fibers on Ubuntu 18.04 with Node 15 HOT 1
- ES6 Module support
- NPM install error for fibers HOT 1
- npm install fibers with error(node v12.15.0) HOT 8
- A Big Thank You HOT 3
- Debian9: Assertion `thread_id_key != 0x7777' failed HOT 2
- C++ compile errors trying to install fibers @3.1.1 HOT 4
- node process blocks if you use fiber in proces.once('exit', ...) callback
- not support python3?
- what to do it does not work on node 16 but I really need this package for the code to work HOT 1
- Latest version 5.0.2 is not tagged. HOT 4
- New NPM version released HOT 1
- latest version 5.0.2 won't install HOT 2
- Maintenance
- Whether the node version v16.x.x is supported HOT 1
- Fails to build on debian testing (required for rocket.chat 😕 ) HOT 4
- node: ../src/coroutine.cc:134: void* find_thread_id_key(void*): Assertion `thread_id_key != 0x7777' failed. Aborted (core dumped)
- When i start my back-end app then saw this error recently
- Node 20.6.1 support HOT 1
- Cannot find module win32-x64-108\fibers
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-fibers.