Thread: troubble with contrib compile

troubble with contrib compile

From
marcelo Cortez
Date:
 hi all


 i downloaded  postgres8.2.4 sources , expand and
./configure and install with success.
Now i need one module from contrib directory ,
fuzzystrmatch

 cd /postgres/contrib/fuzzymatchstr [ ok ]
 make

 throws

 make
Makefile:15: ../../src/Makefile.global: No such file
or directory
Makefile:16: /contrib/contrib-global.mk: No such file
or directory
make: *** No rule to make target
`/contrib/contrib-global.mk'.  Stop.

i'm wrong?
any clue?

best regards
 mdc

more data : ( from select version() ).

"PostgreSQL 8.2.4 on i686-pc-linux-gnu, compiled by
GCC gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)"








__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas


Re: troubble with contrib compile

From
Tom Lane
Date:
marcelo Cortez <jmdc_marcelo@yahoo.com.ar> writes:
>  i downloaded  postgres8.2.4 sources , expand and
> ./configure and install with success.
> Now i need one module from contrib directory ,
> fuzzystrmatch
>  cd /postgres/contrib/fuzzymatchstr [ ok ]
>  make
>  throws

>  make
> Makefile:15: ../../src/Makefile.global: No such file
> or directory

You seem to have removed the results of configure.  As a general rule
it's best to build the contrib modules in the same tree where you just
built the Postgres core --- they definitely need configure's outputs
and I think some of them require other files that get built along the
way.

If you are trying to match a previously built core system, be sure to
re-configure with the exact same configure options, else the contrib
modules may not work.  pg_config --configure will help refresh your
memory if you forgot what you used ...

            regards, tom lane

Re: troubble with contrib compile

From
marcelo Cortez
Date:
Tom

 Thanks works fine!
 best regards
 mdc
--- Tom Lane <tgl@sss.pgh.pa.us> escribió:

> marcelo Cortez <jmdc_marcelo@yahoo.com.ar> writes:
> >  i downloaded  postgres8.2.4 sources , expand and
> > ./configure and install with success.
> > Now i need one module from contrib directory ,
> > fuzzystrmatch
> >  cd /postgres/contrib/fuzzymatchstr [ ok ]
> >  make
> >  throws
>
> >  make
> > Makefile:15: ../../src/Makefile.global: No such
> file
> > or directory
>
> You seem to have removed the results of configure.
> As a general rule
> it's best to build the contrib modules in the same
> tree where you just
> built the Postgres core --- they definitely need
> configure's outputs
> and I think some of them require other files that
> get built along the
> way.
>
> If you are trying to match a previously built core
> system, be sure to
> re-configure with the exact same configure options,
> else the contrib
> modules may not work.  pg_config --configure will
> help refresh your
> memory if you forgot what you used ...
>
>             regards, tom lane
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: explain analyze is your friend
>







__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas