I am working on lanchain and had to store data in vector DB. I was following this document to install pgvector on windows and i was setting the PGROOT env variable, but even after setting the env variable by multiple methods the CMD nmake /F Makefile.win install
keep throwing the error
Makefile.win (28): fatal error U1050: PGROOT is not set Stop.
Question posted in PostgreSQL
The official documentation can be found here.
The official documentation can be found here.
2
Answers
A workaround I did that worked for me.
I located
!ifndef PGROOT
in the Makefile.win file in the PGVector folder that I cloned from the git (Link) to be installed and set the variable explicitly like for example:PGROOT = C:Program FilesPostgreSQL16
(my pg version was 16), before the!ifndef PGROOT
line. This is a workaround if you are not able to set the env variable in Windows. I tried setting,[System.Environment]::SetEnvironmentVariable($envVariableName, $envVariableValue, [System.EnvironmentVariableTarget]::User)
as well.i have similar problem too.
I tried this from GIT documentation
GIT run and download pgvector files.
But cmd return this error:
Can you help me please? 🙂