<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I had to first do a:<br>
cd /<i>pathtogenieacs</i>/genieacs/node_modules/libxmljs/<br>
and then<br>
node gyp-rebuild<br>
<br>
Now the error when i do it is:<br>
<br>
../../nan/nan.h:1974:11: error: ‘ExternalAsciiStringResource’ in
‘class v8::String’ does not name a type<br>
const v8::String::ExternalAsciiStringResource* ext;<br>
^<br>
../../nan/nan.h:1975:5: error: ‘ext’ was not declared in this scope<br>
ext = str->GetExternalAsciiStringResource();<br>
^<br>
../../nan/nan.h:1975:16: error: ‘class v8::String’ has no member
named ‘GetExternalAsciiStringResource’<br>
ext = str->GetExternalAsciiStringResource();<br>
^<br>
make: *** [Release/obj.target/xmljs/src/libxmljs.o] Error 1<br>
make: se sale del directorio
«/home/tecnico/genieacs/node_modules/libxmljs/build»<br>
gyp ERR! build error <br>
gyp ERR! stack Error: `make` failed with exit code: 2<br>
gyp ERR! stack at ChildProcess.onExit
(/usr/lib/node_modules/node-gyp/lib/build.js:276:23)<br>
gyp ERR! stack at emitTwo (events.js:100:13)<br>
gyp ERR! stack at ChildProcess.emit (events.js:185:7)<br>
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:200:12)<br>
gyp ERR! System Linux 3.19.0-49-generic<br>
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"<br>
gyp ERR! cwd /home/tecnico/genieacs/node_modules/libxmljs<br>
gyp ERR! node -v v5.6.0<br>
gyp ERR! node-gyp -v v3.2.1<br>
gyp ERR! not ok <br>
<br>
<br>
<div class="moz-cite-prefix">El 10/02/16 a las 22:23, Zaid Abdulla
escribió:<br>
</div>
<blockquote cite="mid:1455139413.16991.15.camel@genieacs.com"
type="cite">
<pre wrap="">On Wed, 2016-02-10 at 17:50 +0100, Sergio Fernández wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm in an Ubuntu 14.04 Server
I'm following this file step by step: <a class="moz-txt-link-freetext" href="https://gist.githubusercontent">https://gist.githubusercontent</a>.
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! <a class="moz-txt-link-abbreviated" href="mailto:hiredis@0.1.17">hiredis@0.1.17</a> install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a class="moz-txt-link-abbreviated" href="mailto:hiredis@0.1.17">hiredis@0.1.17</a> 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.
</pre>
</blockquote>
<pre wrap="">
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
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta charset="UTF-8">
<style>
#contenedor {
position: relative;
height:220px;
padding:10px;
}
#left {
float:left;
}
.divider{
position:absolute;
left:250px;
top:5px;
bottom:5px;
border-left:1px solid grey;
}
#right {
position:absolute;
left:270px;
width:390px;
height:200px;
float:right;
}
p {
font-family: "Trebuchet MS", Helvetica, sans-serif;
}
</style>
<hr style="width:670px;" align="left">
<div id="contenedor">
<div id="left"> <br>
</div>
<div id="right">
<p> <b>Nombre:</b> Sergio Fernández Rubio<br>
<b>Cargo:</b> Ingeniero de Software y de Redes<br>
<b>Departamento:</b> TIC<br>
<b>Email:</b> <a class="moz-txt-link-abbreviated" href="mailto:sergio.fernandez@electronicamartinez.com">sergio.fernandez@electronicamartinez.com</a><br>
<b>Oficina:</b> 968 165 000<br>
<b>Página web:</b> <a
href="http://www.electronicamartinez.es" target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.electronicamartinez.es">www.electronicamartinez.es</a></a>
</p>
<hr> <a href="https://www.linkedin.com/company/10271615"
target="_blank"> </a><a
href="https://twitter.com/EMartinez_SL" target="_blank"
style="margin-left:10px;"></a> <a
href="https://www.facebook.com/electronicamartinez0"
target="_blank" style="margin-left:10px;"></a> <a
href="https://plus.google.com/b/114382878353884084293/114382878353884084293"
target="_blank" style="margin-left:10px;"></a> </div>
</div>
<hr style="width:670px;" align="left"></div>
</body>
</html>