Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on Fedora 29 #12

Open
tomchiverton opened this issue Feb 13, 2019 · 2 comments
Open

Fails on Fedora 29 #12

tomchiverton opened this issue Feb 13, 2019 · 2 comments

Comments

@tomchiverton
Copy link

[falken@bookcase rpm_install]$ ./01_install_rocm_fedora_29.sh 
Preparing to set up ROCm requirements. You must be root/sudo for this.
Last metadata expiration check: 0:00:30 ago on Wed 13 Feb 2019 22:52:49 GMT.
No match for argument: kernel-headers-4.20.5-200.fc29.x86_64
Package kernel-devel-4.20.5-200.fc29.x86_64 is already installed.
Package wget-1.20.1-1.fc29.x86_64 is already installed.
Package bzip2-1.0.6-28.fc29.x86_64 is already installed.
Error: Unable to find a match
"sudo dnf install -y dkms kernel-headers-`uname -r` kernel-devel-`uname -r` wget bzip2" command failed with exit code 1.
$ dnf search kernel-header
Last metadata expiration check: 0:07:52 ago on Wed 13 Feb 2019 22:54:26 GMT.
========================================================================== Name Matched: kernel-header ===========================================================================
kernel-headers.x86_64 : Header files for the Linux kernel for use by glibc
[falken@bookcase rpm_install]$ 
@hyc3z
Copy link

hyc3z commented Mar 23, 2019

Have you tried to find kernel-headers for kernel 4.20 on rpmfind? You can just download the rpm and re-run the script.

@dtrudg
Copy link

dtrudg commented Jun 7, 2019

You can edit the file that is installing the kernel-devel package according to this diff to fix this issue:

diff --git a/distro_install_scripts/Fedora/common/rpm_install_rocm.sh b/distro_install_scripts/Fedora/common/rpm_install_rocm.sh
index b023767..d87b267 100755
--- a/distro_install_scripts/Fedora/common/rpm_install_rocm.sh
+++ b/distro_install_scripts/Fedora/common/rpm_install_rocm.sh
@@ -28,7 +28,7 @@ source "$BASE_DIR/common/common_options.sh"
 parse_args "$@"
 
 echo "Preparing to set up ROCm requirements. You must be root/sudo for this."
-sudo dnf install -y dkms kernel-headers-`uname -r` kernel-devel-`uname -r` wget bzip2
+sudo dnf install -y dkms "kernel-devel-uname-r == $(uname -r)" "kernel-devel-uname-r == $(uname -r)" wget bzip2
 
 # 2.0.0 is an old release, so the deb packages have moved over to an archive
 # tarball. Let's set up a local repo to allow us to do the install here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants