[GH-ISSUE #7076] install fail on void linux distro #51003

Closed
opened 2026-04-28 17:47:20 -05:00 by GiteaMirror · 11 comments
Owner

Originally created by @malv-c on GitHub (Oct 2, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7076

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

% curl -fsSL https://ollama.com/install.sh | sh

Installing ollama to /usr/local
Password:
Downloading Linux amd64 bundle
######################################################################## 100.0%
Downloading Linux ROCm amd64 bundle
######################################################################## 100.0%
The Ollama API is now available at 127.0.0.1:11434.
Install complete. Run "ollama" from the command line.
AMD GPU ready.
The Ollama API is now available at 127.0.0.1:11434.
Install complete. Run "ollama" from the command line.
/tmp
% ollama
bash: /usr/local/bin/ollama: cannot execute: required file not found

OS

Linux

GPU

No response

CPU

AMD

Ollama version

none yet

Originally created by @malv-c on GitHub (Oct 2, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7076 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? % curl -fsSL https://ollama.com/install.sh | sh >>> Installing ollama to /usr/local Password: >>> Downloading Linux amd64 bundle ######################################################################## 100.0% >>> Downloading Linux ROCm amd64 bundle ######################################################################## 100.0% >>> The Ollama API is now available at 127.0.0.1:11434. >>> Install complete. Run "ollama" from the command line. >>> AMD GPU ready. >>> The Ollama API is now available at 127.0.0.1:11434. >>> Install complete. Run "ollama" from the command line. /tmp % ollama bash: /usr/local/bin/ollama: cannot execute: required file not found ### OS Linux ### GPU _No response_ ### CPU AMD ### Ollama version none yet
GiteaMirror added the feature requestlinux labels 2026-04-28 17:47:20 -05:00
Author
Owner

@rick-github commented on GitHub (Oct 2, 2024):

Output of:

uname -a
command -v ollama
ls -l /usr/local/bin/ollama
file /usr/local/bin/ollama
ldd /usr/local/bin/ollama
<!-- gh-comment-id:2388021011 --> @rick-github commented on GitHub (Oct 2, 2024): Output of: ``` uname -a command -v ollama ls -l /usr/local/bin/ollama file /usr/local/bin/ollama ldd /usr/local/bin/ollama ```
Author
Owner

@malv-c commented on GitHub (Oct 2, 2024):

% . o
Linux xx 6.6.52_1 #1 SMP PREEMPT_DYNAMIC Sat Sep 21 15:47:36 UTC 2024
x86_64 GNU/Linux
/usr/local/bin/ollama
-rwxr-xr-x 1 root root 1072413336 Sep 25 08:40 /usr/local/bin/ollama
/usr/local/bin/ollama: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2,
BuildID[sha1]=dac65b76638677a1a2d1f98e67b0fe5023723e45, for GNU/Linux
2.6.32, stripped
/lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
Error loading shared library libresolv.so.2: No such file or directory
(needed by /usr/local/bin/ollama)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0x7ff70b600000)
librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7ff70bac7000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
Error relocating /usr/local/bin/ollama: __isnanf: symbol not found
Error relocating /usr/local/bin/ollama: backtrace: symbol not found
Error relocating /usr/local/bin/ollama: __res_search: symbol not found
Error relocating /usr/local/bin/ollama: __isinff: symbol not found
Error relocating /usr/local/bin/ollama: __strdup: symbol not found
Error relocating /usr/local/bin/ollama: backtrace_symbols_fd: symbol not
found
Error relocating /usr/local/bin/ollama: __sched_cpualloc: symbol not found
Error relocating /usr/local/bin/ollama: __sched_cpufree: symbol not found%
. o
Linux xx 6.6.52_1 #1 SMP PREEMPT_DYNAMIC Sat Sep 21 15:47:36 UTC 2024
x86_64 GNU/Linux
/usr/local/bin/ollama
-rwxr-xr-x 1 root root 1072413336 Sep 25 08:40 /usr/local/bin/ollama
/usr/local/bin/ollama: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2,
BuildID[sha1]=dac65b76638677a1a2d1f98e67b0fe5023723e45, for GNU/Linux
2.6.32, stripped
/lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
Error loading shared library libresolv.so.2: No such file or directory
(needed by /usr/local/bin/ollama)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0x7ff70b600000)
librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7ff70bac7000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
Error relocating /usr/local/bin/ollama: __isnanf: symbol not found
Error relocating /usr/local/bin/ollama: backtrace: symbol not found
Error relocating /usr/local/bin/ollama: __res_search: symbol not found
Error relocating /usr/local/bin/ollama: __isinff: symbol not found
Error relocating /usr/local/bin/ollama: __strdup: symbol not found
Error relocating /usr/local/bin/ollama: backtrace_symbols_fd: symbol not
found
Error relocating /usr/local/bin/ollama: __sched_cpualloc: symbol not found
Error relocating /usr/local/bin/ollama: __sched_cpufree: symbol not found%
. o
Linux xx 6.6.52_1 #1 SMP PREEMPT_DYNAMIC Sat Sep 21 15:47:36 UTC 2024
x86_64 GNU/Linux
/usr/local/bin/ollama
-rwxr-xr-x 1 root root 1072413336 Sep 25 08:40 /usr/local/bin/ollama
/usr/local/bin/ollama: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2,
BuildID[sha1]=dac65b76638677a1a2d1f98e67b0fe5023723e45, for GNU/Linux
2.6.32, stripped
/lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
Error loading shared library libresolv.so.2: No such file or directory
(needed by /usr/local/bin/ollama)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0x7ff70b600000)
librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7ff70bac7000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000)
Error relocating /usr/local/bin/ollama: __isnanf: symbol not found
Error relocating /usr/local/bin/ollama: backtrace: symbol not found
Error relocating /usr/local/bin/ollama: __res_search: symbol not found
Error relocating /usr/local/bin/ollama: __isinff: symbol not found
Error relocating /usr/local/bin/ollama: __strdup: symbol not found
Error relocating /usr/local/bin/ollama: backtrace_symbols_fd: symbol not
found
Error relocating /usr/local/bin/ollama: __sched_cpualloc: symbol not found
Error relocating /usr/local/bin/ollama: __sched_cpufree: symbol not found
oops i run a musl os sorry
i will try to build from git

