pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feed[pgvector/pgvector] issue #789: Make error when installing on mac M1
6+ messages / 2 participants
[nested] [flat]
* [pgvector/pgvector] issue #789: Make error when installing on mac M1
@ 2025-02-28 06:46 "quangnt183 (@quangnt183)" <noreply+quangnt183@github.com>
0 siblings, 0 replies; 6+ messages in thread
From: quangnt183 (@quangnt183) @ 2025-02-28 06:46 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hello, I am trying to install pgvector for Postgres version 17 on my mac M1, but I've got the error below:
......
_work_mem", referenced from:
_hnswbeginscan in hnswscan.o
_ivfflatbeginscan in ivfscan.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [vector.so] Error 1
Please help me on it, thanks!
^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #789: Make error when installing on mac M1
@ 2025-02-28 06:51 ` "ankane (@ankane)" <noreply+ankane@github.com>
4 siblings, 0 replies; 6+ messages in thread
From: ankane (@ankane) @ 2025-02-28 06:51 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hi @quangnt183, please paste the full output of all of the installation commands (with any personal info removed).
^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #789: Make error when installing on mac M1
@ 2025-02-28 06:53 ` "quangnt183 (@quangnt183)" <noreply+quangnt183@github.com>
4 siblings, 0 replies; 6+ messages in thread
From: quangnt183 (@quangnt183) @ 2025-02-28 06:53 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
thank you Ankane, here is the logs:
make
clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -Wno-cast-function-type-strict -O2 -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/usr/local/lib/postgresql@14 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -L/usr/local/opt/openssl@3/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/lz4/lib -Wl,-dead_strip_dylibs -bundle_loader /usr/local/Cellar/postgresql@14/14.17/bin/postgres
ld: warning: ignoring file '/usr/local/Cellar/postgresql@14/14.17/bin/postgres': found architecture 'x86_64', required architecture 'arm64'
Undefined symbols for architecture arm64:
"_AllocSetContextCreateInternal", referenced from:
_InitBuildState in hnswbuild.o
_hnswinsert in hnswinsert.o
_hnswbeginscan in hnswscan.o
_hnswbulkdelete in hnswvacuum.o
_InitBuildState in ivfbuild.o
_ivfflatinsert in ivfinsert.o
_IvfflatKmeans in ivfkmeans.o
....
there are many logs here.
....
"_work_mem", referenced from:
_hnswbeginscan in hnswscan.o
_ivfflatbeginscan in ivfscan.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [vector.so] Error 1
^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #789: Make error when installing on mac M1
@ 2025-02-28 07:01 ` "ankane (@ankane)" <noreply+ankane@github.com>
4 siblings, 0 replies; 6+ messages in thread
From: ankane (@ankane) @ 2025-02-28 07:01 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
It looks like you have an x86-64 Postgres installation on an arm64 machine. You'll want to use a Postgres installation that matches the same architecture as your machine (when not cross-compiling).
^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #789: Make error when installing on mac M1
@ 2025-02-28 07:01 ` "ankane (@ankane)" <noreply+ankane@github.com>
4 siblings, 0 replies; 6+ messages in thread
From: ankane (@ankane) @ 2025-02-28 07:01 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane closed this.
^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #789: Make error when installing on mac M1
@ 2025-02-28 07:20 ` "quangnt183 (@quangnt183)" <noreply+quangnt183@github.com>
4 siblings, 0 replies; 6+ messages in thread
From: quangnt183 (@quangnt183) @ 2025-02-28 07:20 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Thank you, after setting the PG_CONFIG to the right version of Postgres, I was successfully installed pgvector.
^ permalink raw [nested|flat] 6+ messages in thread
end of thread, other threads:[~2025-02-28 07:20 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-02-28 06:46 [pgvector/pgvector] issue #789: Make error when installing on mac M1 "quangnt183 (@quangnt183)" <noreply+quangnt183@github.com>
2025-02-28 06:51 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-02-28 06:53 ` "quangnt183 (@quangnt183)" <noreply+quangnt183@github.com>
2025-02-28 07:01 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-02-28 07:01 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-02-28 07:20 ` "quangnt183 (@quangnt183)" <noreply+quangnt183@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