英文:
n-install: ERROR: GNU Make not found, which is required for operation
问题
尝试在WSL(Ubuntu 22.04.2 LTS)上使用third-party-installers安装n
时出现以下错误:
lindu@LAPTOP-C8AFGSGK:~$ sudo curl -L https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 161 100 161 0 0 373 0 --:--:-- --:--:-- --:--:-- 373
100 43367 100 43367 0 0 45308 0 --:--:-- --:--:-- --:--:-- 112k
n-install: ERROR:
GNU Make not found, which is required for operation.
On FreeBSD and PC-BSD, for instance, you can download it with `sudo pkg install gmake`.
然后尝试运行错误消息中的命令,但出现以下错误:
~$ sudo pkg install gmake
sudo: pkg: command not found
如何解决这个问题?
英文:
Try to install n
using third-party-installers on WSL (ubuntu 22.04.2 LTS). Got the below error:
lindu@LAPTOP-C8AFGSGK:~$ sudo curl -L https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 161 100 161 0 0 373 0 --:--:-- --:--:-- --:--:-- 373
100 43367 100 43367 0 0 45308 0 --:--:-- --:--:-- --:--:-- 112k
n-install: ERROR:
GNU Make not found, which is required for operation.
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:
~$ sudo pkg install gmake
sudo: pkg: command not found
How to solve this?
答案1
得分: 1
根据n-install的文档,需要安装make
。
> 支持的平台和先决条件
>
> 在n支持的平台中,任何具有以下特性的类Unix平台都受支持:
>
> * bash
> * curl
> * git
> * GNU make
在ubuntu/ubuntu-wsl上,可以执行以下命令来安装所需的依赖项
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
sudo apt-get install git curl make bash
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论