Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
699 stars 145 forks source link

Makefile:54: /usr/pgsql-9.5/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory #190

Closed littleWT closed 5 years ago

littleWT commented 6 years ago

when I make multicorn with python2.6 or python3.5 ,it show me the error all the time.

**Makefile:54: /usr/pgsql-9.5/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory make: python2.6-config: Command not found expr: syntax error expr: syntax error Python version is 2.6 make: * No rule to make target `/usr/pgsql-9.5/lib/pgxs/src/makefiles/pgxs.mk'. Stop.

who can tell me how to deal the problem

df7cb commented 6 years ago

Seems you are missing the PostgreSQL and Python -devel packages.

scarroll32 commented 6 years ago

Backup your database, then

sudo apt-get install postgresql-server-dev-all
sudo apt-get install postgresql-common
chenzuoli commented 5 years ago

Backup your database, then

sudo apt-get install postgresql-server-dev-all
sudo apt-get install postgresql-common

i am centos7, how can i do this?

scarroll32 commented 5 years ago

Open a terminal and then type those commands. Because you are using sudo you will need to provide a password.

I also suggest you do some reading on apt-get .... not always good to type in commands from the internet! ... but you can trust me, I promise :-)

caiohamamura commented 5 years ago

What about other systems which do not have the postgresql-server-dev packages to install? I'm using windows and compiled postgresql from source, but can't find pgxs.mk either.

df7cb commented 5 years ago

@caiohamamura: All you need is pg_config, running pg_config --pgxs print the pgxs.mk location.

chenzuoli commented 5 years ago

Backup your database, then

sudo apt-get install postgresql-server-dev-all
sudo apt-get install postgresql-common

i am centos7, how can i do this?

i run : yum install postgresql10-devel then problem solved. if your pgsql version lower then 10 , run : yum install postgresql-devel

galuszkak commented 5 years ago

Closing as @chenzuoli reply is solving the problem.

yasin0824github commented 2 years ago

i'm encounter the same problem,, this is miss some libs for dev environment .you just run the command "yum install postgresql12-devel" node that the number is your psql version.