[英]How to install RPostgreSQL on Windows
(How) is it possible to install RPostgreSQL on a Windows XP machine (running R 2.12.1) without admin-rights? (如何)在没有admin-rights的情况下在Windows XP机器上运行RPostgreSQL(运行R 2.12.1)?
(Btw. this post is a follow-up to this post: RpgSQL - Why is it so slow? ) (顺便说一句。这篇文章是这篇文章的后续内容: RpgSQL - 为什么这么慢? )
[edit] [编辑]
What I tried yet: 我还尝试了什么:
First I tried to find a documentation on how to install RPostgreSQL on Windows. 首先,我试图找到有关如何在Windows上安装RPostgreSQL的文档。 I didn't succeed (I could only find a documentation for MacOS here ).
我没有成功(我只能在这里找到MacOS的文档)。
After that I tried a naive solution: 之后我尝试了一个天真的解决方案:
install.packages('RPostgreSQL', type='source')
Didn't actually work (I can give you the error message later, at the moment R is busy). 实际上没有工作(我可以稍后给你错误信息,此时R正忙)。
I'm sure there are more possibilities like compiling the source by hand, but I haven't done this before with R packages, so I didn't try it yet. 我确信有更多的可能性,比如手工编译源代码,但我之前没有使用R软件包,所以我还没有尝试过。
You will need Rtools and Postgres installed on your machine to be able to build RPostgreSQL from source, and unfortunately Windows binaries are not available. 您需要在您的计算机上安装Rtools和Postgres才能从源代码构建RPostgreSQL,遗憾的是Windows二进制文件不可用。
Another option is to try RJDBC , see here . 另一个选择是尝试RJDBC ,请看这里 。 You will only need to find the RJDBC Postgres driver jar somewhere.
你只需要在某个地方找到RJDBC Postgres驱动程序罐。 You don't need to install that jar, just put it in a directory somewhere and give RJDBC the right path.
您不需要安装该jar,只需将其放在某个目录中,并为RJDBC提供正确的路径。
Only question is how fast this solution will be, please inform us when you got it working. 唯一的问题是这个解决方案的速度有多快,请在工作时通知我们。
Edit: As mentioned in the comments, RpgSQL uses RJDBC, so using the latter will most likely not result in any speed up (unless RpgSQL introduces a bottleneck somewhere). 编辑:正如评论中提到的,RpgSQL使用RJDBC,因此使用后者很可能不会导致任何加速(除非RpgSQL在某处引入了瓶颈)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.