在RHEL 6.5 libpq-fe.h上安装RPostgreSQL错误 [英] Install RPostgreSQL on RHEL 6.5 libpq-fe.h Error

查看:333
本文介绍了在RHEL 6.5 libpq-fe.h上安装RPostgreSQL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有RHEL 6.5服务器,安装了R(3.1.1)& RStudioServer(0.98.1062)

I have RHEL 6.5 Server with an installation of R (3.1.1) & RStudioServer (0.98.1062)

我已经安装了postgresql-9.3,并且正在处理大型数据库.为了将R连接到PostgreSQL,我过去曾经使用过RPostgreSQL(仍然在我的CentOS 7工作站上使用).但是,尝试在RHEL 6.5下进行编译时出现错误

I have postgresql-9.3 installed and handling a large database. In order to connect R to PostgreSQL, I have in the past used the RPostgreSQL (still do on my CentOS 7 Workstation). However, attempting to compile under RHEL 6.5 I get an error

In file included from RS-PQescape.c:7:
RS-PostgreSQL.h:23:26: error: libpq-fe.h: No such file or directory

该文件位于我的系统上,位于此处:

The file is located on my system here:

/usr/pgsql-9.3/include/libpq-fe.h

Libpq是Postgres安装的一部分,但是RPostgreSQL找不到它:

Libpq is part of the Postgres installation, but RPostgreSQL cannot find it:

[root@server /]# yum list libpq*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Installed Packages
libpqxx.x86_64     1:4.0.1-1.rhel6                                               @pgdg93
libpqxx-debuginfo.x86_64     1:4.0.1-1.rhel6                                     @pgdg93
libpqxx-devel.x86_64   1:4.0.1-1.rhel6                                           @pgdg93

有没有办法告诉RPostgreSQL在哪里看(符号链接?)或其他解决方法?这应该很简单,但是我已经在此上浪费了几个小时...

Is there any way to tell RPostgreSQL where to look (symbolic links?) or some other workaround? This should be simple, but I've wasted several hours on this already...

推荐答案

跟进信息,因为我遇到了同样的问题.
安装yum install postgresql-devel也可以解决该错误.

Followup info because I just had the same problem.
Installing yum install postgresql-devel resolves the error too.

这篇关于在RHEL 6.5 libpq-fe.h上安装RPostgreSQL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