Thread: pg_similarity

pg_similarity

From
janek12@web.de
Date:
<div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div><div><br /> I have some problems to install the
pg_similarityModule. It's my first time to install something like that and I'm a novice in Linux.</div><div>This is the
Introduction:</div><div>tar-zxf pg_similarity-0.0.19.tgz<br /> $ cd pg_similarity-0.0.19<br /> $ $EDITOR Makefile #
editPG_CONFIG iif necessary<br /> $ USE_PGXS=1 make<br /> $ USE_PGXS=1 make install<br /> $ psql -f
SHAREDIR/contrib/pg_similarity.sqlmydb # SHAREDIR is pg_config
--sharedir</div><div> </div><div>link: http://pgsimilarity.projects.pgfoundry.org/</div><div> </div><div>I've been
editingthe file 'Makefile' with my path of the PG_CONFIG: PG_CONFIG = /usr/bin/pg_config.</div><div>But at the next the
error:</div><div>'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 `/usr/lib/postgresql/9.2/lib/pgxs/src/makefiles/pgxs.mk'. Stop.' is
raising.</div><div> </div><div>Idon't know what to do. I count't find another introduction</div><div> </div><div>Janek
Sendrowski</div><div> </div></div>

Re: pg_similarity

From
Pavel Stehule
Date:
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>
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
 
 
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
 

Re: pg_similarity

From
janek12@web.de
Date:
Now the Steps:
$ USE_PGXS=1 make
$ USE_PGXS=1 make install
are working.
But I still don't have the directory 'SHAREDIR/contrib/pg_similarity.sql'
 
Janek Sendrowski
 


Re: pg_similarity

From
janek12@web.de
Date:
Thanks a lot!
Now it's working :)
 
Janek Sendrowksi