Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Community
Technology
Technology Q&A
[Ubuntu] - Permission denied when compiling C++
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MayoMayn" data-source="post: 432426" data-attributes="member: 71840"><p>I need to install a NPM dependency that is using C++ bindings for Node</p><p>After some research, it seemed like the permission got denied was because my storage was mounted with <strong>noexec</strong> flag, but after remounting them without the flag it sadly didn't fix the error.</p><p></p><p>[code]</p><p>Exit code: 1</p><p>Command: sh</p><p>Arguments: -c node-gyp rebuild</p><p>Directory: /home/sentinel/Git/Titan/node_modules/pcre2</p><p>Output:</p><p>gyp info it worked if it ends with ok</p><p>gyp info using node-gyp@3.6.2</p><p>gyp info using node@9.11.1 | linux | x64</p><p>gyp info spawn /usr/bin/python2</p><p>gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',</p><p>gyp info spawn args 'binding.gyp',</p><p>gyp info spawn args '-f',</p><p>gyp info spawn args 'make',</p><p>gyp info spawn args '-I',</p><p>gyp info spawn args '/home/sentinel/Git/Titan/node_modules/pcre2/build/config.gypi',</p><p>gyp info spawn args '-I',</p><p>gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',</p><p>gyp info spawn args '-I',</p><p>gyp info spawn args '/home/sentinel/.node-gyp/9.11.1/include/node/common.gypi',</p><p>gyp info spawn args '-Dlibrary=shared_library',</p><p>gyp info spawn args '-Dvisibility=default',</p><p>gyp info spawn args '-Dnode_root_dir=/home/sentinel/.node-gyp/9.11.1',</p><p>gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',</p><p>gyp info spawn args '-Dnode_lib_file=/home/sentinel/.node-gyp/9.11.1/<(target_arch)/node.lib',</p><p>gyp info spawn args '-Dmodule_root_dir=/home/sentinel/Git/Titan/node_modules/pcre2',</p><p>gyp info spawn args '-Dnode_engine=v8',</p><p>gyp info spawn args '--depth=.',</p><p>gyp info spawn args '--no-parallel',</p><p>gyp info spawn args '--generator-output',</p><p>gyp info spawn args 'build',</p><p>gyp info spawn args '-Goutput_dir=.' ]</p><p>gyp info spawn make</p><p>gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]</p><p>make: Entering directory '/home/sentinel/Git/Titan/node_modules/pcre2/build'</p><p> ACTION Building PCRE2 library... .</p><p>/bin/sh: 1: eval: ./compile: Permission denied</p><p>pcre2.target.mk:13: recipe for target '.' failed</p><p>make: *** [.] Error 126</p><p>make: Leaving directory '/home/sentinel/Git/Titan/node_modules/pcre2/build'</p><p>gyp ERR! build error</p><p>gyp ERR! stack Error: `make` failed with exit code: 2</p><p>gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)</p><p>gyp ERR! stack at ChildProcess.emit (events.js:180:13)</p><p>gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)</p><p>gyp ERR! System Linux 4.13.0-38-generic</p><p>gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"</p><p>gyp ERR! cwd /home/sentinel/Git/Titan/node_modules/pcre2</p><p>gyp ERR! node -v v9.11.1</p><p>gyp ERR! node-gyp -v v3.6.2</p><p>[/code]</p><p></p><p>[CODE]</p><p>sentinel@sentinel-AX370-Gaming-K7:~/Downloads/node-pcre2-master$ ./compile</p><p>./compile: 7: ./compile: ./configure: Permission denied</p><p>gmake all-am</p><p>gmake[1]: Entering directory '/home/sentinel/Downloads/node-pcre2-master/deps/pcre2'</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="MayoMayn, post: 432426, member: 71840"] I need to install a NPM dependency that is using C++ bindings for Node After some research, it seemed like the permission got denied was because my storage was mounted with [B]noexec[/B] flag, but after remounting them without the flag it sadly didn't fix the error. [code] Exit code: 1 Command: sh Arguments: -c node-gyp rebuild Directory: /home/sentinel/Git/Titan/node_modules/pcre2 Output: gyp info it worked if it ends with ok gyp info using node-gyp@3.6.2 gyp info using node@9.11.1 | linux | x64 gyp info spawn /usr/bin/python2 gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/home/sentinel/Git/Titan/node_modules/pcre2/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/sentinel/.node-gyp/9.11.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/sentinel/.node-gyp/9.11.1', gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/sentinel/.node-gyp/9.11.1/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/home/sentinel/Git/Titan/node_modules/pcre2', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/home/sentinel/Git/Titan/node_modules/pcre2/build' ACTION Building PCRE2 library... . /bin/sh: 1: eval: ./compile: Permission denied pcre2.target.mk:13: recipe for target '.' failed make: *** [.] Error 126 make: Leaving directory '/home/sentinel/Git/Titan/node_modules/pcre2/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:258:23) gyp ERR! stack at ChildProcess.emit (events.js:180:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) gyp ERR! System Linux 4.13.0-38-generic gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" gyp ERR! cwd /home/sentinel/Git/Titan/node_modules/pcre2 gyp ERR! node -v v9.11.1 gyp ERR! node-gyp -v v3.6.2 [/code] [CODE] sentinel@sentinel-AX370-Gaming-K7:~/Downloads/node-pcre2-master$ ./compile ./compile: 7: ./compile: ./configure: Permission denied gmake all-am gmake[1]: Entering directory '/home/sentinel/Downloads/node-pcre2-master/deps/pcre2' [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Community
Technology
Technology Q&A
[Ubuntu] - Permission denied when compiling C++
Top