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

Failed at the multi-hashing@0.0.9 install script 'node-gyp rebuild' #31

Open
ghost opened this issue Jan 3, 2016 · 24 comments
Open

Failed at the multi-hashing@0.0.9 install script 'node-gyp rebuild' #31

ghost opened this issue Jan 3, 2016 · 24 comments

Comments

@ghost
Copy link

ghost commented Jan 3, 2016

Hi! I've got node 5.3.0 installed with npm 3.3.12 installed and gcc 4.8.4

When I run npm update on node-open-mining-portal when it reaches the stratum-pool dependency node-gyp rebuild fails with exit code 1. I've found that it is because of the module multi-hashing.

Is multi-hashing broken with my version of node? Do I need node 0.10? I don't really want to install that as it's pretty outdated.

Thanks for any help.

EDIT: Yes, I do have libssl-dev installed using sudo apt-get install libssl-dev

@erm3nda
Copy link

erm3nda commented Jan 3, 2016

This may look nonsense, but download zip or clone repo then install like npm install ./node-multi-hashing. I've spent many hours trying to compile that module from SEVERAL machines, so finally i've tried downloading packages. Anyway, installing stuff on npm has become a kidding experience for me. Hate it.

@ghost
Copy link
Author

ghost commented Jan 3, 2016

I tried both git clone and downloading it from zip then using npm install to install the package locally and neither worked. Any other suggestions?

@erm3nda
Copy link

erm3nda commented Jan 3, 2016

Yes, one more: download this
https://mega.nz/#!bBtHQLrJ!c9fNeG45BlQo8dcY-i-jCykzRNbShZm1oKhz0nnqmK8
pre-compiled module. I've built it less than hour ago, Debian 8 64bit.

Add the zip contents inside node_modules.

@ghost
Copy link
Author

ghost commented Jan 3, 2016

I've downloaded it and placed the multi-hashing folder into node_modules but when I try to use it I get the error: Error: Module did not self-register.

Any ideas? I'm running Ubuntu 14.04 by the way. It's still Debian based though, so that shouldn't be the problem

@ghost
Copy link
Author

ghost commented Jan 3, 2016

Also, I am using this module in NOMP which requires stratum-pool which has a module dependency for multi-hashing which is why I created the issue here. I've placed the multi-hashing folder that you gave me in the node_modules folder of stratum-pool which is in the node_modules folder of NOMP because that is where I thought it was supposed to be.

@erm3nda
Copy link

erm3nda commented Jan 3, 2016

I had your same problem building unomp, wich SAME dependancy and only get it compiled from a Linux Machine. Im not a regular user of Node, so I didn't know that i can't simply copy the folder. Im stucked in the same place. I'll come here if found anything new.

@erm3nda
Copy link

erm3nda commented Jan 3, 2016

Also, readed something about use Node 0.10 for multi-hashing module. Try node-gyp rebuild but im pretty sure that this would try to compile again that module, then fail. Srry.

@ghost
Copy link
Author

ghost commented Jan 3, 2016

I'm going to look into rewriting the module so that it can be used with newer versions of node

@ghost
Copy link
Author

ghost commented Jan 3, 2016

Can you tell me how you built the library on Debian? What version of Node.js and NPM did you have and what commands did you use to install it?

@erm3nda
Copy link

erm3nda commented Jan 3, 2016

I've built in my own Laptop using Debian 8 Jessie x64, and finally did the work.

node -v 0.10.29
npm -v 1.3.10
SOLINK_MODULE(target) Release/obj.target/multihashing.node: Finished
COPY Release/multihashing.node
make: Leaving directory '/home/m3nda/test/compile/node_modules/multi-hashing/build'
multi-hashing@0.0.9 node_modules/multi-hashing
└── bindings@1.2.1

Also created a VPS with Debian 8 Jessie and worked again, succesfully run the unomp. Dependancy build-essentials, libssl-dev and nothing more.

But, i've tried 2 more Linux boxes without luck before.

Try Debian if you can.

@erm3nda
Copy link

erm3nda commented Jan 3, 2016

In another server I have with CentOS 7 i got:

Error: Cannot find module './lib/cookies'

but module compiles too.

npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10

@erm3nda
Copy link

erm3nda commented Jan 3, 2016

On Windows was impossible to build dependancy bignum

@ghost
Copy link
Author

ghost commented Jan 3, 2016

Ok, I've figured out the problem: This project is build using node 0.10, hence the binding support is also for node 0.10. I am rewriting the bindings using nan so that it will support node 0.10 all the way to node 4.0.0. I will keep you updated.

@webchi
Copy link

webchi commented Jan 19, 2016

Find a fix for node 0.12.9. Trying update it to node 5.0 and NAN ^2.0 make me crazy tonight))
Here pull request #32

@ghost
Copy link
Author

ghost commented Jan 19, 2016

I've already read the issue that you got that code from. I have also already re-written the bindings to make them work with node 4.3.0. Feel free to make them work with node 5.0 I've already tried with no success

@crusher72
Copy link

Can you share the updated bindings?

@ghost
Copy link

ghost commented Jan 15, 2017

great. so here is the command line for non-experts:
install this module on a modern version of node ( 6.9.4 ):

apt-get install -y build-essential git
cd node_modules
git clone https://github.com/UNOMP/node-multi-hashing
cd node-multi-hashing
git fetch origin pull/5/head:BRANCHNAME
git checkout BRANCHNAME
npm install

@edilio
Copy link

edilio commented Mar 10, 2017

What buechling did worked for me on ubuntu 16.x, node -v == v6.10.0, and npm -v == 3.10.10

@sanitariu
Copy link

On node-js version 4.6.1 does not work too.

../multihashing.cc:255:77: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))'
exports->Set(String::NewSymbol("scryptn"), FunctionTemplate::New(scryptn)->GetFunction());

........

@nibbons
Copy link

nibbons commented Jun 6, 2017

My fix was forcing node v0.10.29 with nvp install 0.10.29 (no luck with 6.x or 0.10.48). On ubuntu 14

@xeddmc
Copy link

xeddmc commented Sep 4, 2017

Not sure if this still exists for you guys, but I successfully worked around this issue using nvm. Here is the curl command to install nvm if you would like it
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.3/install.sh | bash

After that just run nvm install 0.10.25

Worked on every machine i've tested so far...although it is extremely outdated so I wouldn't use it in production..

@mikhailrojo
Copy link

well, node@0.10.29 worked for me on linux
but on mac 0.10.25 or 0.10.29 - no success

I guess it is linux only

@sherifomran
Copy link

sherifomran commented Dec 28, 2017

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install 0.10.25
cd pool
npm update

@fmarines
Copy link

node 0.10.48 centos 7 works

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

No branches or pull requests

10 participants