yanghaojin commited on
Commit
51f2e7f
·
verified ·
1 Parent(s): ed2abcf

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