Skip to content

Instantly share code, notes, and snippets.

@MysteryPancake
Last active January 29, 2018 02:14
Show Gist options
  • Save MysteryPancake/4d1dd9fd092f8dd4a27e33b1d19791d3 to your computer and use it in GitHub Desktop.
Save MysteryPancake/4d1dd9fd092f8dd4a27e33b1d19791d3 to your computer and use it in GitHub Desktop.
npm install pocketsphinx
> pocketsphinx@5.0.7 install /Users/idiot/Desktop/PhonemeTest/node_modules/pocketsphinx
> cmake-js compile
info TOOL Using Unix Makefiles generator.
info TOOL Using c++11 compiler standard.
info CMD CONFIGURE
WARN invalid config loglevel="notice"
info RUN cmake "/Users/idiot/Desktop/PhonemeTest/node_modules/pocketsphinx" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="3.6.1" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/Users/idiot/Desktop/PhonemeTest/node_modules/pocketsphinx/build/Release" -DCMAKE_JS_INC="/Users/idiot/.cmake-js/node-x64/v6.11.4/include/node" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="6.11.4" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-std=c++11 -D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION -w" -DCMAKE_SHARED_LINKER_FLAGS="-undefined dynamic_lookup"
Not searching for unused variables given on the command line.
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
CMake Error at /usr/local/Cellar/cmake/3.6.3/share/cmake/Modules/FindSWIG.cmake:52 (message):
Command "/Users/idiot/Desktop/PhonemeTest/node_modules/.bin/swig
-swiglib" failed with output:
Usage:
/usr/local/bin/node ../../.bin/swig compile [files] [options]
/usr/local/bin/node ../../.bin/swig run [files] [options]
/usr/local/bin/node ../../.bin/swig render [files] [options]
Options:
-v, --version Show the Swig version number.
-o, --output Output location. [default: "stdout"]
-h, --help Show this help screen.
-j, --json Variable context as a JSON file.
-c, --context Variable context as a CommonJS-style file. Used only if option `j` is not provided.
-m, --minify Minify compiled functions with uglify-js
--filters Custom filters as a CommonJS-style file
--tags Custom tags as a CommonJS-style file
--options Customize Swig's Options from a CommonJS-style file
--wrap-start Template wrapper beginning for "compile". [default: "var tpl = "]
--wrap-end Template wrapper end for "compile". [default: ";"]
--method-name Method name to set template to and run from. [default: "tpl"]
Error
at /Users/idiot/Desktop/PhonemeTest/node_modules/swig/bin/swig.js:49:15
at /Users/idiot/Desktop/PhonemeTest/node_modules/optimist/index.js:307:21
at Array.forEach (native)
at parseArgs (/Users/idiot/Desktop/PhonemeTest/node_modules/optimist/index.js:305:16)
at Object.get [as argv] (/Users/idiot/Desktop/PhonemeTest/node_modules/optimist/index.js:282:36)
at Object.<anonymous> (/Users/idiot/Desktop/PhonemeTest/node_modules/swig/bin/swig.js:65:5)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
-- Found SWIG: /Users/idiot/Desktop/PhonemeTest/node_modules/.bin/swig (Required is at least version "3.0.7")
-- Checking for module 'sphinxbase>=5prealpha'
-- Found sphinxbase, version 5prealpha
-- Checking for module 'pocketsphinx>=5prealpha'
-- Found pocketsphinx, version 5prealpha
-- Configuring incomplete, errors occurred!
See also "/Users/idiot/Desktop/PhonemeTest/node_modules/pocketsphinx/build/CMakeFiles/CMakeOutput.log".
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/Users/idiot/Desktop/PhonemeTest/node_modules/pocketsphinx/build"
info CMD CONFIGURE
info RUN cmake "/Users/idiot/Desktop/PhonemeTest/node_modules/pocketsphinx" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="3.6.1" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/Users/idiot/Desktop/PhonemeTest/node_modules/pocketsphinx/build/Release" -DCMAKE_JS_INC="/Users/idiot/.cmake-js/node-x64/v6.11.4/include/node" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="6.11.4" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-std=c++11 -D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION -w" -DCMAKE_SHARED_LINKER_FLAGS="-undefined dynamic_lookup"
Not searching for unused variables given on the command line.
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
CMake Error at /usr/local/Cellar/cmake/3.6.3/share/cmake/Modules/FindSWIG.cmake:52 (message):
Command "/Users/idiot/Desktop/PhonemeTest/node_modules/.bin/swig
-swiglib" failed with output:
Usage:
/usr/local/bin/node ../../.bin/swig compile [files] [options]
/usr/local/bin/node ../../.bin/swig run [files] [options]
/usr/local/bin/node ../../.bin/swig render [files] [options]
Options:
-v, --version Show the Swig version number.
-o, --output Output location. [default: "stdout"]
-h, --help Show this help screen.
-j, --json Variable context as a JSON file.
-c, --context Variable context as a CommonJS-style file. Used only if option `j` is not provided.
-m, --minify Minify compiled functions with uglify-js
--filters Custom filters as a CommonJS-style file
--tags Custom tags as a CommonJS-style file
--options Customize Swig's Options from a CommonJS-style file
--wrap-start Template wrapper beginning for "compile". [default: "var tpl = "]
--wrap-end Template wrapper end for "compile". [default: ";"]
--method-name Method name to set template to and run from. [default: "tpl"]
Error
at /Users/idiot/Desktop/PhonemeTest/node_modules/swig/bin/swig.js:49:15
at /Users/idiot/Desktop/PhonemeTest/node_modules/optimist/index.js:307:21
at Array.forEach (native)
at parseArgs (/Users/idiot/Desktop/PhonemeTest/node_modules/optimist/index.js:305:16)
at Object.get [as argv] (/Users/idiot/Desktop/PhonemeTest/node_modules/optimist/index.js:282:36)
at Object.<anonymous> (/Users/idiot/Desktop/PhonemeTest/node_modules/swig/bin/swig.js:65:5)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
-- Found SWIG: /Users/idiot/Desktop/PhonemeTest/node_modules/.bin/swig (Required is at least version "3.0.7")
-- Checking for module 'sphinxbase>=5prealpha'
-- Found sphinxbase, version 5prealpha
-- Checking for module 'pocketsphinx>=5prealpha'
-- Found pocketsphinx, version 5prealpha
-- Configuring incomplete, errors occurred!
See also "/Users/idiot/Desktop/PhonemeTest/node_modules/pocketsphinx/build/CMakeFiles/CMakeOutput.log".
ERR! OMG Process terminated: 1
npm WARN PhonemeTest@1.0.0 No description
npm WARN PhonemeTest@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pocketsphinx@5.0.7 install: `cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pocketsphinx@5.0.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/idiot/.npm/_logs/2018-01-29T02_05_35_985Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment