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