Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing RPostgreSQL on Linux

When I try on linux in R

install.packages('RPostgreSQL')

it fails with unspecified errors:

  Warning message:
  In install.packages("RPostgreSQL") :
     installation of package ‘RPostgreSQL’ had non-zero exit status

I tried to solve problem with:

 sudo apt-get install postgresql-server-dev-8.4 for postgresql version 8.4.

but it doesn't seems to work.

    sudo: apt-get: command not found

I have PostgreSQL 9.1.11 version.

like image 873
Marta Avatar asked Mar 05 '14 15:03

Marta


People also ask

How install PostgreSQL offline Linux?

Red Hat Enterprise Linux 7 Go to https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-7-x86_64/ and download the specified version of the following packages: postgresql12-libs. postgresql12. postgresql12-server.


1 Answers

Read the configure log.

You most likely "merely" forgot to read the README and DESCRIPTION and other documentation telling you to do

sudo apt-get install libpq-dev

We develop this on, inter alia, Debian/Ubuntu systems so can be more than sure that it works there.

like image 68
Dirk Eddelbuettel Avatar answered Sep 21 '22 22:09

Dirk Eddelbuettel