Le mer. 2 oct. 2024 à 11:26, frob @.***> a écrit :

Output of:

uname -a
command -v ollama
ls -l /usr/local/bin/ollama
file /usr/local/bin/ollama
ldd /usr/local/bin/ollama


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/7076#issuecomment-2388021011,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AESIHJICKIKIX4IPHY5FRHLZZO32ZAVCNFSM6AAAAABPHGVMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGAZDCMBRGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2388910832 --> @malv-c commented on GitHub (Oct 2, 2024): % . o Linux xx 6.6.52_1 #1 SMP PREEMPT_DYNAMIC Sat Sep 21 15:47:36 UTC 2024 x86_64 GNU/Linux /usr/local/bin/ollama -rwxr-xr-x 1 root root 1072413336 Sep 25 08:40 /usr/local/bin/ollama /usr/local/bin/ollama: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=dac65b76638677a1a2d1f98e67b0fe5023723e45, for GNU/Linux 2.6.32, stripped /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) Error loading shared library libresolv.so.2: No such file or directory (needed by /usr/local/bin/ollama) libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libstdc++.so.6 => /lib/libstdc++.so.6 (0x7ff70b600000) librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7ff70bac7000) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) Error relocating /usr/local/bin/ollama: __isnanf: symbol not found Error relocating /usr/local/bin/ollama: backtrace: symbol not found Error relocating /usr/local/bin/ollama: __res_search: symbol not found Error relocating /usr/local/bin/ollama: __isinff: symbol not found Error relocating /usr/local/bin/ollama: __strdup: symbol not found Error relocating /usr/local/bin/ollama: backtrace_symbols_fd: symbol not found Error relocating /usr/local/bin/ollama: __sched_cpualloc: symbol not found Error relocating /usr/local/bin/ollama: __sched_cpufree: symbol not found% . o Linux xx 6.6.52_1 #1 SMP PREEMPT_DYNAMIC Sat Sep 21 15:47:36 UTC 2024 x86_64 GNU/Linux /usr/local/bin/ollama -rwxr-xr-x 1 root root 1072413336 Sep 25 08:40 /usr/local/bin/ollama /usr/local/bin/ollama: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=dac65b76638677a1a2d1f98e67b0fe5023723e45, for GNU/Linux 2.6.32, stripped /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) Error loading shared library libresolv.so.2: No such file or directory (needed by /usr/local/bin/ollama) libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libstdc++.so.6 => /lib/libstdc++.so.6 (0x7ff70b600000) librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7ff70bac7000) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) Error relocating /usr/local/bin/ollama: __isnanf: symbol not found Error relocating /usr/local/bin/ollama: backtrace: symbol not found Error relocating /usr/local/bin/ollama: __res_search: symbol not found Error relocating /usr/local/bin/ollama: __isinff: symbol not found Error relocating /usr/local/bin/ollama: __strdup: symbol not found Error relocating /usr/local/bin/ollama: backtrace_symbols_fd: symbol not found Error relocating /usr/local/bin/ollama: __sched_cpualloc: symbol not found Error relocating /usr/local/bin/ollama: __sched_cpufree: symbol not found% . o Linux xx 6.6.52_1 #1 SMP PREEMPT_DYNAMIC Sat Sep 21 15:47:36 UTC 2024 x86_64 GNU/Linux /usr/local/bin/ollama -rwxr-xr-x 1 root root 1072413336 Sep 25 08:40 /usr/local/bin/ollama /usr/local/bin/ollama: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=dac65b76638677a1a2d1f98e67b0fe5023723e45, for GNU/Linux 2.6.32, stripped /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) Error loading shared library libresolv.so.2: No such file or directory (needed by /usr/local/bin/ollama) libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libstdc++.so.6 => /lib/libstdc++.so.6 (0x7ff70b600000) librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7ff70bac7000) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7ff70baea000) Error relocating /usr/local/bin/ollama: __isnanf: symbol not found Error relocating /usr/local/bin/ollama: backtrace: symbol not found Error relocating /usr/local/bin/ollama: __res_search: symbol not found Error relocating /usr/local/bin/ollama: __isinff: symbol not found Error relocating /usr/local/bin/ollama: __strdup: symbol not found Error relocating /usr/local/bin/ollama: backtrace_symbols_fd: symbol not found Error relocating /usr/local/bin/ollama: __sched_cpualloc: symbol not found Error relocating /usr/local/bin/ollama: __sched_cpufree: symbol not found oops i run a musl os sorry i will try to build from git Le mer. 2 oct. 2024 à 11:26, frob ***@***.***> a écrit : > Output of: > > uname -a > command -v ollama > ls -l /usr/local/bin/ollama > file /usr/local/bin/ollama > ldd /usr/local/bin/ollama > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/7076#issuecomment-2388021011>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AESIHJICKIKIX4IPHY5FRHLZZO32ZAVCNFSM6AAAAABPHGVMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGAZDCMBRGE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@dhiltgen commented on GitHub (Oct 2, 2024):

