其实初衷是想在alma中使用vllm。
但是安装编译时提示出错,因为alma中是安装的gcc8.4,所以要想办法解决这个问题。
1、此版本不能再使用crb了,这个已经弃用了,使用powertools。
bash
dnf config-manager --set-enabled powertools
2、尝试安装
bash
dnf install gcc-toolset-13-gcc gcc-toolset-13-gcc-c++
3、激活环境
bash
scl enable gcc-toolset-13 bash
4、版本已经正确了
bash
(base) [root@localhost yum.repos.d]# gcc --version
gcc (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5、登录生效
bash
echo "source /opt/rh/gcc-toolset-13/enable" >> ~/.bashrc
source ~/.bashrc
6、安装vllm
bash
pip install vllm