【问题标题】:How to install http-parser package in Ubuntu如何在 Ubuntu 中安装 http-parser 包
【发布时间】:2018-03-17 15:00:00
【问题描述】:

我正在尝试在 Ubuntu 中安装这个 http-parser,但在他们的 github 上找不到正确的方法:

https://github.com/nodejs/http-parser

你能指教一下吗?

【问题讨论】:

  • 可以使用Makefile安装

标签: ubuntu command-line


【解决方案1】:

这些说明应该适用于任何最近的 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

由于我已经安装了很多软件包,因此可能会遗漏一些东西,请随时通知我任何编译问题。

【讨论】:

  • 非常感谢!我应该在 make 命令之前执行 ./configure 吗?我没有git,我可以下载并解压缩吗?如果每个 repo 都可以在 read me 中默认包含“fork”基本安装过程,那就太好了
  • @Ilan:我已经测试了上面的过程,./configure 不需要(实际上它根本不存在)。下载 current latest release 作为替代安装 git 并继续。请注意,您无法避免安装 build-essential,除非它们已经存在于您的系统中。
  • 我认为进展顺利
  • @Ilan:很高兴知道。快乐的黑客:)
猜你喜欢
  • 1970-01-01
  • 2018-04-14
  • 2013-05-05
  • 1970-01-01
  • 2019-04-18
  • 2012-12-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多