[postgis-users] Problems compiling Postgis from source in Ubuntu 9.10
Roger André
randre at gmail.com
Wed Jan 6 14:19:40 PST 2010
Hi All,
- I got the following error when I ran configure:
$ sudo ./configure --with-pgsql=/usr/local/pgsql/bin/pg_config
--with-geos=/usr/local/bin/geos-config --with-proj=/usr/local/
--with-proj-libdir=/usr/local/lib
configure: error: the PGXS Makefile
/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/pgxs.mk cannot be found.
Please install the PostgreSQL server development packages and re-run
configure.
- I didn't see a configure option to specify a path for this, so I created
the missing dir, and put a symbolic link in it that points back to where
pgxs.mk lives:
$ sudo ln -s /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/
pgxs.mk
- The configure passed, but I get a related error when I try to run make:
$ sudo make
<snip>
make -C postgis
make[1]: Entering directory
`/usr/local/postgresql-8.4.2/contrib/postgis-1.4.1/postgis'
/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/pgxs.mk:59:
/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/../../src/Makefile.global: No
such file or directory
/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/pgxs.mk:84:
/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/../../src/Makefile.shlib: No
such file or directory
make[1]: *** No rule to make target
`/usr/lib/postgresql/8.4/lib/pgxs/src/makefiles/../../src/Makefile.shlib'.
Stop.
make[1]: Leaving directory
`/usr/local/postgresql-8.4.2/contrib/postgis-1.4.1/postgis'
make: *** [postgis] Error 2
- Can someone please advise me how to get past this?
Thanks,
Roger
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100106/aeb72e12/attachment.html>
More information about the postgis-users
mailing list