简体   繁体   中英

Unable to install sqldf on Linux

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.

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.

Installed libpq-dev, MySQL, reinstalled JAVA and updated R to the latest version. SQLdf is now working like a charm. Thanks for the heads up everybody.

我几乎做了你所拥有的,但在交互式 R 终端中使用“sqldf”,一切正常

install.packages("sqldf", dependencies=TRUE)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM