首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >node.js osmesa-webgl安装错误

node.js osmesa-webgl安装错误
EN

Stack Overflow用户
提问于 2015-08-28 09:15:21
回答 1查看 162关注 0票数 0

在npm安装osmesa之后,我得到了这个错误。在安装过程中,一切看起来都很好(编译和创建库)。等等)。在这个错误之后,所有的东西都被删除了,所以我无法分析文件。这是控制台的堆栈。

代码语言:javascript
复制
In file included from /root/.node-gyp/0.12.7/src/node.h:61:0,
             from ../src/common.h:11,
             from ../src/webgl.h:11,
             from ../src/bindings.cc:9: 
/root/.node-gyp/0.12.7/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                     ^
/root/.node-gyp/0.12.7/deps/v8/include/v8.h:2012:25: note:   candidate expects 2 arguments, 1 provided
webgl.target.mk:90: recipe for target 'Release/obj.target/webgl
src/bindings.o' failed
make: *** [Release/obj.target/webgl/src/bindings.o] Error 1
make: Leaving directory '/var/www/trider/render/node_modules/osmesa-webgl/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.16.0-4-amd64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/trider/render/node_modules/osmesa-webgl
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "osmesa-webgl"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-08-29 19:13:07

该模块只适用于Node 0.10 --您有错误的版本。

我这里有一个包含更新的分叉:https://github.com/fixplz/osmesa-webgl

(但是dev依赖项仍然不能用于0.12)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32267482

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档