pg_similarity

Started by Janek Sendrowskiover 12 years ago2 messagesgeneral
Jump to latest
#1Janek Sendrowski
janek12@web.de

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div><br/>
I have some problems to install the pg_similarity Module. It&#39;s my first time to install something like that and I&#39;m a&nbsp;novice in Linux.</div>

<div>This is the Introduction:</div>

<div>tar -zxf pg_similarity-0.0.19.tgz<br/>
&#36; cd pg_similarity-0.0.19<br/>
&#36; &#36;EDITOR Makefile # edit PG_CONFIG iif necessary<br/>
&#36; USE_PGXS=1 make<br/>
&#36; USE_PGXS=1 make install<br/>
&#36; psql -f SHAREDIR/contrib/pg_similarity.sql mydb # SHAREDIR is pg_config --sharedir</div>

<div>&nbsp;</div>

<div>link:&nbsp;http://pgsimilarity.projects.pgfoundry.org/&lt;/div&gt;

<div>&nbsp;</div>

<div>I&#39; ve been editing the file &#39;Makefile&#39; with my path of the PG_CONFIG: PG_CONFIG = /usr/bin/pg_config.</div>

<div>But at the next the error:</div>

<div>&#39;Makefile:14: /usr/lib/postgresql/9.2/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory<br/>
make: *** No rule to make target &#96;/usr/lib/postgresql/9.2/lib/pgxs/src/makefiles/pgxs.mk&#39;. Stop.&#39; is raising.</div>

<div>&nbsp;</div>

<div>I don&#39;t know what to do. I count&#39;t find another introduction</div>

<div>&nbsp;</div>

<div>Janek Sendrowski</div>

<div>&nbsp;</div></div></body></html>

#2Pavel Stehule
pavel.stehule@gmail.com
In reply to: Janek Sendrowski (#1)
Re: pg_similarity

Hello

you are missing some from basic packages on your system probably

postgresql-devel.i686 : PostgreSQL development header files and libraries
postgresql-server.i686 : The programs needed to create and run a PostgreSQL

Regards

Pavel Stehule

2013/10/7 <janek12@web.de>

Show quoted text

Hi,

I have some problems to install the pg_similarity Module. It's my first
time to install something like that and I'm a novice in Linux.
This is the Introduction:
tar -zxf pg_similarity-0.0.19.tgz
$ cd pg_similarity-0.0.19
$ $EDITOR Makefile # edit PG_CONFIG iif necessary
$ USE_PGXS=1 make
$ USE_PGXS=1 make install
$ psql -f SHAREDIR/contrib/pg_similarity.sql mydb # SHAREDIR is pg_config
--sharedir

link: http://pgsimilarity.projects.pgfoundry.org/

I' ve been editing the file 'Makefile' with my path of the PG_CONFIG:
PG_CONFIG = /usr/bin/pg_config.
But at the next the error:
'Makefile:14: /usr/lib/postgresql/9.2/lib/pgxs/src/makefiles/pgxs.mk: No
such file or directory
make: *** No rule to make target
`/usr/lib/postgresql/9.2/lib/pgxs/src/makefiles/pgxs.mk'. Stop.' is
raising.

I don't know what to do. I count't find another introduction

Janek Sendrowski