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

v2.0 error building on Mac OS #47

Open
iwasrobbed opened this issue Aug 2, 2017 · 2 comments
Open

v2.0 error building on Mac OS #47

iwasrobbed opened this issue Aug 2, 2017 · 2 comments
Assignees
Labels

Comments

@iwasrobbed
Copy link

cc @connorhartley

Here are the logs from running yarn add audiojs/audio-speaker#release-2.0-browser

Config

  • Mac OS X Sierra (10.12.5)
  • node -v: v6.9.1
  • electron-prebuilt-compile: 1.6.11

Verbose output

https://gist.github.com/iwasrobbed/6a27a0e7e9cb74f1874a67c7e9ab101e

Compact output

yarn add v0.17.10
warning [email protected]: License should be a valid SPDX license expression
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
warning [email protected]: The platform "darwin" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
warning [email protected]: The platform "darwin" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
[1/1] ⠁ audio-mpg123: Failed to execute '/Users/rob/.nvm/versions/node/v6.9.1/bin/node /Users/rob/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modul
[-/1] ⠁ waiting...
[-/1] ⠁ waiting...
[-/1] ⠁ waiting...
error Error running install script for optional dependency: "/Users/rob/blah/node_modules/audio-mpg123: Command failed.\nExit code: 1\nCommand: sh\nArguments: -c node ./scripts/check-pre-gyp && node-pre-gyp install --fallback-to-build\nDirectory: /Users/rob/blah/node_modules/audio-mpg123\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for "/Users/rob/blah/node_modules/audio-mpg123/lib/audio_mpg123.node" (not found)\nnode-pre-gyp http GET https://github.com/audiojs/audio-mpg123/releases/download/1.2.3/audio_mpg123-v1.2.3-node-v48-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://github.com/audiojs/audio-mpg123/releases/download/1.2.3/audio_mpg123-v1.2.3-node-v48-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://github.com/audiojs/audio-mpg123/releases/download/1.2.3/audio_mpg123-v1.2.3-node-v48-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://github.com/audiojs/audio-mpg123/releases/download/1.2.3/audio_mpg123-v1.2.3-node-v48-darwin-x64.tar.gz \ngyp info it worked if it ends with ok\ngyp info using [email protected]\ngyp info using [email protected] | darwin | x64\ngyp info ok \ngyp info it worked if it ends with ok\ngyp info using [email protected]\ngyp info using [email protected] | darwin | x64\ngyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR\ngyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR\ngyp info spawn /usr/bin/python\ngyp info spawn args [ '/Users/rob/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\ngyp info spawn args 'binding.gyp',\ngyp info spawn args '-f',\ngyp info spawn args 'make',\ngyp info spawn args '-I',\ngyp info spawn args '/Users/rob/blah/node_modules/audio-mpg123/build/config.gypi',\ngyp info spawn args '-I',\ngyp info spawn args '/Users/rob/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\ngyp info spawn args '-I',\ngyp info spawn args '/Users/rob/.node-gyp/6.9.1/include/node/common.gypi',\ngyp info spawn args '-Dlibrary=shared_library',\ngyp info spawn args '-Dvisibility=default',\ngyp info spawn args '-Dnode_root_dir=/Users/rob/.node-gyp/6.9.1',\ngyp info spawn args '-Dnode_gyp_dir=/Users/rob/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp',\ngyp info spawn args '-Dnode_lib_file=node.lib',\ngyp info spawn args '-Dmodule_root_dir=/Users/rob/blah/node_modules/audio-mpg123',\ngyp info spawn args '--depth=.',\ngyp info spawn args '--no-parallel',\ngyp info spawn args '--generator-output',\ngyp info spawn args 'build',\ngyp info spawn args '-Goutput_dir=.' ]\n2017-08-01 23:11:39.296 xcodebuild[83636:2605686] [MT] PluginLoading: Required plug-in compatibility UUID DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XCSwiftr.xcplugin' not present in DVTPlugInCompatibilityUUIDs\n2017-08-01 23:11:39.297 xcodebuild[83636:2605686] [MT] PluginLoading: Required plug-in compatibility UUID DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/VVDocumenter-Xcode.xcplugin' not present in DVTPlugInCompatibilityUUIDs\n2017-08-01 23:11:39.298 xcodebuild[83636:2605686] [MT] PluginLoading: Required plug-in compatibility UUID DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs\n2017-08-01 23:11:39.299 xcodebuild[83636:2605686] [MT] PluginLoading: Required plug-in compatibility UUID DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Swimat.xcplugin' not present in DVTPlugInCompatibilityUUIDs\n2017-08-01 23:11:39.300 xcodebuild[83636:2605686] [MT] PluginLoading: Required plug-in compatibility UUID DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs\ngyp info ok \ngyp info it worked if it ends with ok\ngyp info using [email protected]\ngyp info using [email protected] | darwin | x64\ngyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR\ngyp info spawn make\ngyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]\n CC(target) Release/obj.target/module/src/mpg123/src/libout123/modules/coreaudio.o\nIn file included from ../src/mpg123/src/libout123/modules/coreaudio.c:12:\nIn file included from ../src/mpg123/src/libout123/out123_int.h:17:\n../src/mpg123/src/libout123/module.h:13:10: fatal error: 'ltdl.h' file not found\n#include <ltdl.h>\n ^\n1 error generated.\nmake: *** [Release/obj.target/module/src/mpg123/src/libout123/modules/coreaudio.o] Error 1\ngyp ERR! build error \ngyp ERR! stack Error: make failed with exit code: 2\ngyp ERR! stack at ChildProcess.onExit (/Users/rob/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)\ngyp ERR! stack at emitTwo (events.js:106:13)\ngyp ERR! stack at ChildProcess.emit (events.js:191:7)\ngyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\ngyp ERR! System Darwin 16.6.0\ngyp ERR! command "/Users/rob/.nvm/versions/node/v6.9.1/bin/node" "/Users/rob/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/rob/blah/node_modules/audio-mpg123/lib/audio_mpg123.node" "--module_name=audio_mpg123" "--module_path=/Users/rob/blah/node_modules/audio-mpg123/lib"\ngyp ERR! cwd /Users/rob/blah/node_modules/audio-mpg123\ngyp ERR! node -v v6.9.1\ngyp ERR! node-gyp -v v3.4.0\ngyp ERR! not ok \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute '/Users/rob/.nvm/versions/node/v6.9.1/bin/node /Users/rob/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/rob/blah/node_modules/audio-mpg123/lib/audio_mpg123.node --module_name=audio_mpg123 --module_path=/Users/rob/blah/node_modules/audio-mpg123/lib' (1)\nnode-pre-gyp ERR! stack at ChildProcess. (/Users/rob/blah/node_modules/node-pre-gyp/lib/util/compile.js:83:29)\nnode-pre-gyp ERR! stack at emitTwo (events.js:106:13)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)\nnode-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\nnode-pre-gyp ERR! System Darwin 16.6.0\nnode-pre-gyp ERR! command "/Users/rob/.nvm/versions/node/v6.9.1/bin/node" "/Users/rob/blah/node_modules/audio-mpg123/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"\nnode-pre-gyp ERR! cwd /Users/rob/blah/node_modules/audio-mpg123\nnode-pre-gyp ERR! node -v success Saved lockfile.
success Saved 26 new dependencies.
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
warning [email protected]: License should be a valid SPDX license expression
$ install-app-deps
⚠️ Please use as subcommand: electron-builder install-app-deps
electron-builder 19.18.0
Rebuilding native production dependencies for darwin:x64
Rebuilding native dependency audio-mpg123
⚠️ Cannot build optional native dep audio-mpg123
✨ Done in 20.37s.

@vectrixdevelops vectrixdevelops self-assigned this Aug 2, 2017
@vectrixdevelops
Copy link

I've found someone who will be able to manage the pre-built builds for mac for a little while, but long term for that I might need to find someone more permanent.

The issue you're having is that your device does not have the build tools (xcode and some others) to build the native binding itself, in which it goes to find a pre-built binding for your system (but can't because of the first paragraph). https://github.com/nodejs/node-gyp#on-mac-os-x has the requirements you would need.

Otherwise I will try get a pre-built binding up for mac this week and I will let you know when you can try it again. Release 2.0 needs as much testing as it can get so we can really make it an improvement on top of the existing system, so thank you for trying it out.

@iwasrobbed
Copy link
Author

@connorhartley Unfortunately, I already have Xcode and the CLI tools installed (as I'm an iOS dev). If I can try anything else, let me know and I'd be happy to. I've also installed node-gyp globally.

I'm not in any rush, so I'll happily test out what you all have on my daily-use personal project.

Thanks again for the help

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