Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
a2b21013
Unverified
Commit
a2b21013
authored
Sep 27, 2023
by
Bruce MacDonald
Committed by
GitHub
Sep 27, 2023
Browse files
fedora install fixes (#609)
parent
ed20837f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
scripts/install.sh
scripts/install.sh
+3
-2
No files found.
scripts/install.sh
View file @
a2b21013
...
@@ -216,12 +216,13 @@ fi
...
@@ -216,12 +216,13 @@ fi
if
!
lsmod |
grep
-q
nvidia
;
then
if
!
lsmod |
grep
-q
nvidia
;
then
KERNEL_RELEASE
=
"
$(
uname
-r
)
"
KERNEL_RELEASE
=
"
$(
uname
-r
)
"
case
$OS_NAME
in
case
$OS_NAME
in
centos|rhel|rocky|fedora|amzn
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel-
$KERNEL_RELEASE
kernel-headers-
$KERNEL_RELEASE
;;
centos|rhel|rocky|amzn
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel-
$KERNEL_RELEASE
kernel-headers-
$KERNEL_RELEASE
;;
fedora
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel-
$KERNEL_RELEASE
;;
debian|ubuntu
)
$SUDO
apt-get
-y
install
linux-headers-
$KERNEL_RELEASE
;;
debian|ubuntu
)
$SUDO
apt-get
-y
install
linux-headers-
$KERNEL_RELEASE
;;
*
)
exit
;;
*
)
exit
;;
esac
esac
NVIDIA_CUDA_VERSION
=
$(
$SUDO
dkms status |
awk
-F
:
'/added/ { print $1 }'
)
NVIDIA_CUDA_VERSION
=
$(
$SUDO
dkms status |
awk
-F
:
'/
nvidia|
added/ { print $1 }'
)
if
[
-n
"
$NVIDIA_CUDA_VERSION
"
]
;
then
if
[
-n
"
$NVIDIA_CUDA_VERSION
"
]
;
then
$SUDO
dkms
install
$NVIDIA_CUDA_VERSION
$SUDO
dkms
install
$NVIDIA_CUDA_VERSION
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment