pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: sok82 (@sok82) <noreply+sok82@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #651: Unable to install pg_vector on Mac for PostgresSQL15
Date: Wed, 21 Aug 2024 16:27:28 +0000
Message-ID: <gh-pgvector-pgvector-651@github.com> (raw)

Hi, guys
I'm struggling to install pgvector extension on my Mac for PostgreSQL 15

Default method proposed here - https://github.com/pgvector/pgvector?tab=readme-ov-file#linux-and-mac doest' seem to work for me

When I'm trying to build it from sources
```
make CC='/usr/bin/clang'
```

I get
```
/usr/bin/clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /opt/anaconda3/include -fdebug-prefix-map=/var/folders/c_/qfmhj66j0tn016nkx_th4hxm0000gp/T/abs_10_q74d0xa/croot/postgresql-split_1706214368759/work=/usr/local/src/conda/postgresql-split-12.17 -fdebug-prefix-map=/opt/anaconda3=/usr/local/src/conda-prefix -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math  -bundle -o vector.so src/bitutils.o src/bitvec.o src/halfutils.o src/halfvec.o src/hnsw.o src/hnswbuild.o src/hnswinsert.o src/hnswscan.o src/hnswutils.o src/hnswvacuum.o src/ivfbuild.o src/ivfflat.o src/ivfinsert.o src/ivfkmeans.o src/ivfscan.o src/ivfutils.o src/ivfvacuum.o src/sparsevec.o src/vector.o -L/opt/anaconda3/lib  -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/opt/anaconda3/lib -L/opt/anaconda3/lib  -L/opt/anaconda3/lib -Wl,-dead_strip_dylibs   -bundle_loader /opt/anaconda3/bin/postgres
ld: file not found: /opt/anaconda3/bin/postgres
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [vector.so] Error 1
```

and zero ideas how to fix it.

Why it tries to search for postgres in anaconda?

ANy ideas about a fix?

My postgres installation is stand-alone and has nothing to do with conda...

Actually any method of installing pgvector would be great, building form source is just a default


view thread (3+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-651@github.com>
Permalink:  ../gh-pgvector-pgvector-651@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox