R 安装包问题

待解决

install.packages("rJava")
trying URL 'http://cran.rstudio.com/src/contrib/rJava_0.9-4.tar.gz'
Content type 'application/x-gzip' length 498108 bytes (486 Kb)
opened URL
==================================================
downloaded 486 Kb

* installing *source* package ‘rJava’ ...
** package ‘rJava’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
configure: checking whether gcc -std=gnu99 supports static inline...
yes
checking whether setjmp.h is POSIX.1 compatible... yes
checking whether sigsetjmp is declared... yes
checking whether siglongjmp is declared... yes
checking Java support in R... present:
interpreter : '/usr/local/jrockit-jdk1.6.0_29/jre/bin/java'
archiver    : '/usr/local/jrockit-jdk1.6.0_29/bin/jar'
compiler    : '/usr/local/jrockit-jdk1.6.0_29/bin/javac'
header prep.: '/usr/local/jrockit-jdk1.6.0_29/bin/javah'
cpp flags   : '-I/usr/local/jrockit-jdk1.6.0_29/include -I/usr/local/jrockit-jdk1.6.0_29/include/linux'
java libs   : '-L/usr/local/jrockit-jdk1.6.0_29/jre/lib/amd64/jrockit -ljvm'
checking whether JNI programs can be compiled...
configure: error: Cannot compile a simple JNI program. See config.log for details.

Make sure you have Java Development Kit installed and correctly registered in R.
If in doubt, re-run "R CMD javareconf" as root.

ERROR: configuration failed for package ‘rJava’
* removing ‘/home/qiulp/r/R-3.0.1/library/rJava’
Warning in install.packages :
  installation of package ‘rJava’ had non-zero exit status

The downloaded source packages are in
‘/tmp/Rtmp6Co4rj/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
RStudio是一个功能强大的集成开发环境(IDE),用于R语言的编程和数据分析。安装RStudio需要下载适用于操作系统的安装包资源。 首先,可以通过RStudio的官方网站(https://www.rstudio.com/)进入下载页面。在下载页面上,选择适合操作系统的版本和用户类型(个人还是商业),然后点击下载按钮。 安装包资源一般为一个压缩文件,下载完成后需要解压缩。在Windows操作系统中,双击安装包文件后会出现安装向导,按照提示进行安装即可。在Mac操作系统中,双击打开安装包后将其拖动到“应用程序”文件夹中即可完成安装。 在Linux操作系统中,可以使用命令行来安装RStudio。首先需要下载对应版本的RStudio安装包资源,并解压缩文件。然后打开终端,使用cd命令进入解压缩后的文件夹路径,运行命令sudo dpkg -i <package-name>.deb(<package-name>替换为对应的安装包名称)来安装RStudio。 安装完成后,可以通过在操作系统的应用程序列表中查找RStudio并打开,或者在命令行中输入rstudio命令来启动RStudio。 总结来说,RStudio安装包资源可以通过官方网站下载,并且根据操作系统类型选择相应的安装包。安装RStudio首先要解压缩安装包资源,然后按照操作系统的安装向导或使用命令行来完成安装。安装完成后就可以打开RStudio进行R语言的编程和数据分析了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值