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

Failed install on Mac #31

Closed
facultymatt opened this issue May 31, 2014 · 6 comments
Closed

Failed install on Mac #31

facultymatt opened this issue May 31, 2014 · 6 comments
Labels

Comments

@facultymatt
Copy link

I get the following error when running install

npm WARN package.json bluetooth@1.0.0 No description
npm WARN package.json expect.js@0.2.0 No repository field.
npm http GET https://registry.npmjs.org/bluetooth-serial-port
npm http 304 https://registry.npmjs.org/bluetooth-serial-port
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

> bluetooth-serial-port@1.1.2 install /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port
> node-gyp configure build

make: Entering directory `/Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port/build'
  CXX(target) Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:161,
                 from /System/Library/Frameworks/IOBluetooth.framework/Headers/objc/IOBluetoothRFCOMMChannel.h:6,
                 from ../src/osx/BluetoothWorker.h:16,
                 from ../src/osx/DeviceINQ.mm:36:
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected `}' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected unqualified-id before '=' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:17: error: expected declaration before '}' token
make: *** [Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o] Error 1
make: Leaving directory `/Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port/build'
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:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm ERR! bluetooth-serial-port@1.1.2 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the bluetooth-serial-port@1.1.2 install script.
npm ERR! This is most likely a problem with the bluetooth-serial-port package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls bluetooth-serial-port
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "bluetooth-serial-port"
npm ERR! cwd /Users/facultymatt/Sites/labs/bluetooth
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/facultymatt/Sites/labs/bluetooth/npm-debug.log
npm ERR! not ok code 0

Interestingly I get the same error when trying to install https://github.com/sandeepmistry/noble.

@eelcocramer
Copy link
Owner

Do you have the dependencies installed?

Noble uses some of the same frameworks (libbluetooth-dev).

Sending this from my mobile phone so excuses for my short reply

Op 31 mei 2014 om 16:35 heeft Matt Miller notifications@github.com het volgende geschreven:

I get the following error when running install

npm WARN package.json bluetooth@1.0.0 No description
npm WARN package.json expect.js@0.2.0 No repository field.
npm http GET https://registry.npmjs.org/bluetooth-serial-port
npm http 304 https://registry.npmjs.org/bluetooth-serial-port
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

bluetooth-serial-port@1.1.2 install /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port
node-gyp configure build

make: Entering directory /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port/build' CXX(target) Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:161, from /System/Library/Frameworks/IOBluetooth.framework/Headers/objc/IOBluetoothRFCOMMChannel.h:6, from ../src/osx/BluetoothWorker.h:16, from ../src/osx/DeviceINQ.mm:36: /System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected}' before 'attribute'
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected unqualified-id before '=' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:17: error: expected declaration before '}' token
make: *** [Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o] Error 1
make: Leaving directory /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port/build' gyp ERR! build error gyp ERR! stack Error:makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12) gyp ERR! System Darwin 13.1.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm ERR! bluetooth-serial-port@1.1.2 install:node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bluetooth-serial-port@1.1.2 install script.
npm ERR! This is most likely a problem with the bluetooth-serial-port package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls bluetooth-serial-port
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "bluetooth-serial-port"
npm ERR! cwd /Users/facultymatt/Sites/labs/bluetooth
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/facultymatt/Sites/labs/bluetooth/npm-debug.log
npm ERR! not ok code 0
Interestingly I get the same error when trying to install https://github.com/sandeepmistry/noble.


Reply to this email directly or view it on GitHub.

@facultymatt
Copy link
Author

I was under the impression that Mac platform users didn't need to install this dependency. Is this not correct?—
Sent from Mailbox for iPhone

On Sat, May 31, 2014 at 11:26 AM, Eelco notifications@github.com wrote:

Do you have the dependencies installed?
Noble uses some of the same frameworks (libbluetooth-dev).
Sending this from my mobile phone so excuses for my short reply

Op 31 mei 2014 om 16:35 heeft Matt Miller notifications@github.com het volgende geschreven:

I get the following error when running install

npm WARN package.json bluetooth@1.0.0 No description
npm WARN package.json expect.js@0.2.0 No repository field.
npm http GET https://registry.npmjs.org/bluetooth-serial-port
npm http 304 https://registry.npmjs.org/bluetooth-serial-port
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

bluetooth-serial-port@1.1.2 install /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port
node-gyp configure build

make: Entering directory /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port/build' CXX(target) Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:161, from /System/Library/Frameworks/IOBluetooth.framework/Headers/objc/IOBluetoothRFCOMMChannel.h:6, from ../src/osx/BluetoothWorker.h:16, from ../src/osx/DeviceINQ.mm:36: /System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected}' before 'attribute'
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected unqualified-id before '=' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:17: error: expected declaration before '}' token
make: *** [Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o] Error 1
make: Leaving directory /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port/build' gyp ERR! build error gyp ERR! stack Error:makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12) gyp ERR! System Darwin 13.1.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm ERR! bluetooth-serial-port@1.1.2 install:node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bluetooth-serial-port@1.1.2 install script.
npm ERR! This is most likely a problem with the bluetooth-serial-port package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls bluetooth-serial-port
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "bluetooth-serial-port"
npm ERR! cwd /Users/facultymatt/Sites/labs/bluetooth
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/facultymatt/Sites/labs/bluetooth/npm-debug.log
npm ERR! not ok code 0
Interestingly I get the same error when trying to install https://github.com/sandeepmistry/noble.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub:
#31 (comment)

@eelcocramer
Copy link
Owner

Sorry I did not notice this and was assuming linux. You are right, libbluetooth is not needed.

Are you using recent versions of osx, xcode and the xcode command line tools?

Sent from my mobile phone

Op 31 mei 2014 om 21:16 heeft Matt Miller notifications@github.com het volgende geschreven:

I was under the impression that Mac platform users didn't need to install this dependency. Is this not correct?—
Sent from Mailbox for iPhone

On Sat, May 31, 2014 at 11:26 AM, Eelco notifications@github.com wrote:

Do you have the dependencies installed?
Noble uses some of the same frameworks (libbluetooth-dev).
Sending this from my mobile phone so excuses for my short reply

Op 31 mei 2014 om 16:35 heeft Matt Miller notifications@github.com het volgende geschreven:

I get the following error when running install

npm WARN package.json bluetooth@1.0.0 No description
npm WARN package.json expect.js@0.2.0 No repository field.
npm http GET https://registry.npmjs.org/bluetooth-serial-port
npm http 304 https://registry.npmjs.org/bluetooth-serial-port
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

bluetooth-serial-port@1.1.2 install /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port
node-gyp configure build

make: Entering directory /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port/build' CXX(target) Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:161, from /System/Library/Frameworks/IOBluetooth.framework/Headers/objc/IOBluetoothRFCOMMChannel.h:6, from ../src/osx/BluetoothWorker.h:16, from ../src/osx/DeviceINQ.mm:36: /System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected}' before 'attribute'
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected unqualified-id before '=' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:17: error: expected declaration before '}' token
make: *** [Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o] Error 1
make: Leaving directory /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port/build' gyp ERR! build error gyp ERR! stack Error:makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12) gyp ERR! System Darwin 13.1.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /Users/facultymatt/Sites/labs/bluetooth/node_modules/bluetooth-serial-port gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm ERR! bluetooth-serial-port@1.1.2 install:node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bluetooth-serial-port@1.1.2 install script.
npm ERR! This is most likely a problem with the bluetooth-serial-port package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls bluetooth-serial-port
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "bluetooth-serial-port"
npm ERR! cwd /Users/facultymatt/Sites/labs/bluetooth
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/facultymatt/Sites/labs/bluetooth/npm-debug.log
npm ERR! not ok code 0
Interestingly I get the same error when trying to install https://github.com/sandeepmistry/noble.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub:
#31 (comment)

Reply to this email directly or view it on GitHub.

@eelcocramer
Copy link
Owner

When I search for your error description I find similar problems. Could you try upgrading to the latest version of xcode and the xcode command line tools?

thoughtbot/capybara-webkit#583

@facultymatt
Copy link
Author

Fixed the problem, I was using the macports version of gcc compiler. See sandeepmistry/node-xpc-connection#2 (comment). Thanks for helping with this.

@eelcocramer
Copy link
Owner

Thank you for the updated and documenting the outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants