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
|
|
|
|
|
|
|
```
|
2023-07-17 20:16:59 -04:00
|
|
|
brew install go
|
2023-06-27 13:46:46 -04:00
|
|
|
```
|
|
|
|
|
2023-07-21 16:36:36 -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.
|
|
|
|
|
2023-07-17 20:16:59 -04:00
|
|
|
Then build ollama:
|
2023-06-27 13:46:46 -04:00
|
|
|
|
|
|
|
```
|
2023-07-17 20:16:59 -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
|
|
|
```
|