安装' RPostgreSQL'时出错包

时间:2016-02-04 12:56:41

标签: r

我正在尝试在R 3.1.2版上安装PostgreSQL包。在Linux上运行。

我收到以下错误...

Installing package into ‘/usr/lib64/R/library’ (as ‘lib’ is unspecified) trying URL 'http://cran.cnr.berkeley.edu/src/contrib/RPostgreSQL_0.4.tar.gz' Content type 'application/x-gzip' length 477352 bytes (466 Kb) opened URL



==================================================
downloaded 466 Kb

* installing *source* package ‘RPostgreSQL’ ...
** package ‘RPostgreSQL’ successfully unpacked and MD5 sums checked
sh: ./configure: /bin/sh: bad interpreter: Permission denied
ERROR: configuration failed for package ‘RPostgreSQL’
* removing ‘/usr/lib64/R/library/RPostgreSQL’

> The downloaded source packages are in
>         ‘/tmp/RtmpANw7OS/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning
> message: In install.packages("RPostgreSQL") :   installation of here`package ‘RPostgreSQL’ had non-zero exit status

有关如何解决此问题的任何想法?

1 个答案:

答案 0 :(得分:0)

这看起来很奇怪:

  

./configure: /bin/sh: bad interpreter: Permission denied

你的/bin/sh是不正常还是状况不佳?当您(手动)解压缩源并运行./configure

时会发生什么