Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing pre-compiled extension #181

Open
punkish opened this issue Jan 20, 2025 · 0 comments
Open

Problem installing pre-compiled extension #181

punkish opened this issue Jan 20, 2025 · 0 comments

Comments

@punkish
Copy link
Contributor

punkish commented Jan 20, 2025

  1. Yolo → literally, nothing happens
$ curl -L https://github.com/asg017/sqlite-vec/releases/download/latest/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9  100     9    0     0     32      0 --:--:-- --:--:-- --:--:--    32
sh: line 1: Not: command not found
  1. Ok lets play it safe → install.sh is empty
$ curl -o install.sh -L https://github.com/asg017/sqlite-vec/releases/download/latest/install.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9  100     9    0     0     53      0 --:--:-- --:--:-- --:--:--    53
$ cat install.sh 
Not Found%                          
  1. Download a specific install.sh and run it (note -LO flags are required) → checksum fails
$ curl -LO https://github.com/asg017/sqlite-vec/releases/download/v0.1.6/install.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  7419  100  7419    0     0   8724      0 --:--:-- --:--:-- --:--:--     0
$ cat install.sh
#!/bin/sh
set -e

if [ -n "$NO_COLOR" ]; then
    BOLD=""
    RESET=""
else
    BOLD="\033[1m"
    RESET="\033[0m"
fi
… a lot more script …
$ chmod +x install.sh
$ ./install.sh
Type: loadable
Target: macos-aarch64
Prefix: /Users/punkish/Projects/zai
################################################################################################## 100.0%
usage: sha256sum [-bctwz] [files ...]
Checksum fail!

What am I missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant