Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install sqldf on Linux

Tags:

r

sqldf

I'm running R version 2.14.1 on Linux. When I try to install sqldf with

install.packages(sqldf, dependencies=TRUE)

I get the following errors: (these errors result in running the command from the terminal as with the use of the Rcmdr UI)

open log here

I can't seem to find someone with a similar problem. If I run the install command on a Windows PC, it installs without any problems.

like image 709
Max van der Heijden Avatar asked Feb 03 '26 13:02

Max van der Heijden


1 Answers

You error log has the line:

In file included from RS-PQescape.c:7:0:
RS-PostgreSQL.h:23:26: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
make: *** [RS-PQescape.o] Error 1

Try installing the libpq-dev package for your particular linux distribution.


As an aside, when you get an error like this, it's fairly clear that libpq-fe.h is missing. Just type libpq-fe.h ubuntu into google to see what package you need to install.

like image 137
csgillespie Avatar answered Feb 06 '26 03:02

csgillespie