【问题标题】:clang-3.8: command not found in WSL (Windows Subsystem for Linux)clang-3.8:在 WSL(Linux 的 Windows 子系统)中找不到命令
【发布时间】:2020-11-19 18:18:47
【问题描述】:

我使用的是 WSL(Linux 的 Windows 子系统),版本是 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: command not found

我尝试通过 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

【问题讨论】:

    标签: makefile windows-subsystem-for-linux ubuntu-20.04


    【解决方案1】:

    适用于 Ubuntu 20.04 LTS。

    sudo apt update
    sudo apt install clang
    

    并将 Makefile 改写为:

    CC = clang
    

    【讨论】:

      猜你喜欢
      • 2021-11-23
      • 2021-08-30
      • 2019-04-20
      • 2019-05-17
      • 1970-01-01
      • 2021-04-17
      • 2016-11-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多