[R] RJDBC in Ubuntu

Pascal Oettli kridox at ymail.com
Thu Aug 2 08:03:09 CEST 2012


Hello,

You probably should reconfigure R using:
 > R CMD javareconf

before installing the package you want.

And when you install a package, don't forget the quote.

HTH
Pascal


Le 02/08/2012 14:45, am a écrit :
> Hi,
>
> I'm working with R on Cassandra and need to install RJDBC on my Ubuntu
> virtual machine. The traditional commands (install.packages(RJDBC, dep=TRUE)
> and library(RJDBC)) don't work: they throw an error that they can't find the
> package. I tried installing it using the Rkward GUI, but can't write to any
> of the pre-set directories because of permissions issues. When I try running
> it as root, nothing happens.
>
> I finally tried re-running the install.packages(*'*RJDBC*'*, dep=TRUE)
> command with quotes around RJDBC, and got the following:
>
> Warning in install.packages("RJDBC", dep = TRUE) :
>    argument 'lib' is missing: using
> '/home/bigd/R/x86_64-pc-linux-gnu-library/2.10'
> also installing the dependency ‘rJava’
> trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rJava_0.9-3.tar.gz'
> Content type 'application/x-gzip' length 537153 bytes (524 Kb)
> opened URL
> ==================================================
> downloaded 524 Kb
> trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/RJDBC_0.2-0.tar.gz'
> Content type 'application/x-gzip' length 11178 bytes (10 Kb)
> opened URL
> ==================================================
> downloaded 10 Kb
> The downloaded packages are in
> 	‘/tmp/Rtmp7Pb3wA/downloaded_packages’
> Warning messages:
> 1: In install.packages("RJDBC", dep = TRUE) :
>    installation of package 'rJava' had non-zero exit status
> 2: In install.packages("RJDBC", dep = TRUE) :
>    installation of package 'RJDBC' had non-zero exit status
>
> ...but it's still not working.
>
> Any suggestions? Help would be greatly appreciated.
>
> Sincerely,
> AM
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/RJDBC-in-Ubuntu-tp4638828.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list