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

Cant build #1

Closed
labs20 opened this issue Sep 11, 2020 · 2 comments
Closed

Cant build #1

labs20 opened this issue Sep 11, 2020 · 2 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@labs20
Copy link

labs20 commented Sep 11, 2020

Hi! I'm not being able to build it.

Can you help, please?


> [email protected] install /Volumes/Work/Developer/Web/rdr_playground/node_modules/word2vec4node
> node-gyp rebuild

  CXX(target) Release/obj.target/word2vec/lib/word2vec.o
../lib/word2vec.cc:92:10: error: use of undeclared identifier 'fgetc_unlocked'; did you mean 'getc_unlocked'?
    ch = fgetc_unlocked(fin);
         ^~~~~~~~~~~~~~
         getc_unlocked
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:293:6: note: 'getc_unlocked' declared here
int      getc_unlocked(FILE *);
         ^
1 error generated.
make: *** [Release/obj.target/word2vec/lib/word2vec.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Volumes/Work/Developer/Web/rdr_playground/node_modules/word2vec4node
gyp ERR! node -v v14.9.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/Volumes/Work/Developer/Web/rdr_playground/package.json'
npm WARN [email protected] requires a peer of @types/bluebird@* but none is installed. You must install peer dependencies yourself.
npm WARN rdr_playground No description
npm WARN rdr_playground No repository field.
npm WARN rdr_playground No README data
npm WARN rdr_playground No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1

Thanks!

@Astro36
Copy link
Owner

Astro36 commented Sep 12, 2020

I think some linux functions don't seem to work on the Mac: tmikolov/word2vec#48
I couldn't test it because I didn't have Mac OS, but it probably works because I modified it by referring to the PR(tmikolov/word2vec#40).
Thanks!

@Astro36 Astro36 self-assigned this Sep 14, 2020
@Astro36 Astro36 added bug Something isn't working good first issue Good for newcomers labels Sep 14, 2020
@labs20
Copy link
Author

labs20 commented Sep 14, 2020

Hi. Thanks for the update.

Building fine now.

Thanks!

@Astro36 Astro36 closed this as completed Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants