Git Product home page Git Product logo

Comments (18)

mcavage avatar mcavage commented on May 1, 2024

Ha :)

I've been delaying putting it in npm, mostly because I personally have not yet battle-tested it - I'm in the middle of a fairly large project, but it's not up and running/live yet. I've been doing this in my package.json:

    "dependencies": {
        "log4js": "0.4.1",
        "restify": "https://github.com/mcavage/node-restify/tarball/master"
    },

You're the second or third person that's asked though (and I haven't really told anyone about it yet) - perhaps I should just publish it but leave the npm "latest" tag pointed at the 0.5 branch.

m

from node-restify.

dullgrin avatar dullgrin commented on May 1, 2024

UPDATE: one last attempt succeeded.

sudo npm install git://github.com/mcavage/node-restify.git

succeeded. DTrace might require sudo to install?

from node-restify.

dullgrin avatar dullgrin commented on May 1, 2024

Thanks for the update - especially when you're in the midst of other work!

I think I'll go back to version 0.5.6. FWIW I get the following after successfully getting 1.0.0 to install:

robt@tell-tale:~/c-leaves/actor$ node lib/actor
[Error: Cannot find module './DTraceProviderBindings']

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: options.handlers must be an Array of Functions
    at /home/robt/c-leaves/actor/node_modules/restify/lib/route.js:107:15
    at Array.forEach (native)
    at new Route (/home/robt/c-leaves/actor/node_modules/restify/lib/route.js:105:22)
    at Server._addRoute (/home/robt/c-leaves/actor/node_modules/restify/lib/server.js:366:15)
    at Server.get (/home/robt/c-leaves/actor/node_modules/restify/lib/server.js:297:17)
    at Object.<anonymous> (/home/robt/c-leaves/actor/lib/actor.js:85:9)
    at Module._compile (module.js:432:26)
    at Object..js (module.js:450:10)
    at Module.load (module.js:351:31)
    at Function._load (module.js:310:12)

Thanks for all your hard work on this - restify is a great project and MUCH appreciated.

from node-restify.

mcavage avatar mcavage commented on May 1, 2024

Hrm. Try doing this instead then:

git clone git://github.com/mcavage/node-restify.git
cd node-restify
npm install
npm ln

Then go to your other project, and try:

npm ln restify

If you're doing this for a new project, I'll get this out in npm, I think the 1.0 stuff is much better factoring (in particular, errors).

from node-restify.

dullgrin avatar dullgrin commented on May 1, 2024

Thanks again for the follow up. That installed v 1.0 and created the symlink. I still get the error:

[Error: Cannot find module './DTraceProviderBindings']

It looks like the dtrace-provider.js file in node-restify/node_modules/dtrace-provider dir is requiring a file that's not there?

I can work with 0.5.x no problem, but if there's anything I can do to help I'll be happy to do what I can....

from node-restify.

dullgrin avatar dullgrin commented on May 1, 2024

For what it's worth - this looks like an issue with dtrace-provider, not restify. I get the same error doing a vanilla install of just dtrace-provider. Just requiring dtrace-provider causes the error.

from node-restify.

mcavage avatar mcavage commented on May 1, 2024

Hmm - what OS and what version of node/dtrace-provider? I'm using it on mac and smartos (solaris derivative), and it passes tests in travis, which is linux-based, of some kind.

from node-restify.

dullgrin avatar dullgrin commented on May 1, 2024

I'm developing on Ubuntu 11.10. I wondered if it wasn't something about my environment. I'll poke around and see what I can find. Thanks again....

from node-restify.

mcavage avatar mcavage commented on May 1, 2024

Oh - are you using the node that ships with Ubuntu?

On Sun, Jan 15, 2012 at 6:22 PM, dullgrin
[email protected]
wrote:

I'm developing on Ubuntu 11.10. I wondered if it wasn't something about my environment. I'll poke around and see what I can find. Thanks again....


Reply to this email directly or view it on GitHub:
#55 (comment)

from node-restify.

dullgrin avatar dullgrin commented on May 1, 2024

I reinstalled node a month or so ago. I want to say I used apt-get but I'm not 100% sure of that. I updated since then to node v.0.6.7.

I see an entry on the dtrace-provider issues discussing ubuntu - looks like you were part of that discussion - and see that there's some issue with development headers in the node package. Although in my case, dtrace-provider installs fine - the node-waf configure and node-waf build both succeed. With one exception - during the configure the line 'checking for node path' results in not found. I don't know if that's related or not.

I may do an uninstall and reinstall of node just to see what happens. I'll take this over to the dtrace-provider issue board if that's a better place to dig deeper, but will try to keep this issue updated in case anyone else runs into the same problem.

from node-restify.

mcavage avatar mcavage commented on May 1, 2024

Yeah- I was going to say this came up before - I'd try just hand-building your own node installation and see if it makes this all go away (not discouraging you from going to the dtrace board)

from node-restify.

mcavage avatar mcavage commented on May 1, 2024

Hi - I published this as 1.0.0-1-rc (I'll keep it in the release candidate state for now).

from node-restify.

dullgrin avatar dullgrin commented on May 1, 2024

Cool. Thanks, mcavage...

from node-restify.

mypark avatar mypark commented on May 1, 2024

I think I'm still getting this issue when I try deploying to heroku using a node 0.6.10 build pack.

[Error: Cannot find module './DTraceProviderBindings']

from node-restify.

panosru avatar panosru commented on May 1, 2024

I get [Error: Cannot find module './DTraceProviderBindings'] too on OSX and on CentOS and on Debian with node v0.6.12 in all these OS

from node-restify.

zgohr avatar zgohr commented on May 1, 2024

Same in Linux Mint 12 with node v0.6.12.

from node-restify.

mcavage avatar mcavage commented on May 1, 2024

Ok - so the linux problems should be fixed by #100 (And npm 1.1.5).

With OSX - I was able to install it ok just now:

$ cd /tmp
bluesnoop:tmp mark$ npm install restify
npm http GET https://registry.npmjs.org/restify
npm http 200 https://registry.npmjs.org/restify
npm http GET https://registry.npmjs.org/async/0.1.18
npm http GET https://registry.npmjs.org/bunyan/0.6.8
npm http GET https://registry.npmjs.org/dtrace-provider/0.0.6
npm http GET https://registry.npmjs.org/lru-cache/1.0.5
npm http GET https://registry.npmjs.org/node-uuid/1.3.3
npm http GET https://registry.npmjs.org/retry/0.6.0
npm http GET https://registry.npmjs.org/formidable/1.0.9
npm http GET https://registry.npmjs.org/semver/1.0.13
npm http GET https://registry.npmjs.org/qs/0.4.2
npm http GET https://registry.npmjs.org/http-signature/0.9.8
npm http GET https://registry.npmjs.org/mime/1.2.5
npm http 304 https://registry.npmjs.org/async/0.1.18
npm http 304 https://registry.npmjs.org/lru-cache/1.0.5
npm http 304 https://registry.npmjs.org/dtrace-provider/0.0.6
npm http 304 https://registry.npmjs.org/bunyan/0.6.8
npm http 304 https://registry.npmjs.org/node-uuid/1.3.3
npm http 304 https://registry.npmjs.org/semver/1.0.13
npm http 200 https://registry.npmjs.org/retry/0.6.0
npm http GET https://registry.npmjs.org/retry/-/retry-0.6.0.tgz
npm http 304 https://registry.npmjs.org/http-signature/0.9.8
npm http 200 https://registry.npmjs.org/mime/1.2.5
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.5.tgz
npm http 200 https://registry.npmjs.org/qs/0.4.2
npm http GET https://registry.npmjs.org/qs/-/qs-0.4.2.tgz
npm http 200 https://registry.npmjs.org/formidable/1.0.9
npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.9.tgz
npm http 200 https://registry.npmjs.org/retry/-/retry-0.6.0.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.5.tgz
npm http 200 https://registry.npmjs.org/qs/-/qs-0.4.2.tgz
npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.9.tgz
npm http GET https://registry.npmjs.org/asn1/0.1.9
npm http GET https://registry.npmjs.org/sprintf/0.1.1
npm http GET https://registry.npmjs.org/ctype/0.3.1

> [email protected] install /private/tmp/node_modules/restify/node_modules/dtrace-provider
> node-waf configure build

npm http 304 https://registry.npmjs.org/sprintf/0.1.1
npm http 304 https://registry.npmjs.org/asn1/0.1.9
npm http 304 https://registry.npmjs.org/ctype/0.3.1
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                   : not found 
Checking for node prefix                 : ok /Users/mark/.nvm/v0.6.10 
'configure' finished successfully (0.387s)
Waf: Entering directory `/private/tmp/node_modules/restify/node_modules/dtrace-provider/build'
[1/4] cxx: dtrace_provider.cc -> build/Release/dtrace_provider_1.o
[2/4] cxx: dtrace_dof.cc -> build/Release/dtrace_dof_1.o
[3/4] cxx: darwin-x86_64/dtrace_probe.cc -> build/Release/darwin-x86_64/dtrace_probe_1.o
[4/4] cxx_link: build/Release/dtrace_provider_1.o build/Release/dtrace_dof_1.o build/Release/darwin-x86_64/dtrace_probe_1.o -> build/Release/DTraceProviderBindings.node
Waf: Leaving directory `/private/tmp/node_modules/restify/node_modules/dtrace-provider/build'
'build' finished successfully (1.662s)
[email protected] ./node_modules/restify 
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected] [email protected] [email protected])
└── [email protected]
bluesnoop:tmp mark$ cat foo.js
 var restify = require('restify');

 restify.createServer().listen(8080);
