search

Home  >  Q&A  >  body text

node.js - 源码包运行nodejs运行报错

直接从Nodejs官网下载的源码包

解压以后进入源码包,然后执行./Node -v报了如下的错误,不知道怎么解决,请大神指导一下

大家讲道理大家讲道理2875 days ago424

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-17 16:12:45

    Thanks for the invitation, but I'm not familiar with Linux, so I'm afraid I can't be of much help.
    Generally speaking, downloading the source code package and compiling it requires environment (library) support, so if you don’t have the relevant library, you will definitely get an error.
    If you just want to use Node, it is recommended that you use the binary package directly, or install Node through the package management tool of the Linux system (such as yum)

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 16:12:45

    apt-get instal build-essential

    reply
    0
  • Cancelreply