在CentOS云上构建Nadium-native失败

时间:2019-10-17 16:09:52

标签: linux gcc npm centos7

我已经安装了节点10.16.3。我没有root访问权限。 npm安装钠本机。

我已经在本地帐户gcc 7.3.0中安装了LD_LIBRARY_PATH和LD_RUN_PATH到本地gcc的位置。但是,我仍然收到以下错误。我是否需要为节点或钠包传递参数才能使用gcc 7.3.0。 这是一个具有gcc 4.4的CENTOS本地帐户。

CXX(target) Release/obj.target/sodium/binding.o
cc1plus: error: unrecognized command line option "-std=gnu++1y"
make: *** [Release/obj.target/sodium/binding.o] Error 1
make: Leaving directory /home/mylocal/api/node_modules/sodium-native/build' gyp ERR! build error gyp ERR! stack Error: make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/emedappc/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 2.6.32-954.3.5.lve1.4.59.el6.x86_64
gyp ERR! command "/home/mylocal/.nvm/versions/node/v10.16.3/bin/node" "/home/mylocal/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mylocal/api/node_modules/sodium-native
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

我从当前的“ gcc”等开始,但后来我安装了节点,并在本地更新了“ npm”。在本地使用“ gcc”(我无法更改全局库),因此将导出“ LD_LIBRARY_PATH”设置为“ gcc”。我仍然认为该节点未使用我安装的本地“ gcc”

0 个答案:

没有答案