RPostgres installation

General support questions
Post Reply
business telecoms
Posts: 5
Joined: 2018/09/08 22:51:11

RPostgres installation

Post by business telecoms » 2018/09/08 23:21:45

Hello everybody,
I am on a CENTOS 7 server and I am trying to install a RPostgres package for communication between a postgres 9.6 BDD and the R language.
My postgresql installation is done on the default directory and after I move it to another directory.

The install command for the new package is: sudo R CMD INSTALL RPostgres_1.1.1.tar.gz

And here is the return:

* installing to library ‘/usr/lib64/R/library’
* installing *source* package ‘RPostgres’ ...
** package ‘RPostgres’ correctement décompressé et sommes MD5 vérifiées
Using PKG_CFLAGS=
Using PKG_LIBS=-lpq
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libpq was not found. Try installing:
* deb: libpq-dev (Debian, Ubuntu, etc)
* rpm: postgresql-devel (Fedora, EPEL)
* rpm: postgreql8-devel, psstgresql92-devel, postgresql93-devel, or postgresql94-devel (Amazon Linux)
* csw: postgresql_dev (Solaris)
* brew: libpq (OSX)
If libpq is already installed, check that either:
(i) 'pkg-config' is in your PATH AND PKG_CONFIG_PATH contains
a libpq.pc file; or
(ii) 'pg_config' is in your PATH.
If neither can detect , you can set INCLUDE_DIR
and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘RPostgres’
* removing ‘/usr/lib64/R/library/RPostgres’

For pg_config and pkg-config, their locations are well in the environment's PATH.
Also the postgresql96-devel-9.6.10-1PGDG.rhel7.x86_64, libpqxx-devel-5.0.1-2.rhel7.x86_64 and libpqxx-5.0.1-2.rhel7.x86_64 packages are well installed.

Thanks in advance

User avatar
TrevorH
Forum Moderator
Posts: 23458
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: RPostgres installation

Post by TrevorH » 2018/09/09 00:51:52

Since those are not CentOS postgresql packages and I don't have access to them, what is the output from yum provides '*/libpq*.pc'
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

business telecoms
Posts: 5
Joined: 2018/09/08 22:51:11

Re: RPostgres installation

Post by business telecoms » 2018/09/10 01:08:12

Hello,
This is the output of yum provides '*/libpq*.pc' in my test server.

1:libpqxx-devel-4.0.1-1.el7.x86_64 : Development tools for libpqxx
Dépôt   : epel
Correspondance depuis :
Nom de fichier : /usr/lib64/pkgconfig/libpqxx.pc



1:libpqxx-devel-5.0.1-2.rhel7.x86_64 : Development tools for libpqxx
Dépôt   : pgdg10
Correspondance depuis :
Nom de fichier : /usr/lib64/pkgconfig/libpqxx.pc



mingw32-postgresql-9.3.4-2.el7.noarch : MinGW Windows PostgreSQL library
Dépôt   : epel
Correspondance depuis :
Nom de fichier : /usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpq.pc



mingw64-postgresql-9.3.4-2.el7.noarch : MinGW Windows PostgreSQL library
Dépôt   : epel
Correspondance depuis :
Nom de fichier : /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpq.pc



postgresql10-devel-10.3-1PGDG.rhel7.x86_64 : PostgreSQL development header files and libraries
Dépôt   : pgdg10
Correspondance depuis :
Nom de fichier : /usr/pgsql-10/lib/pkgconfig/libpq.pc



postgresql10-devel-10.4-1PGDG.rhel7.x86_64 : PostgreSQL development header files and libraries
Dépôt   : pgdg10
Correspondance depuis :
Nom de fichier : /usr/pgsql-10/lib/pkgconfig/libpq.pc

business telecoms
Posts: 5
Joined: 2018/09/08 22:51:11

Re: RPostgres installation

Post by business telecoms » 2018/09/10 01:15:29

in my product server :

