我正在尝试在 Ubuntu 中安装这个 http-parser,但在他们的 github 上找不到正确的方法:
https://github.com/nodejs/http-parser
能请教一下吗?
最佳答案
这些说明适用于任何最新的 Ubuntu 环境 (YMMV):
# install git, gcc and make (among the others)
sudo apt install git build-essential
# go to your home and clone the latest version of the project there
cd && git clone https://github.com/nodejs/http-parser
# go inside the project directory, compile and install with superuser privileges
cd http-parser && make && sudo make install
因为我已经安装了很多包,所以可能会遗漏一些东西,请让我了解任何编译问题。
关于ubuntu - 如何在 Ubuntu 中安装 http-parser 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49338303/