ollama/docs/development.md

28 lines
291 B
Markdown
Raw Normal View History

2023-06-27 13:46:46 -04:00
# Development
2023-07-07 12:59:24 -04:00
Install required tools:
2023-06-27 13:46:46 -04:00
```
brew install go
2023-06-27 13:46:46 -04:00
```
Enable CGO:
```
export CGO_ENABLED=1
```
2023-07-24 12:43:53 -04:00
You will also need a C/C++ compiler such as GCC for MacOS and Linux or Mingw-w64 GCC for Windows.
Then build ollama:
2023-06-27 13:46:46 -04:00
```
go build .
2023-06-27 13:46:46 -04:00
```
2023-07-07 12:59:24 -04:00
Now you can run `ollama`:
2023-06-27 13:46:46 -04:00
```
2023-07-07 12:59:24 -04:00
./ollama
2023-06-27 13:46:46 -04:00
```