epel | 3.2 kB 00:00:00
extras | 3.4 kB 00:00:00
pgdg96 | 4.1 kB 00:00:00
updates | 3.4 kB 00:00:00
webtatic | 3.6 kB 00:00:00
(1/4): epel/x86_64/updateinfo | 941 kB 00:00:00
(2/4): epel/x86_64/primary | 3.6 MB 00:00:00
(3/4): webtatic/x86_64/primary_db | 353 kB 00:00:00
(4/4): pgdg96/7/x86_64/primary_db | 198 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.coreix.net
* epel: ftp.cc.uoc.gr
* extras: mirrors.coreix.net
* updates: mirrors.coreix.net
* webtatic: uk.repo.webtatic.com
epel 12672/12672
epel/x86_64/filelists | 10 MB 00:00:01
pgdg96/7/x86_64/filelists_db | 425 kB 00:00:00
updates/7/x86_64/filelists_db | 2.9 MB 00:00:01
webtatic/x86_64/filelists_db | 122 kB 00:00:00
1:libpqxx-devel-4.0.1-0.1.rhel7.x86_64 : Development tools for libpqxx
Dépôt   : pgdg96
Correspondance depuis :
Nom de fichier : /usr/lib64/pkgconfig/libpqxx.pc



1:libpqxx-devel-4.0.1-1.el7.x86_64 : Development tools for libpqxx
Dépôt   : epel
Correspondance depuis :
Nom de fichier : /usr/lib64/pkgconfig/libpqxx.pc



1:libpqxx-devel-5.0.1-2.rhel7.x86_64 : Development tools for libpqxx
Dépôt   : pgdg96
Correspondance depuis :
Nom de fichier : /usr/lib64/pkgconfig/libpqxx.pc



mingw32-postgresql-9.3.4-2.el7.noarch : MinGW Windows PostgreSQL library
Dépôt   : epel
Correspondance depuis :
Nom de fichier : /usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpq.pc



mingw64-postgresql-9.3.4-2.el7.noarch : MinGW Windows PostgreSQL library
Dépôt   : epel
Correspondance depuis :
Nom de fichier : /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpq.pc



postgresql96-devel-9.6.9-1PGDG.rhel7.x86_64 : PostgreSQL development header files and libraries
Dépôt   : pgdg96
Correspondance depuis :
Nom de fichier : /usr/pgsql-9.6/lib/pkgconfig/libpq.pc



postgresql96-devel-9.6.10-1PGDG.rhel7.x86_64 : PostgreSQL development header files and libraries
Dépôt   : pgdg96
Correspondance depuis :
Nom de fichier : /usr/pgsql-9.6/lib/pkgconfig/libpq.pc



1:libpqxx-devel-5.0.1-2.rhel7.x86_64 : Development tools for libpqxx
Dépôt   : @pgdg96
Correspondance depuis :
Nom de fichier : /usr/lib64/pkgconfig/libpqxx.pc



postgresql96-devel-9.6.10-1PGDG.rhel7.x86_64 : PostgreSQL development header files and libraries
Dépôt   : @pgdg96
Correspondance depuis :
Nom de fichier : /usr/pgsql-9.6/lib/pkgconfig/libpq.pc

business telecoms
Posts: 5
Joined: 2018/09/08 22:51:11

Re: RPostgres installation

Post by business telecoms » 2018/09/13 01:03:39

Any idea ?

hunter86_bg
Posts: 1317
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: RPostgres installation

Post by hunter86_bg » 2018/09/13 21:58:57

Try to install the epel package:

Code: Select all

yum install libpqxx-devel-4.0.1-1.el7.x86_64
and try again.

business telecoms
Posts: 5
Joined: 2018/09/08 22:51:11

Re: RPostgres installation

Post by business telecoms » 2018/09/14 23:38:32

hello,
libpqxx-devel-4.0.1-1.el7.x86_64 is installed.

hunter86_bg
Posts: 1317
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: RPostgres installation

Post by hunter86_bg » 2018/09/15 06:53:05

And what happened with the rpostgres installation?

Post Reply