[GH-ISSUE #133] build issue server/routes.go:70:20: undefined: llama.New #47

Closed
opened 2026-04-12 09:34:48 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @nona00 on GitHub (Jul 20, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/133

I'm not able to build from git source:

root@debian:~/Downloads/ollama# go build .

github.com/jmorganca/ollama/server

server/routes.go:70:20: undefined: llama.New

root@debian:~/Downloads/ollama# cat /etc/debian_version
12.0

root@debian:~/Downloads/ollama# go version
go version go1.20.6 linux/amd64

Originally created by @nona00 on GitHub (Jul 20, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/133 I'm not able to build from git source: root@debian:~/Downloads/ollama# go build . # github.com/jmorganca/ollama/server server/routes.go:70:20: undefined: llama.New root@debian:~/Downloads/ollama# cat /etc/debian_version 12.0 root@debian:~/Downloads/ollama# go version go version go1.20.6 linux/amd64
GiteaMirror added the linuxbug labels 2026-04-12 09:34:48 -05:00
Author
Owner

@jmorganca commented on GitHub (Jul 20, 2023):

Hi @nona00

We'll look into why this is happening!

In the meantime, try running with:

CGO_ENABLED=1 go build .
<!-- gh-comment-id:1643019415 --> @jmorganca commented on GitHub (Jul 20, 2023): Hi @nona00 We'll look into why this is happening! In the meantime, try running with: ``` CGO_ENABLED=1 go build . ```
Author
Owner

@nona00 commented on GitHub (Jul 20, 2023):

Thank you very much, with this command I was able to build successfully.

<!-- gh-comment-id:1643585102 --> @nona00 commented on GitHub (Jul 20, 2023): Thank you very much, with this command I was able to build successfully.
Author
Owner

@BruceMacD commented on GitHub (Jul 21, 2023):

Related, and also resolved:
https://github.com/jmorganca/ollama/issues/158

<!-- gh-comment-id:1646196122 --> @BruceMacD commented on GitHub (Jul 21, 2023): Related, and also resolved: https://github.com/jmorganca/ollama/issues/158
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47