Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep' #32

Closed
ngzhongcai-zz opened this issue May 29, 2013 · 11 comments

Comments

@ngzhongcai-zz
Copy link

Hi guys,

Not sure if it's alright to post this here.

I deployed node-xmpp. No error messages during installation. But when I tried running a script, it prompted me to go install StringPrep.

Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'

As prompted, I npm install node-stringprep, and I got the following errors.

[root@ip-10-128-45-253 examples]# npm install node-stringprep
npm WARN package.json faye-websocket@0.6.0 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm http GET https://registry.npmjs.org/node-stringprep
npm http 304 https://registry.npmjs.org/node-stringprep

node-stringprep@0.1.5 install /home/ec2-user/www/node_modules/node-xmpp/node_modules/node-stringprep
node-gyp rebuild

make: Entering directory /home/ec2-user/www/node_modules/node-xmpp/node_modules/node-stringprep/build' CXX(target) Release/obj.target/node-stringprep/node-stringprep.o ../node-stringprep.cc:3:28: fatal error: unicode/unistr.h: No such file or directory compilation terminated. make: *** [Release/obj.target/node-stringprep/node-stringprep.o] Error 1 make: Leaving directory/home/ec2-user/www/node_modules/node-xmpp/node_modules/node-stringprep/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.4.43-43.43.amzn1.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ec2-user/www/node_modules/node-xmpp/node_modules/node-stringprep
gyp ERR! node -v v0.10.8
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0

@lloydwatkin
Copy link
Contributor

Can you raise this against node-stringprep module please? https://github.com/astro.node-stringprep.

node-stringprep isn't a requirement, its just giving you a warning as its better to have it installed.

Also I haven't tested any of the node-xmpp related projects on nodejs > v0.8.X so a temporary fix might be to downgrade to a 0.8 version in the meantime.

Thanks!

@aensley
Copy link

aensley commented Jun 7, 2013

I am having the exact same issue. Relevant software versions:

OS: Ubuntu 12.04
Node: 0.10.10
node-xmpp: 0.4.4

Perhaps downgrading to 0.8 would work, but since this isn't a requirement, I'll just wait for node-stringprep to be updated with a fix. Thanks.

Also, isn't this issue already on node-stringprep?

@lloydwatkin
Copy link
Contributor

In which case I'm going to let the issue on node-stringprep highlight the issue. Thanks.

@aensley
Copy link

aensley commented Jun 10, 2013

Is #26 the issue that highlights this? Just want to make sure I can track it.

@lloydwatkin
Copy link
Contributor

@flamadiddle I'm not 100%, as I've had node-stringprep on a lower priority. I'll give #26 a go this evening and publish if all looks ok.

@aensley
Copy link

aensley commented Jun 10, 2013

Just tried to install 0.1.6, and I'm still having this issue. I don't see any other issue or PR referencing this. Re-open?

@lloydwatkin
Copy link
Contributor

Try 0.1.7 just pushed :)

We missed the package.json update

@aensley
Copy link

aensley commented Jun 10, 2013

I just tried again :-) with 0.1.7, and still no joy.

@lloydwatkin
Copy link
Contributor

@flamadiddle hmm strange, all working here on ubuntu 13.04.

Quick check do you have libicu-dev installed? If so maybe try npm i -g node-gyp and try again.

@aensley
Copy link

aensley commented Jun 10, 2013

That was it. I was missing libicu-dev. After installing that, installing node-stringprep@0.1.7 went perfectly. Sorry if I missed something about that requirement in the documentation.

@lloydwatkin
Copy link
Contributor

No worries. Glad to hear that its all working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants