ubuntu - 如何在 Ubuntu 中安装 http-parser 包

标签 ubuntu command-line

我正在尝试在 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/

相关文章:

linux - 如何在 Ubuntu 终端中创建文件,指定内容?

perl -a : How to change column separator?

linux - 创建复杂 linux 命令的 bash 脚本

command-line - 如何在没有根目录的情况下将文件和目录添加到 zip 文件?

c# - 尝试使用 aspnet_compiler 从命令行构建和发布 Asp.net 网站

node.js - docker build 在 npm install 上失败,原因 : connect ECONNREFUSED 104. 16.17.35:443

linux - Ubuntu caffe安装报错:/usr/bin/ld: cannot find -lcudnn

ruby - 带有 Ubuntu 初始化脚本的 unicorn 服务器

linux - 读取 INI 文件 perl 中的新格式

json - 使用 jq 有条件地修改对象属性