Experimental_ROC icon indicating copy to clipboard operation
Experimental_ROC copied to clipboard

Fails on Fedora 29

Open tomchiverton opened this issue 6 years ago • 2 comments

[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]$ 

tomchiverton avatar Feb 13 '19 23:02 tomchiverton

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

hyc3z avatar Mar 23 '19 05:03 hyc3z

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.

dtrudg avatar Jun 07 '19 15:06 dtrudg