Closed djspacedevil closed 8 years ago
You need gcc 4.7 from devtools 1.1
Hy,
i use it : /opt/centos/devtoolset-1.1/root/usr/bin/gcc --version gcc (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CC=/opt/centos/devtoolset-1.1/root/usr/bin/gcc CXX=/opt/centos/devtoolset-1.1/root/usr/bin/gcc node-gyp rebuild
node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@3.2.1
gyp info using node@5.2.0 | linux | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/opt/Pools/unomp/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/5.2.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/5.2.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/opt/Pools/unomp',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: /opt/Pools/unomp) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:88:13)
gyp ERR! stack at ChildProcess.emit (events.js:173:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:201:12)
gyp ERR! System Linux 2.6.32-504.8.1.el6.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/Pools/unomp
gyp ERR! node -v v5.2.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
try #scl enable devtoolset-1.1 bash
Hy, mh...
that dont help...
i become a many compiling errors when i use gcc 4.7
like
.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:222:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
The Error Message is the same...
gyp: binding.gyp not found (cwd: /opt/Pools/unomp) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
.....
https://github.com/mongodb/js-bson/issues/58
Loads of links on google which should help..... I ended up using Ubuntu instead its much easier to config than Centos
mh... i think, NodeJS is "shit" on CentOS. is i give up with it...
Only errors over errors.
npm update
> unomp-multi-hashing@0.1.0 install /opt/Pools/unomp/node_modules/unomp-multi-hashing
> node-gyp rebuild
make: Entering directory `/opt/Pools/unomp/node_modules/unomp-multi-hashing/build'
CXX(target) Release/obj.target/multihashing/multihashing.o
../multihashing.cc: In function ‘v8::Handle<v8::Value> except(const char*)’:
../multihashing.cc:43:44: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New(msg)));
^
../multihashing.cc:43:61: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New(msg)));
^
I dont know what happend.
but today its load all on npm update...
Now i become this error:
node init.js
module.js:356
Module._extensions[extension](this, filename);
^
Error: /opt/Pools/unomp/node_modules/bignum/build/Release/bignum.node: undefined symbol: node_module_register
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at new require (module.js:380:17)
at Object.<anonymous> (/opt/Pools/unomp/node_modules/bignum/index.js:4:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
You were using the wrong version of node. please follow the readme to downgrade to node v0.10.x
Hy,
i have tested 0.10.40 and 0.10.38 and many more.... on all versions i become errors.
Now i have run node in a docker container with ubuntu. And here its run perfect.
i am having issues too, it says it supports 0.10 + , and that version doesn't have arm support... i am trying to install this on raspberry pi 3 running centos
Sorry a raspberry pi isn't part of our supported hardware, You need a LOT more than just an r-pi to run this software.
hmm, i got the software working , however i am seeing litecoin and bitcoin crashing with high io times..
Like I said you need a LOT more than just an r-pi to run this software.
npm install unomp-multi-hashing npm http GET https://registry.npmjs.org/unomp-multi-hashing npm http 304 https://registry.npmjs.org/unomp-multi-hashing npm http GET https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/bindings
(node) child_process: options.customFds option is deprecated. Use options.stdio instead. (node) child_process: options.customFds option is deprecated. Use options.stdio instead. make: Entering directory
/opt/Pools/unomp/node_modules/unomp-multi-hashing/build' CXX(target) Release/obj.target/multihashing/multihashing.o ../multihashing.cc: In function ‘v8::Handle<v8::Value> neoscrypt_hash(const v8::Arguments&)’: ../multihashing.cc:153:14: warning: unused variable ‘input_len’ [-Wunused-variable] uint32_t input_len = Buffer::Length(target); ^ ../multihashing.cc: In function ‘v8::Handle<v8::Value> boolberry(const v8::Arguments&)’: ../multihashing.cc:606:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(args.Length() >= 3) ^ ../multihashing.cc: In function ‘v8::Handle<v8::Value> c11(const v8::Arguments&)’: ../multihashing.cc:749:14: warning: unused variable ‘input_len’ [-Wunused-variable] uint32_t input_len = Buffer::Length(target); ^ /opt/Pools/unomp/node_modules/unomp-multi-hashing/ccPFKimS.s: Assembler messages: /opt/Pools/unomp/node_modules/unomp-multi-hashing/ccPFKimS.s:5944: Error: no such instruction:
shlx %ebp,%edx,%edx' make: *\ [Release/obj.target/multihashing/multihashing.o] Fehler 1 make: Leaving directory/opt/Pools/unomp/node_modules/unomp-multi-hashing/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/node-gyp/lib/build.js:267:23) gyp ERR! stack at emitTwo (events.js:88:13) gyp ERR! stack at ChildProcess.emit (events.js:173:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:201:12) gyp ERR! System Linux 2.6.32-504.8.1.el6.x86_64 gyp ERR! command "/usr/local/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/Pools/unomp/node_modules/unomp-multi-hashing gyp ERR! node -v v5.2.0 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok npm ERR! weird error 1 npm ERR! not ok code 0Can anybody help?
node -v v5.2.0
gcc --version gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
uname -a 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release CentOS release 6.7 (Final)