我正在尝试一个简单的命令 sudo yum install SDL2
。我知道这个包根据 SDL 网站存在:
Red Hat-based systems (including Fedora) can simply do "sudo yum install SDL2" to get the library installed system-wide, or "sudo yum install SDL2-devel" to get headers and other build requirements ready for compiling your own SDL programs.
但是,当我尝试执行我的命令时,我得到以下信息:
Setting up Install Process
No package SDL2 available.
Error: Nothing to do
我使用的是 Red Hat Enterprise Linux Server 5.3 (Tikanga)。我怎样才能让 yum 找到这个包?
最佳答案
只有 SDL 在 redhat 5.3 上可用
uname -r
2.6.32-573.12.1.el6.centos.plus.x86_64
yum search sdl-devel --verbose
SDL-devel.x86_64 : Files needed to develop Simple DirectMedia Layer applications
Repo : base
对于 Fedora 26,SDL2 在 repo fedora 中可用
uname -r
4.11.0-2.fc26.x86_64
dnf --disablerepo="*" --enablerepo="fedora" search sdl2-devel --verbose
SDL2-devel.x86_64 : Files needed to develop Simple DirectMedia Layer applications
Repo : fedora
关于linux - yum 找不到我要安装的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45202649/