yanghaojin commited on
Commit
13ef472
·
verified ·
1 Parent(s): 70f2b59

Model card: clear the old unpack directory when upgrading

Browse files

A second version unpacks into the same directory as the first, and macOS kills a process that mixes two builds -- `Killed: 9`, with nothing to say why. The install now clears it, and both that and the PATH case are written out.

Files changed (1) hide show
  1. README.md +15 -3
README.md CHANGED
@@ -57,6 +57,9 @@ the wait is the SSD's, not the model's.
57
  ## Install
58
 
59
  ```bash
 
 
 
60
  curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/releases/latest/download/gbx_lm-darwin-arm64.tar.gz' \
61
  && tar -xzf gbx_lm-darwin-arm64.tar.gz gbx_lm \
62
  && mkdir -p "$HOME/.local/bin" \
@@ -66,9 +69,18 @@ curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/rel
66
  gbx_lm -h
67
  ```
68
 
69
- `command not found` means `$HOME/.local/bin` is not on your `PATH`: add it, or
70
- call the binary by its full path. The build is signed with a Developer ID and
71
- notarised, so macOS runs it without the usual detour for a downloaded binary.
 
 
 
 
 
 
 
 
 
72
 
73
  ## Run
74
 
 
57
  ## Install
58
 
59
  ```bash
60
+ # upgrading? clear the previous version's unpack directory first
61
+ rm -rf ~/.libra/cache/onefile/gbx_lm
62
+
63
  curl -fL -o gbx_lm-darwin-arm64.tar.gz 'https://github.com/GreenBitAI/gbx-lm/releases/latest/download/gbx_lm-darwin-arm64.tar.gz' \
64
  && tar -xzf gbx_lm-darwin-arm64.tar.gz gbx_lm \
65
  && mkdir -p "$HOME/.local/bin" \
 
69
  gbx_lm -h
70
  ```
71
 
72
+ The build is signed with a Developer ID and notarised, so macOS runs it without
73
+ the usual detour for a downloaded binary.
74
+
75
+ **`command not found`** -- `$HOME/.local/bin` is not on your `PATH`:
76
+
77
+ ```bash
78
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc # zsh
79
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bash_profile && source ~/.bash_profile # bash
80
+ ```
81
+
82
+ **`Killed: 9`** -- a previous version's files are still in the unpack directory,
83
+ and macOS refuses to mix two builds. Run the `rm -rf` line above, then try again.
84
 
85
  ## Run
86