/opt/rh/llvm-toolset-7/root/usr/bin/clang: Command not found

os: centos 7.4

解决方法如下

# yum -y install centos-release-scl centos-release-scl-rh;
yum -y install scl-utils scl-utils-build;
yum -y install llvm-toolset-7;

# scl --list
devtoolset-7
llvm-toolset-7

# scl enable llvm-toolset-7 bash

# source /opt/rh/llvm-toolset-7/enable 

# lldb -version
lldb version 5.0.1

# which clang
/opt/rh/llvm-toolset-7/root/usr/bin/clang

# clang --version                   
clang version 5.0.1 (tags/RELEASE_501/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rh/llvm-toolset-7/root/usr/bin

clang version 5.0.1 (tags/RELEASE_501/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rh/llvm-toolset-7/root/usr/bin

发布了710 篇原创文章 · 获赞 70 · 访问量 49万+

猜你喜欢

转载自blog.csdn.net/ctypyb2002/article/details/103594839