Skip to content

Commit 800224e

Browse files
committed
Only execute this if /run/ramalama exists
Using this script to install llama.cpp and whisper.cpp bare metal on a bootc system, the build stops executing here: + ln -sf /usr/bin/podman-remote /usr/bin/podman + python3 -m pip install /run/ramalama --prefix=/usr ERROR: Invalid requirement: '/run/ramalama': Expected package name at the start of dependency specifier /run/ramalama ^ Hint: It looks like a path. File '/run/ramalama' does not exist. Error: building at STEP "RUN chmod a+rx /usr/bin/build_llama_and_whisper.sh && build_llama_and_whisper.sh "rocm"": while running runtime: exit status 1 Signed-off-by: Eric Curtin <[email protected]>
1 parent f1668ae commit 800224e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

container-images/scripts/build_llama_and_whisper.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ clone_and_build_llama_cpp() {
255255
install_ramalama() {
256256
# link podman-remote to podman for use by RamaLama
257257
ln -sf /usr/bin/podman-remote /usr/bin/podman
258-
python3 -m pip install /run/ramalama --prefix="$1"
258+
if [ -e "/run/ramalama" ]; then
259+
python3 -m pip install /run/ramalama --prefix="$1"
260+
fi
259261
}
260262

261263
main() {

0 commit comments

Comments
 (0)