What distro are you running. Is it Alpine by any chance? If so, unfortunately it's unlikely you'll get Ollama to work on Alpine given the incompatible libc implementations between glibc and musl.

<!-- gh-comment-id:2389120692 --> @dhiltgen commented on GitHub (Oct 2, 2024): What distro are you running. Is it Alpine by any chance? If so, unfortunately it's unlikely you'll get Ollama to work on Alpine given the incompatible libc implementations between glibc and musl.
Author
Owner

@malv-c commented on GitHub (Oct 3, 2024):

hi daniel
it is void linux
we will see...

<!-- gh-comment-id:2390606307 --> @malv-c commented on GitHub (Oct 3, 2024): hi daniel it is void linux we will see...
Author
Owner

@dhiltgen commented on GitHub (Oct 3, 2024):

We compile our official binaries against a relatively old base glibc version to try to maximize compatibility, but it appears void linux doesn't have a glibc that has the symbols we're expecting.

I would suggest trying to build from source which may be viable on void linux given it appears Go is supported - https://github.com/ollama/ollama/blob/main/docs/development.md

<!-- gh-comment-id:2391747641 --> @dhiltgen commented on GitHub (Oct 3, 2024): We compile our official binaries against a relatively old base glibc version to try to maximize compatibility, but it appears void linux doesn't have a glibc that has the symbols we're expecting. I would suggest trying to build from source which may be viable on void linux given it appears Go is supported - https://github.com/ollama/ollama/blob/main/docs/development.md
Author
Owner

@malv-c commented on GitHub (Oct 4, 2024):

go.mod 1.22.5 -> 1.23
/tmp/ollama
% go generate ./...

  • set -o pipefail
  • compress_pids=
  • echo 'Starting linux generate script'
    Starting linux generate script
  • '[' -z '' ']'
  • '[' -x /usr/local/cuda/bin/nvcc ']'
    ++ command -v nvcc
  • export CUDACXX=
  • CUDACXX=
  • COMMON_CMAKE_DEFS='-DCMAKE_SKIP_RPATH=on -DBUILD_SHARED_LIBS=on
    -DCMAKE_POSITION_INDEPENDENT_CODE=on -DGGML_NATIVE=off -DGGML_AVX=on
    -DGGML_AVX2=off -DGGML_AVX512=off -DGGML_FMA=off -DGGML_F16C=off
    -DGGML_OPENMP=off'
    ++ dirname ./gen_linux.sh
  • source ./gen_common.sh
  • init_vars
  • case "${GOARCH}" in
  • ARCH=x86_64
  • LLAMACPP_DIR=../llama.cpp
  • CMAKE_DEFS=-DCMAKE_SKIP_RPATH=on
  • CMAKE_TARGETS='--target ollama_llama_server'
  • echo ''
  • grep -- -g
  • CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off
    -DCMAKE_SKIP_RPATH=on'
  • case $(uname -s) in
    ++ uname -s
  • LIB_EXT=so
  • WHOLE_ARCHIVE=-Wl,--whole-archive
  • NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive
  • GCC_ARCH=
  • DIST_BASE=../../dist/linux-amd64/
  • PAYLOAD_BASE=../../build/linux/amd64
  • '[' -z '' ']'
  • CMAKE_CUDA_ARCHITECTURES='50;52;61;70;75;80'
    ++ command -v pigz
    ++ echo gzip
  • GZIP=gzip
  • RUNNER_BASE=../../dist/linux-amd64//lib/ollama/runners
  • git_module_setup
  • '[' -n '' ']'
  • '[' -d ../llama.cpp/gguf ']'
  • git submodule init
    fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
    llm/generate/generate_linux.go:3: running "bash": exit status 128
    /tmp/ollama
    what to change and where ???

Le jeu. 3 oct. 2024 à 17:43, Daniel Hiltgen @.***> a
écrit :

We compile our official binaries against a relatively old base glibc
version to try to maximize compatibility, but it appears void linux doesn't
have a glibc that has the symbols we're expecting.

I would suggest trying to build from source which may be viable on void
linux given it appears Go is supported -
https://github.com/ollama/ollama/blob/main/docs/development.md


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/7076#issuecomment-2391747641,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AESIHJPSX3NKTFJGS4ZJ54TZZVQ27AVCNFSM6AAAAABPHGVMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRG42DONRUGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2393528070 --> @malv-c commented on GitHub (Oct 4, 2024): go.mod 1.22.5 -> 1.23 /tmp/ollama % go generate ./... + set -o pipefail + compress_pids= + echo 'Starting linux generate script' Starting linux generate script + '[' -z '' ']' + '[' -x /usr/local/cuda/bin/nvcc ']' ++ command -v nvcc + export CUDACXX= + CUDACXX= + COMMON_CMAKE_DEFS='-DCMAKE_SKIP_RPATH=on -DBUILD_SHARED_LIBS=on -DCMAKE_POSITION_INDEPENDENT_CODE=on -DGGML_NATIVE=off -DGGML_AVX=on -DGGML_AVX2=off -DGGML_AVX512=off -DGGML_FMA=off -DGGML_F16C=off -DGGML_OPENMP=off' ++ dirname ./gen_linux.sh + source ./gen_common.sh + init_vars + case "${GOARCH}" in + ARCH=x86_64 + LLAMACPP_DIR=../llama.cpp + CMAKE_DEFS=-DCMAKE_SKIP_RPATH=on + CMAKE_TARGETS='--target ollama_llama_server' + echo '' + grep -- -g + CMAKE_DEFS='-DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off -DCMAKE_SKIP_RPATH=on' + case $(uname -s) in ++ uname -s + LIB_EXT=so + WHOLE_ARCHIVE=-Wl,--whole-archive + NO_WHOLE_ARCHIVE=-Wl,--no-whole-archive + GCC_ARCH= + DIST_BASE=../../dist/linux-amd64/ + PAYLOAD_BASE=../../build/linux/amd64 + '[' -z '' ']' + CMAKE_CUDA_ARCHITECTURES='50;52;61;70;75;80' ++ command -v pigz ++ echo gzip + GZIP=gzip + RUNNER_BASE=../../dist/linux-amd64//lib/ollama/runners + git_module_setup + '[' -n '' ']' + '[' -d ../llama.cpp/gguf ']' + git submodule init fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). llm/generate/generate_linux.go:3: running "bash": exit status 128 /tmp/ollama what to change and where ??? Le jeu. 3 oct. 2024 à 17:43, Daniel Hiltgen ***@***.***> a écrit : > We compile our official binaries against a relatively old base glibc > version to try to maximize compatibility, but it appears void linux doesn't > have a glibc that has the symbols we're expecting. > > I would suggest trying to build from source which may be viable on void > linux given it appears Go is supported - > https://github.com/ollama/ollama/blob/main/docs/development.md > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/7076#issuecomment-2391747641>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AESIHJPSX3NKTFJGS4ZJ54TZZVQ27AVCNFSM6AAAAABPHGVMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRG42DONRUGE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@dhiltgen commented on GitHub (Oct 5, 2024):

I believe that failure comes from an old version of git not handling submodules correctly. Try to upgrade to a newer git version.

<!-- gh-comment-id:2395093010 --> @dhiltgen commented on GitHub (Oct 5, 2024): I believe that failure comes from an old version of git not handling submodules correctly. Try to upgrade to a newer git version.
Author
Owner

@malv-c commented on GitHub (Oct 6, 2024):

recloned and same error ......

Le sam. 5 oct. 2024 à 17:29, Daniel Hiltgen @.***> a
écrit :

I believe that failure comes from an old version of git not handling
submodules correctly. Try to upgrade to a newer git version.


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/7076#issuecomment-2395093010,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AESIHJNVBDTL36JPUBJRHMDZ2AAT7AVCNFSM6AAAAABPHGVMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGA4TGMBRGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2395336365 --> @malv-c commented on GitHub (Oct 6, 2024): recloned and same error ...... Le sam. 5 oct. 2024 à 17:29, Daniel Hiltgen ***@***.***> a écrit : > I believe that failure comes from an old version of git not handling > submodules correctly. Try to upgrade to a newer git version. > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/7076#issuecomment-2395093010>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AESIHJNVBDTL36JPUBJRHMDZ2AAT7AVCNFSM6AAAAABPHGVMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGA4TGMBRGA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@rick-github commented on GitHub (Oct 6, 2024):

FWIW, I was able to build ollama in a void container (CPU only).

$ docker pull ghcr.io/void-linux/void-musl-full
$ docker run --rm -it --name void --entrypoint sh ghcr.io/void-linux/void-musl-full
# xbps-install -Sy bash git go gcc cmake make
# git clone https://github.com/ollama/ollama.git && cd ollama
# go generate ./...
# go build .
# ./ollama serve &
# ./ollama run qwen2:0.5b hello
Hello! How can I assist you today? Are you looking for information, advice or assistance with something specific? If so, what would you like to know or find help with?
<!-- gh-comment-id:2395478949 --> @rick-github commented on GitHub (Oct 6, 2024): FWIW, I was able to build ollama in a void container (CPU only). ```console $ docker pull ghcr.io/void-linux/void-musl-full $ docker run --rm -it --name void --entrypoint sh ghcr.io/void-linux/void-musl-full # xbps-install -Sy bash git go gcc cmake make # git clone https://github.com/ollama/ollama.git && cd ollama # go generate ./... # go build . # ./ollama serve & # ./ollama run qwen2:0.5b hello Hello! How can I assist you today? Are you looking for information, advice or assistance with something specific? If so, what would you like to know or find help with? ```
Author
Owner

