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

Npm install fail ubuntu #29

Closed
g-dury opened this issue Mar 16, 2016 · 3 comments
Closed

Npm install fail ubuntu #29

g-dury opened this issue Mar 16, 2016 · 3 comments

Comments

@g-dury
Copy link

g-dury commented Mar 16, 2016

Hi,
Don't know why but the installation is failing on my server (Ubuntu 14.04 AWS) but working on my mac:
tried with a lot of different node version
node -v 4.0.0
npm -v 2.14.2
gcc version 4.8.4
currently
here's the error
CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld_generated_score_quad_octa_0122.o
CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld_generated_score_quad_octa_2.o
AR(target) Release/obj.target/deps/cld/cld-c.a
COPY Release/cld-c.a
CXX(target) Release/obj.target/cld/src/constants.o
In file included from ../src/constants.h:4:0,
from ../src/constants.cc:3:
../deps/cld/public/compact_lang_det.h:379:28: error: variable or field ‘DumpResultChunkVector’ declared void
void DumpResultChunkVector(FILE* f, const char* src,
^
../deps/cld/public/compact_lang_det.h:379:28: error: ‘FILE’ was not declared in this scope
../deps/cld/public/compact_lang_det.h:379:34: error: ‘f’ was not declared in this scope
void DumpResultChunkVector(FILE* f, const char* src,
^
../deps/cld/public/compact_lang_det.h:379:37: error: expected primary-expression before ‘const’
void DumpResultChunkVector(FILE* f, const char* src,
^
../deps/cld/public/compact_lang_det.h:380:45: error: expected primary-expression before ‘’ token
ResultChunkVector
resultchunkvector);
^
../deps/cld/public/compact_lang_det.h:380:47: error: ‘resultchunkvector’ was not declared in this scope
ResultChunkVector* resultchunkvector);
^
make: *** [Release/obj.target/cld/src/constants.o] Error 1
and after npm error

If you have any clue, we suspect a gcc version but we updated my mac one and can still install.
Thanks a lot for your support

@g-dury
Copy link
Author

g-dury commented Mar 22, 2016

My bad, we had a modified version and the line to include the basic library:
#include "<"stdio.h">"

in /deps/cld/public/compact_lang_det.h was missing. I put it back and it is compiling fine.
Thanks & Cheers for the cld !

@g-dury g-dury closed this as completed Mar 22, 2016
@dachev
Copy link
Owner

dachev commented Mar 22, 2016

Glad you figured it out.

@loretoparisi
Copy link

I'm actually getting this error again, details here: #19

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

3 participants