27 lines
291 B
Markdown
27 lines
291 B
Markdown
# Development
|
|
|
|
Install required tools:
|
|
|
|
```
|
|
brew install go
|
|
```
|
|
|
|
Enable CGO:
|
|
|
|
```
|
|
export CGO_ENABLED=1
|
|
```
|
|
|
|
You will also need a C/C++ compiler such as GCC for MacOS and Linux or Mingw-w64 GCC for Windows.
|
|
|
|
Then build ollama:
|
|
|
|
```
|
|
go build .
|
|
```
|
|
|
|
Now you can run `ollama`:
|
|
|
|
```
|
|
./ollama
|
|
```
|