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

wont install on mac OSX #1

Closed
arun057 opened this issue Mar 7, 2014 · 10 comments
Closed

wont install on mac OSX #1

arun057 opened this issue Mar 7, 2014 · 10 comments

Comments

@arun057
Copy link

arun057 commented Mar 7, 2014

When trying to run the examples from a mac, npm install fails.

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: aerospike@1.0.0
npm ERR! notsup Valid OS:    linux
npm ERR! notsup Valid Arch:  x64
npm ERR! notsup Actual OS:   darwin
npm ERR! notsup Actual Arch: x64

npm ERR! System Darwin 13.1.0
npm ERR! command "/usr/local/Cellar/node/0.10.25/bin/node" "/usr/local/bin/npm" "install" "../"
npm ERR! cwd ~/aerospike-client-nodejs/examples
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code EBADPLATFORM
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     ~/aerospike-client-nodejs/examples/npm-debug.log
npm ERR! not ok code 0
@cstivers78
Copy link
Contributor

Currently, the Node.js client only works on Linux. This is the message you saw regarding"Not compatible with your operating system or architecture" and "Valid OS: Linux".

This is because the Node.js Client depends on a C Client library, which is only available for Linux.

We are currently in the process of making the C Client library compatible with Mac OS X.

@arun057
Copy link
Author

arun057 commented Mar 7, 2014

Is there an open issue for that?

@cstivers78
Copy link
Contributor

Sorry, there is no open issue on that. We are internally working on mac compatibility, and do not have a time frame for its release. We will let you know when it is ready.

I will reopen this issue, and leave it open until Mac support is released.

@cstivers78 cstivers78 reopened this Mar 7, 2014
@arun057
Copy link
Author

arun057 commented Mar 7, 2014

Cool, thanks!

@colinmutter
Copy link
Contributor

I'm not sure that this warrants another Issue, but this also doesn't build properly on Amazon Linux (Linux 3.4.68-59.97.amzn1.x86_64 GNU/Linux)

error: amazonami2013 is not supported.

And for what it's worth, I had to provide lsb_release to get that far.

yum install redhat-lsb-core-4.0-7.9.amzn1.x86_64

@cstivers78
Copy link
Contributor

This should be in a separate ticket.

The client should be installable on Amazon's AMI, as it is RedHat based. You can modify the scripts/aerospike-client-c.sh script on line 64 to include "amazonami2013".

See:
https://github.com/aerospike/aerospike-client-nodejs/blob/master/scripts/aerospike-client-c.sh#L64

Modify that line as follows:

 "centos6" | "redhatenterpriceserver6" | "amazonami2013" ) 

Then rerun npm install, and it should work.

Note: I haven't tried it myself, I assume it will work, but I make no guarantees 😺 I assume it will work because the C client is built against what I believe is an older libc than what's on the Amazon AMI, which has a 3.x Linux Kernel vs the 2.6.x Linux Kernel of RHEL6. But without testing it, I can't be sure. I hope that you will let me know if it works, then I can make the appropriate changes. Good luck 🍀

@colinmutter
Copy link
Contributor

Thanks @cstivers78. It builds perfectly. I've tested a few commands without issue. Would you accept a PR or be able to integrate? Or are you guys drawing the "officially supported" line at CentOS and RHEL6?

@cstivers78
Copy link
Contributor

Yes, please send me a PR.

The "officially supported" line simply states that we ensure the software will work on said platforms, this is through QA and other processes.

@cstivers78
Copy link
Contributor

Just released v1.0.2, which includes support for Mac OS X.

Please let me know how it goes.

@ankurjasoria
Copy link

Wont install on Windows7
When using below link for NodeJS with windows7 and run this command "$ npm install aerospike"
http://www.aerospike.com/docs/client/nodejs/install/

Error Message :
C:\nodecellar> npm install aerospike
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: aerospike@1.0.26
npm ERR! notsup Valid OS: linux,darwin
npm ERR! notsup Valid Arch: x64
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: ia32

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin
\npm-cli.js" "install" "aerospike"
npm ERR! cwd C:\nodecellar
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code EBADPLATFORM
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\nodecellar\npm-debug.log
npm ERR! not ok code 0
C:\nodecellar>

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

4 participants