我有安装了 R (3.1.1) 和 RStudioServer (0.98.1062) 的 RHEL 6.5 服务器
我安装了 postgresql-9.3 并处理了一个大型数据库。为了将 R 连接到 PostgreSQL,我过去使用过 RPostgreSQL(仍然在我的 CentOS 7 工作站上使用)。但是,尝试在 RHEL 6.5 下编译时出现错误
In file included from RS-PQescape.c:7:
RS-PostgreSQL.h:23:26: error: libpq-fe.h: No such file or directory
该文件位于我的系统上:
/usr/pgsql-9.3/include/libpq-fe.h
Libpq 是 Postgres 安装的一部分,但 RPostgreSQL 找不到它:
[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 在哪里看(符号链接?)或其他一些解决方法?这应该很简单,但我已经在这上面浪费了几个小时......