gpt4 book ai didi

makefile - 铛-3.8 : command not found in WSL (Windows Subsystem for Linux)

转载 作者:行者123 更新时间:2023-12-04 09:17:15 24 4
gpt4 key购买 nike

我使用的是 WSL (Windows Subsystem for Linux),版本是 Ubuntu 20.04 LTS。

BUILD_TOOL = \
build_tool.o

CC = clang-3.8

LIBS = ../out/x64/libmbedcrypto.a

all: build_tool


build_tool: $(BUILD_TOOL)
$(CC) $(BUILD_TOOL) $(LIBS) -o build_tool

显示错误:clang-3.8:找不到命令

我已经尝试通过 apt-get 安装它,但没有安装候选项。

$ sudo apt-get install clang-3.8`
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package clang-3.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'clang-3.8' has no installation candidate

最佳答案

可在 Ubuntu 20.04 LTS 中运行。

sudo apt update
sudo apt install clang

并将 Makefile 重写为:

CC = clang

关于makefile - 铛-3.8 : command not found in WSL (Windows Subsystem for Linux),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63165788/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com