Cannot find PGXS for Postgresql 8.4 on Ubuntu
Asked Answered
L

1

7

I am trying to install the contrib/unaccent package for Postgresql 8.4 on my Ubuntu box. But I got the error message when I typed make:

/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory

Apparently PGXS is Postgresql's infrastructure for installing extensions, but I could not find the file pgxs.mk at all on my ubuntu box.

Following some leads on the Internet, I tried installing libpq-dev. Nonetheless, I couldn't find any pgxs.mk even after installing libpq-dev.

What's really frustrating is that I can't even find an example of pgxs.mk anywhere on the Internet. How do I install the PGXS infrastructure?

Led answered 11/9, 2011 at 5:46 Comment(1)
Check the answer here: #21146779Crat
L
17

Probably you need to install postgresql-server-dev-8.4 package, which contains your missing makefile:

/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/pgxs.mk
Lyons answered 11/9, 2011 at 14:51 Comment(1)
I confirm that this worked with Ubuntu maverick ( 10.10 ) i686.Nasia

© 2022 - 2024 — McMap. All rights reserved.