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

Error building #7

Closed
fredericosilva opened this issue Jun 24, 2014 · 9 comments
Closed

Error building #7

fredericosilva opened this issue Jun 24, 2014 · 9 comments

Comments

@fredericosilva
Copy link

Hello,

I'm getting this error after a clean clone

$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.13.1
gyp info using node@0.10.29 | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/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   '/home/ubuntu/sandbox/aerospike-client-nodejs/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/ubuntu/.node-gyp/0.10.29/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/ubuntu/.node-gyp/0.10.29',
gyp info spawn args   '-Dmodule_root_dir=/home/ubuntu/sandbox/aerospike-client-nodejs',
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 info spawn make
gyp info make: Entering directory `/home/ubuntu/sandbox/aerospike-client-nodejs/build'
spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  ACTION binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh aerospike-client-c/lib/libaerospike.a
make: *** [aerospike-client-c/lib/libaerospike.a] Error 1
make: Leaving directory `/home/ubuntu/sandbox/aerospike-client-nodejs/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 ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.11.0-12-generic
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/ubuntu/sandbox/aerospike-client-nodejs
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
´´´
@fredericosilva
Copy link
Author

It seams that aerospike-client-c/lib its empty

$find  aerospike-client-c
aerospike-client-c
aerospike-client-c/lib

Any idea what's wrong? Tks

@GayathriKaliyamoorthy
Copy link
Contributor

Hi,
can you do rm -rf aerospike-client-c directory and retry node-gyp rebuild.

Aerospike Nodejs requires aerospike C Client, which is downloaded using a script.
The script checks for presence of aerospike-client-c directory in the parent directory and If it's present it avoids the downloading all over again.

In your case it seems like, due to incomplete download in earlier installations aeropsike-client-c directory is created but C client is not downloaded.
As the aerospike-client-c directory is present in the parent dir, script doesn't download C client as part of installation and that leads to subsequent failures.

@fredericosilva
Copy link
Author

Hello,

Still the same problem, there is a file with the name '2'

$ ls
2  aerospike-client-c  benchmarks  binding.gyp  build  docs  examples  LICENSE  npm-debug.log  package.json  README.md  scripts  src  test
$ cat 2
error: ubuntu13 is not supported.

Is this the problem?

@cstivers78
Copy link
Contributor

Hi Frederico,

I just got in and saw this issue. I will try to help resolve this issue. I see what the issue is, and it should not take too long to resolve.

Thanks for your patience.

--Chris

@cstivers78
Copy link
Contributor

We believe we have resolved the issue. Please try the latest release.

@fredericosilva
Copy link
Author

Hello, still the same error here with that file '2'

$ cat 2
error: ubuntu13 is not supported.
$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.13.1
gyp info using node@0.10.29 | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/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   '/home/ubuntu/sandbox/aerospike-client-nodejs/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/ubuntu/.node-gyp/0.10.29/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/ubuntu/.node-gyp/0.10.29',
gyp info spawn args   '-Dmodule_root_dir=/home/ubuntu/sandbox/aerospike-client-nodejs',
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 info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/home/ubuntu/sandbox/aerospike-client-nodejs/build'
  ACTION binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh aerospike-client-c/lib/libaerospike.a
make: *** [aerospike-client-c/lib/libaerospike.a] Error 1
make: Leaving directory `/home/ubuntu/sandbox/aerospike-client-nodejs/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 ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.11.0-12-generic
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/ubuntu/sandbox/aerospike-client-nodejs
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok

Let me know if you need more info to help you debug this error.

@cstivers78
Copy link
Contributor

Apologies.. I will enable Ubuntu 13.

@cstivers78
Copy link
Contributor

I made the change. it worked locally for me, I hope it works for you.

@fredericosilva
Copy link
Author

It does install now. Thank you.

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