Provavelmente você precisa definir --with-pgsql=/usr/lib/postgresql/9.1
Como você instalou o servidor postgresql? Usando repositório ou de fontes?
Por outro lado, este problema pode ocorrer enquanto você está perdendo o pg_config (que, o .configure está procurando)
Por favor, execute which pg_config
e, se estiver faltando, instale pacakges adicionais
sudo apt-get install libpq-dev
Se isso não ajudar você, tente mover / copiar / vincular /usr/bin/pg_config
para /usr/lib/postgresql/9.1/bin/.
Então provavelmente
configure: error: Could not find your wxWidgets installation. You might need to use the --with-wx=DIR configure option
erro irá ocorrer.
Corrigir com
apt-get install libwxgtk2.8-dev libwxgtk2.8-dbg
O próximo é configure: error: Could not find your libxml2 installation. You might need to use the --with-libxml2=DIR configure option
Corrigir - apt-get install libxml2-dev
Mais uma vez - configure: error: Could not find your libxslt installation. You might need to use the --with-libxslt=DIR configure option
Corrigir - apt-get install libxslt1-dev
Depois disso, o make falha
gcc -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -I../pgadmin/include -I/usr/include /postgresql -I/usr/include/postgresql/9.1/server -I/usr/include/postgresql -DSSL -DHAVE_CONNINFO_PARSE -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DEMBED_XRC -I/usr/include/libxml2 -I/usr/include/libxml2 -O2 -MT keywords.o -MD -MP -MF .deps/keywords.Tpo -c -o keywords.o 'test -f './db/keywords.c' || echo './''./db/keywords.c
./db/keywords.c:33:27: fatal error: parser/kwlist.h: Nie ma takiego pliku ani katalogu compilation terminated. make[3]: *** [keywords.o]
Błąd 1 make[3]: Opuszczenie katalogu '/home/pkieszcz/pgadmin3-1.14.3/pgadmin' make[2]: *** [all] Błąd 2
make[2]: Opuszczenie katalogu '/home/pkieszcz/pgadmin3-1.14.3/pgadmin'
make[1]: *** [all-recursive] Błąd 1 make[1]: Opuszczenie katalogu
'/home/pkieszcz/pgadmin3-1.14.3' make: *** [all] Błąd 2
Crie uma pasta de analisadores e envie esse arquivo aqui - link
Então finalmente - make and make install correu bem.
TL, DR;
apt-get install libxslt1-dev libxml2-dev libwxgtk2.8-dev libwxgtk2.8-dbg libpq-dev
cp /usr/bin/pg_config /usr/lib/postgresql/9.1/bin/.
./configure
mkdir parser
cd parser
wget http://www.markmcfadden.net/files/kwlist.h
make
make install