GYP

NodeJS npm install pg failed

泄露秘密 提交于 2020-01-10 14:53:11
问题 Im trying to npm install pg on my ubuntu virtual machine and i got error: > pg@1.1.0 install /usr/local/lib/node_modules/core/node_modules/pg > node-gyp rebuild || (exit 0) gyp: binding.gyp not found (cwd: /usr/local/lib/node_modules/core/node_modules/pg) while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16) gyp ERR! stack at ChildProcess.EventEmitter

How to build V8 without “external startup data”?

99封情书 提交于 2020-01-02 09:09:13
问题 I want a standalone JavaScript library for embedding. I already build V8 and its working correctly, but binary needs two "external data" files. I don want this files. I was trying to build V8 without "external startup data". I tried to set v8_use_external_startup_data : 0, in build.common.gypi and build/standalone.gypi, but then make is reporting failure at some point. I'm using following code to build v8: git clone https://chromium.googlesource.com/chromium/tool/depot_tools.git export PATH=

What does this gyp syntax mean?

久未见 提交于 2019-12-23 20:18:17
问题 I have been digging up chromium code recently, then I found piece of code that I could not understand. File is located at src/media/media.gyp Can someone explain what this line means in plain English? The line I don't understand : '<!@(<(pkg-config) --cflags libpulse)', The code : ['OS!="linux"', { 'sources!': [ 'audio/cras/audio_manager_cras.cc', 'audio/cras/audio_manager_cras.h', 'audio/cras/cras_input.cc', 'audio/cras/cras_input.h', 'audio/cras/cras_unified.cc', 'audio/cras/cras_unified.h'

node-gyp - not finding library headers

这一生的挚爱 提交于 2019-12-23 09:00:37
问题 I'm trying to use a the gstreamer framework in my node addon. I had the following to my to my binding.gyp, but when i run the build command it, the console states that the header is not found. When i compile my gstreamer files outside of node-gyp, it compiles successfully. Does anyone see something wrong with my binding file ? console hello.cc3:25: fatal error: gstreamermm.h: No such file or directory binding.gyp { "targets": [ { "target_name": "addon", "libraries": [ "-lgstreamer-1.0", "-L

how to add path with module to python?

天涯浪子 提交于 2019-12-19 16:16:10
问题 I try to build V8 javascript engine. When I try to invoke the command python build/git_v8 , I get error: File build/gyp_v8, line 48 in < module > import gyp ImportError: No module named GYP How I can tell python where search GYP module and what is the correct path to the module in the folder GYP? My version of python is 2.6.2.2, recommended in build instructions. 回答1: Obviously, the module gyp.py is not in the search path of modules (sys.path). sys.path is an array variable in sys module

how to add path with module to python?

北城余情 提交于 2019-12-19 16:16:05
问题 I try to build V8 javascript engine. When I try to invoke the command python build/git_v8 , I get error: File build/gyp_v8, line 48 in < module > import gyp ImportError: No module named GYP How I can tell python where search GYP module and what is the correct path to the module in the folder GYP? My version of python is 2.6.2.2, recommended in build instructions. 回答1: Obviously, the module gyp.py is not in the search path of modules (sys.path). sys.path is an array variable in sys module

Building modules using node-gyp on Openshift

陌路散爱 提交于 2019-12-07 08:55:12
问题 When trying to build modules that require node-gyp like node-canvas on Openshift I get this error: > canvas@1.2.3 install /var/lib/.../repo/node_modules/canvas > node-gyp rebuild Traceback (most recent call last): File "/opt/rh/v8314/root/usr/bin/gyp", line 15, in <module> import gyp ImportError: No module named gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/opt/rh/nodejs010/root/usr/lib/node_modules/node-gyp/lib

How to build V8 without “external startup data”?

前提是你 提交于 2019-12-06 13:46:04
I want a standalone JavaScript library for embedding. I already build V8 and its working correctly, but binary needs two "external data" files. I don want this files. I was trying to build V8 without "external startup data". I tried to set v8_use_external_startup_data : 0, in build.common.gypi and build/standalone.gypi, but then make is reporting failure at some point. I'm using following code to build v8: git clone https://chromium.googlesource.com/chromium/tool/depot_tools.git export PATH=`pwd`/depot_tools:"$PATH" fetch v8 gclient sync cd v8 git checkout branch-heads/5.1 # ... modifying gyni

Building modules using node-gyp on Openshift

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 12:15:32
When trying to build modules that require node-gyp like node-canvas on Openshift I get this error: > canvas@1.2.3 install /var/lib/.../repo/node_modules/canvas > node-gyp rebuild Traceback (most recent call last): File "/opt/rh/v8314/root/usr/bin/gyp", line 15, in <module> import gyp ImportError: No module named gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/opt/rh/nodejs010/root/usr/lib/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process