I had to first do a:
cd //pathtogenieacs//genieacs/node_modules/libxmljs/
and then
node gyp-rebuild
Now the error when i do it is:
../../nan/nan.h:1974:11: error: ‘ExternalAsciiStringResource’ in ‘class
v8::String’ does not name a type
const v8::String::ExternalAsciiStringResource* ext;
^
../../nan/nan.h:1975:5: error: ‘ext’ was not declared in this scope
ext = str->GetExternalAsciiStringResource();
^
../../nan/nan.h:1975:16: error: ‘class v8::String’ has no member named
‘GetExternalAsciiStringResource’
ext = str->GetExternalAsciiStringResource();
^
make: *** [Release/obj.target/xmljs/src/libxmljs.o] Error 1
make: se sale del directorio
«/home/tecnico/genieacs/node_modules/libxmljs/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:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:200:12)
gyp ERR! System Linux 3.19.0-49-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/tecnico/genieacs/node_modules/libxmljs
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
El 10/02/16 a las 22:23, Zaid Abdulla escribió:
On Wed, 2016-02-10 at 17:50 +0100, Sergio Fernández wrote:
I'm in an Ubuntu 14.04 Server
I'm following this file step by step: https://gist.githubusercontent.
com/allanmc/9fae5b2f85c5b9785ae1/raw/genieacs-install.sh
But when doing the npm install, it fails.
I've updated nodejs to v5.6.0 version, but the error is still the
same. This is the output:
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp
rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm
installed.
npm ERR! If you do, this is most likely a problem with the hiredis
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this
project with:
npm ERR! npm bugs hiredis
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls hiredis
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/tecnico/genieacs/npm-debug.log
I have tried reinstalling hiredis package but it is still failing.
I've installed GenieACS this way some months ago and it wasn't
failing.
I looked into this problem before but couldn't figure out if it's
related to libxmljs or node-gyp. Regardless, updating node-gyp will fix
the issue. Do "npm install node-gyp" then "node-gyp rebuild".
Zaid
--
------------------------------------------------------------------------
*Nombre:* Sergio Fernández Rubio
*Cargo:* Ingeniero de Software y de Redes
*Departamento:* TIC
*Email:* [email protected]
*Oficina:* 968 165 000
*Página web:* www.electronicamartinez.es
<http://www.electronicamartinez.es>
------------------------------------------------------------------------
<https://www.linkedin.com/company/10271615><https://twitter.com/EMartinez_SL>
<https://www.facebook.com/electronicamartinez0>
<https://plus.google.com/b/114382878353884084293/114382878353884084293>
------------------------------------------------------------------------
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users