[GH-ISSUE #1373] Configuring/building from git cloned repo does not produce an ollama executable. #26485

Closed
opened 2026-04-22 02:46:50 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @phalexo on GitHub (Dec 4, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1373

Following the instructions in README.md file

go generate ./...
go build .

does not seem to end with an ollama executable code in the folder.

I am missing something? How does one build it and then install it?

From "go build ." I get the stuff below. Nothing has been changed in the code.

../go/pkg/mod/github.com/gin-contrib/cors@v1.4.0/config.go:7:2: //go:build comment without // +build comment
../go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:23:2: //go:build comment without // +build comment
../go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/binding/form_mapping.go:15:2: //go:build comment without // +build comment
../go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/binding/form_mapping.go:16:2: //go:build comment without // +build comment
../go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:24:2: //go:build comment without // +build comment
cmd/cmd.go:34:2: //go:build comment without // +build comment
../go/pkg/mod/golang.org/x/crypto@v0.14.0/ssh/kex.go:19:2: //go:build comment without // +build comment
server/images.go:22:2: //go:build comment without // +build comment

Originally created by @phalexo on GitHub (Dec 4, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1373 Following the instructions in README.md file go generate ./... go build . does not seem to end with an ollama executable code in the folder. I am missing something? How does one build it and then install it? From "go build ." I get the stuff below. Nothing has been changed in the code. ../go/pkg/mod/github.com/gin-contrib/cors@v1.4.0/config.go:7:2: //go:build comment without // +build comment ../go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:23:2: //go:build comment without // +build comment ../go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/binding/form_mapping.go:15:2: //go:build comment without // +build comment ../go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/binding/form_mapping.go:16:2: //go:build comment without // +build comment ../go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:24:2: //go:build comment without // +build comment cmd/cmd.go:34:2: //go:build comment without // +build comment ../go/pkg/mod/golang.org/x/crypto@v0.14.0/ssh/kex.go:19:2: //go:build comment without // +build comment server/images.go:22:2: //go:build comment without // +build comment
Author
Owner

@phalexo commented on GitHub (Dec 4, 2023):

Go version problem.

<!-- gh-comment-id:1839010501 --> @phalexo commented on GitHub (Dec 4, 2023): Go version problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#26485