Git Product home page Git Product logo

Comments (10)

jfd avatar jfd commented on August 18, 2024

I should add that Im using node v0.5.4

from node-fibers.

laverdet avatar laverdet commented on August 18, 2024

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.

jfd avatar jfd commented on August 18, 2024

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.

laverdet avatar laverdet commented on August 18, 2024

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.

jfd avatar jfd commented on August 18, 2024

Thanks for looking into it. I can live with 0.5.3 for a while longer.

from node-fibers.

laverdet avatar laverdet commented on August 18, 2024

Closed by c877c39. Just working around this because there's radio silence on the joyent side.

from node-fibers.

olegp avatar olegp commented on August 18, 2024

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.

laverdet avatar laverdet commented on August 18, 2024

Oh yeah sorry about that. Published!

from node-fibers.

unclechu avatar unclechu commented on August 18, 2024

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.

olegp avatar olegp commented on August 18, 2024

@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)

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.