n-install: 错误: 找不到所需的 GNU Make 用于操作。

huangapple go评论86阅读模式
英文:

n-install: ERROR: GNU Make not found, which is required for operation

问题

尝试在WSL(Ubuntu 22.04.2 LTS)上使用third-party-installers安装n时出现以下错误:

  1. lindu@LAPTOP-C8AFGSGK:~$ sudo curl -L https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash
  2. % Total % Received % Xferd Average Speed Time Time Time Current
  3. Dload Upload Total Spent Left Speed
  4. 100 161 100 161 0 0 373 0 --:--:-- --:--:-- --:--:-- 373
  5. 100 43367 100 43367 0 0 45308 0 --:--:-- --:--:-- --:--:-- 112k
  6. n-install: ERROR:
  7. GNU Make not found, which is required for operation.
  8. On FreeBSD and PC-BSD, for instance, you can download it with `sudo pkg install gmake`.

然后尝试运行错误消息中的命令,但出现以下错误:

  1. ~$ sudo pkg install gmake
  2. sudo: pkg: command not found

如何解决这个问题?

英文:

Try to install n using third-party-installers on WSL (ubuntu 22.04.2 LTS). Got the below error:

  1. lindu@LAPTOP-C8AFGSGK:~$ sudo curl -L https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash
  2. % Total % Received % Xferd Average Speed Time Time Time Current
  3. Dload Upload Total Spent Left Speed
  4. 100 161 100 161 0 0 373 0 --:--:-- --:--:-- --:--:-- 373
  5. 100 43367 100 43367 0 0 45308 0 --:--:-- --:--:-- --:--:-- 112k
  6. n-install: ERROR:
  7. GNU Make not found, which is required for operation.
  8. On FreeBSD and PC-BSD, for instance, you can download it with `sudo pkg install gmake`.

And try to run the command from the error message, but got the error:

  1. ~$ sudo pkg install gmake
  2. sudo: pkg: command not found

How to solve this?

答案1

得分: 1

根据n-install的文档,需要安装make

> 支持的平台和先决条件
>
> 在n支持的平台中,任何具有以下特性的类Unix平台都受支持:
>
> * bash
> * curl
> * git
> * GNU make

在ubuntu/ubuntu-wsl上,可以执行以下命令来安装所需的依赖项

  1. sudo apt-get install git curl make bash
英文:

According to the documentation for n-install, make needs to be installed.

> Supported platforms and prerequisites
>
>Among the platforms supported by n, any Unix-like platform with the following is supported:
>
> * bash
> * curl
> * git
> * GNU make

On ubuntu/ubuntu-wsl, the following can be executed to install the required dependencies

  1. sudo apt-get install git curl make bash

huangapple
  • 本文由 发表于 2023年6月15日 16:09:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76480391.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定