【已解决】编译安装thrift报错
Tofloor
poster avatar
imic07
deepin
2020-09-10 22:17
Author
本帖最后由 imic07 于 2020-9-16 19:42 编辑

大家好,我编译安装thrift-0.13.0 (http://thrift.apache.org/)的时候,make报错如下,有没有遇到类似问题的帮看下:
  1. 1416 verbose stack Error: utf-8-validate@4.0.2 install: `prebuild-install || node-gyp rebuild`
  2. 1416 verbose stack Exit status 1
  3. 1416 verbose stack     at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
  4. 1416 verbose stack     at EventEmitter.emit (events.js:314:20)
  5. 1416 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
  6. 1416 verbose stack     at ChildProcess.emit (events.js:314:20)
  7. 1416 verbose stack     at maybeClose (internal/child_process.js:1047:16)
  8. 1416 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
  9. 1417 verbose pkgid utf-8-validate@4.0.2
  10. 1418 verbose cwd /home/imic/data/app/thrift-0.13.0/lib/nodejs
  11. 1419 verbose Linux 5.4.50-amd64-desktop
  12. 1420 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "../../"
  13. 1421 verbose node v14.10.0
  14. 1422 verbose npm  v6.14.8
  15. 1423 error code ELIFECYCLE
  16. 1424 error errno 1
  17. 1425 error utf-8-validate@4.0.2 install: `prebuild-install || node-gyp rebuild`
  18. 1425 error Exit status 1
  19. 1426 error Failed at the utf-8-validate@4.0.2 install script.
  20. 1426 error This is probably not a problem with npm. There is likely additional logging output above.
  21. 1427 verbose exit [ 1, true ]
Copy the Code


Reply Favorite View the author
All Replies
juteman
deepin
2020-09-10 23:59
#1
虽然我不知道thrift是什么
但是我注意到, 你的node版本是
verbose node v14.10.0

你的node 版本很高。

我查了一下发布时间
Node v14.10.0 (Current)
by Richard Lau, 2020-09-08
也就是前天发布的。

stackover flow上所有指向
  1. ../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'                                             
  2.       val->To ## TYPE
Copy the Code

的错误最后的解决方案大多都是版本不兼容的问题

所以建议你使用stable 版的node
Reply View the author
imic07
deepin
2020-09-11 05:29
#2
juteman 发表于 2020-9-10 15:59
虽然我不知道thrift是什么
但是我注意到, 你的node版本是
verbose node v14.10.0

更换12.x版本的node一样的问题
Reply View the author
imic07
deepin
2020-09-11 21:14
#3
应该还是nodejs问题
./configure --with-python --with-java --without-nodejs
make
sudo make install
就可以
Reply View the author