@malv-c commented on GitHub (Oct 6, 2024):

   it was a bad cp

now

  • echo 'Finished compression'
    Finished compression
    ++ cd ../../build/linux/amd64
    ++ echo cpu cpu_avx cpu_avx2 placeholder
  • echo 'go generate completed. LLM runners: cpu cpu_avx cpu_avx2
    placeholder'
    go generate completed. LLM runners: cpu cpu_avx cpu_avx2 placeholder
    /tmp/ollama
    % go build .
    cmd/interactive.go:4:2: package cmp is not in GOROOT (/usr/src/cmp)
    envconfig/config.go:5:2: package log/slog is not in GOROOT
    (/usr/src/log/slog)
    server/download.go:11:2: package math/rand/v2 is not in GOROOT
    (/usr/src/math/rand/v2)
    gpu/amd_linux.go:13:2: package slices is not in GOROOT (/usr/src/slices)
    /tmp/ollama
    %

Le dim. 6 oct. 2024 à 17:28, frob @.***> a écrit :

FWIW, I was able to build ollama in a void container (CPU only).

$ docker pull ghcr.io/void-linux/void-musl-full
$ docker run --rm -it --name void --entrypoint sh ghcr.io/void-linux/void-musl-full

xbps-install -Sy bash git go gcc cmake make

git clone https://github.com/ollama/ollama.git && cd ollama

go generate ./...

go build .

./ollama serve &

./ollama run qwen2:0.5b helloHello! How can I assist you today? Are you looking for information, advice or assistance with something specific? If so, what would you like to know or find help with?


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/7076#issuecomment-2395478949,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AESIHJINI53LB5OG4OVOG23Z2FJIBAVCNFSM6AAAAABPHGVMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQ3TQOJUHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2395496024 --> @malv-c commented on GitHub (Oct 6, 2024): it was a bad cp now + echo 'Finished compression' Finished compression ++ cd ../../build/linux/amd64 ++ echo cpu cpu_avx cpu_avx2 placeholder + echo 'go generate completed. LLM runners: cpu cpu_avx cpu_avx2 placeholder' go generate completed. LLM runners: cpu cpu_avx cpu_avx2 placeholder /tmp/ollama % go build . cmd/interactive.go:4:2: package cmp is not in GOROOT (/usr/src/cmp) envconfig/config.go:5:2: package log/slog is not in GOROOT (/usr/src/log/slog) server/download.go:11:2: package math/rand/v2 is not in GOROOT (/usr/src/math/rand/v2) gpu/amd_linux.go:13:2: package slices is not in GOROOT (/usr/src/slices) /tmp/ollama % Le dim. 6 oct. 2024 à 17:28, frob ***@***.***> a écrit : > FWIW, I was able to build ollama in a void container (CPU only). > > $ docker pull ghcr.io/void-linux/void-musl-full > $ docker run --rm -it --name void --entrypoint sh ghcr.io/void-linux/void-musl-full > # xbps-install -Sy bash git go gcc cmake make > # git clone https://github.com/ollama/ollama.git && cd ollama > # go generate ./... > # go build . > # ./ollama serve & > # ./ollama run qwen2:0.5b helloHello! How can I assist you today? Are you looking for information, advice or assistance with something specific? If so, what would you like to know or find help with? > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/7076#issuecomment-2395478949>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AESIHJINI53LB5OG4OVOG23Z2FJIBAVCNFSM6AAAAABPHGVMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQ3TQOJUHE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@malv-c commented on GitHub (Oct 7, 2024):

finally i solved the problem
it was a bad go install
sstrip -z ollama and it loose almost 25 % weight
thanks all

<!-- gh-comment-id:2397107830 --> @malv-c commented on GitHub (Oct 7, 2024): finally i solved the problem it was a bad go install sstrip -z ollama and it loose almost 25 % weight thanks all
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#51003