On Sat, Apr 02, 2005 at 07:35:40PM +1000, Kim Kohen wrote:
>
> Kim-Kohens-Computer:~/Desktop/postgresql-8.0.1/contrib/tsearch2 kim$ make
> Makefile:31: ../../src/Makefile.global: No such file or directory
> Makefile:32: /contrib/contrib-global.mk: No such file or directory
> make: *** No rule to make target `/contrib/contrib-global.mk'. Stop.
It looks like you haven't run configure in the top-level PostgreSQL
directory. Do that and then try building tsearch2 again.
Some modules support the Extension Building Infrastructure (PGXS)
described in the "C-Language Functions" section of the documentation
so you can build the module without a PostgreSQL source tree. However,
it looks like tsearch2 is only partially PGXS-ized:
% gmake USE_PGXS=1
...
gmake -C snowball SUBSYS.o
gmake[1]: Entering directory `/path/to/pgsql/contrib/tsearch2/snowball'
Makefile:5: ../../../src/Makefile.global: No such file or directory
Makefile:20: /contrib/contrib-global.mk: No such file or directory
gmake[1]: *** No rule to make target `/contrib/contrib-global.mk'. Stop.
gmake[1]: Leaving directory `/path/to/pgsql/contrib/tsearch2/snowball'
gmake: *** [snowball-recursive] Error 2
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/