bluesnoop:tmp mark$ node foo.js
--> OK

Can you provide more details?

from node-restify.

panosru avatar panosru commented on May 1, 2024

I'm still getting the same error...

root@dev:/home/panosru/domains/example.com/public_html# npm install restify
npm http GET https://registry.npmjs.org/restify
npm http 200 https://registry.npmjs.org/restify
npm http GET https://registry.npmjs.org/dtrace-provider/0.0.6
npm http GET https://registry.npmjs.org/http-signature/0.9.9
npm http GET https://registry.npmjs.org/lru-cache/1.0.5
npm http GET https://registry.npmjs.org/mime/1.2.5
npm http GET https://registry.npmjs.org/node-uuid/1.3.3
npm http GET https://registry.npmjs.org/qs/0.4.2
npm http GET https://registry.npmjs.org/retry/0.6.0
npm http GET https://registry.npmjs.org/semver/1.0.13
npm http GET https://registry.npmjs.org/bunyan/0.6.8
npm http GET https://registry.npmjs.org/byline/2.0.2
npm http 304 https://registry.npmjs.org/http-signature/0.9.9
npm http 304 https://registry.npmjs.org/node-uuid/1.3.3
npm http 304 https://registry.npmjs.org/dtrace-provider/0.0.6
npm http 304 https://registry.npmjs.org/mime/1.2.5
npm http 304 https://registry.npmjs.org/lru-cache/1.0.5
npm http 304 https://registry.npmjs.org/qs/0.4.2
npm http 304 https://registry.npmjs.org/retry/0.6.0
npm http 304 https://registry.npmjs.org/bunyan/0.6.8
npm http 304 https://registry.npmjs.org/semver/1.0.13
npm http 304 https://registry.npmjs.org/byline/2.0.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.0

> [email protected] install /home/panosru/domains/example.com/public_html/node_modules/restify/node_modules/dtrace-provider
> node-waf configure build

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                   : not found 
Checking for node prefix                 : ok /usr/local 
'configure' finished successfully (0.037s)
Waf: Entering directory `/home/panosru/domains/example.com/public_html/node_modules/restify/node_modules/dtrace-provider/build'
Waf: Leaving directory `/home/panosru/domains/example.com/public_html/node_modules/restify/node_modules/dtrace-provider/build'
'build' finished successfully (0.018s)
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/ctype/0.5.0
[email protected] ./node_modules/restify
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected])

Node/NPM version:

# node -v
v0.6.15

# npm -v
1.1.18

I'm on Debian 6 64bit

# uname -a
Linux dev.panosru.com 2.6.32-5-amd64 #1 SMP Mon Jan 9 20:49:59 UTC 2012 x86_64 GNU/Linux

Thanks :)

PS I also tried to install it like you proposed

git clone git://github.com/mcavage/node-restify.git
cd node-restify
npm install
npm ln

but I got the same error, when I try to run the app...

$ NODE_ENV=development node api.js 
[Error: Cannot find module './DTraceProviderBindings']
API Server listening on port 3003

from node-restify.

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.