安装spark的前端展示可视化sparkR

1 安装R语言

R语言是主要用于统计分析、绘图的语言和操作环境。

官方网站:

http://www.r-project.org/

Windows下面有直接的安装包,直接下载安装很方便,但是对于刚出的CentOS6.0上不能直接通过yum 安装R,需要自己编译。

下载页面:

http://ftp.ctex.org/mirrors/CRAN/

1.1更新源到fedoraproject

[[email protected]]# rpm -Uvhhttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Retrievinghttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Preparing...               ########################################### [100%]

        package epel-release-6-8.noarch isalready installed

1.2安装R

[[email protected]]# yum install R

Loadedplugins: fastestmirror, refresh-packagekit, security

Existing lock/var/run/yum.pid: another copy is running as pid 15582.

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 32 M RSS ( 78 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:10ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 32 M RSS ( 78 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:12ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 32 M RSS ( 78 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:14ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 32 M RSS ( 78 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:16ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 32 M RSS ( 78 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:18ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 32 M RSS ( 78 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:20ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 32 M RSS ( 78 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:22ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 75 M RSS (121 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:24ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 75 M RSS (121 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:26ago

    State : Sleeping, pid: 15582

Another app iscurrently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory : 75 M RSS (121 MB VSZ)

    Started: Wed Feb 19 23:14:02 2014 - 00:28ago

    State : Sleeping, pid: 15582

Loading mirrorspeeds from cached hostfile

 * base: mirrors.163.com

 * epel: mirrors.hust.edu.cn

 * extras: mirrors.163.com

 * updates: mirrors.163.com

Setting upInstall Process

Package R-3.0.2-1.el6.i686already installed and latest version

Nothing to do

[[email protected]]# 更新源到fedoraproject^C

[[email protected]]# rpm -Uvhhttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Retrievinghttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Preparing...                ###########################################[100%]

        package epel-release-6-8.noarch isalready installed

[[email protected]]#

[[email protected]]# R

 

R version 3.0.2(2013-09-25) -- "Frisbee Sailing"

Copyright (C)2013 The R Foundation for Statistical Computing

Platform:i686-redhat-linux-gnu (32-bit)

 

R is freesoftware and comes with ABSOLUTELY NO WARRANTY.

You arewelcome to redistribute it under certain conditions.

Type'license()' or 'licence()' for distribution details.

 

  Natural language support but running in anEnglish locale

 

R is acollaborative project with many contributors.

Type'contributors()' for more information and

'citation()'on how to cite R or R packages in publications.

 

Type 'demo()'for some demos, 'help()' for on-line help, or

'help.start()'for an HTML browser interface to help.

Type 'q()' toquit R.

 

R是自由软件,不带任何担保。
在某些条件下你可以将其自由散布。
’license()’’licence()’来看散布的详细条件。

R是个合作计划,有许多人为之做出了贡献.
’contributors()’来看合作者的详细情况
’citation()’会告诉你如何在出版物中正确地引用RR程序包。

’demo()’来看一些示范程序,用’help()’来阅读在线帮助文件,或
’help.start()’通过HTML浏览器来看帮助文件。
’q()’退出R.

> demo(graphics)

可以查看R能画哪些类型的图。

 

各种字符展示

> demo(Hershey)

退出

> q()
Save workspace image? [y/n/c]: n

 

2.rJava安装

2.1. rJava介绍

 

rJava是一个R语言和Java语言的通信接口,通过底层JNI实现调用,允许在R中直接调用Java的对象和方法。

 

rJava还提供了Java调用R的功能,是通过JRI(Java/R Interface)实现的。JRI现在已经被嵌入到rJava的包中,我们也可以单独试用这个功能。现在rJava包,已经成为很多基于Java开发R包的基础功能组件。

 

正式由于rJava是底层接口,并使用JNI作为接口调用,所以效率非常高。在JRI的方案中,JVM直接通过内存直接加载RVM,调用过程性能几乎无损耗,因此是非常高效连接通道,是R和Java通信的首选开发包。

 

2.2. rJava安装

 

系统环境:

 

LinuxUbuntu 12.04.2 LTS 64bit server

Rversion 3.0.1 64bit

Java(Oracle SUN) 1.6.0_29 64bit Server VM

#配置rJava环境

~ RCMD javareconf

[root@master~]#  R CMD javareconf

Javainterpreter : /usr/java/jdk1.7.0_21/jre/bin/java

Javaversion     : 1.7.0_21

Javahome path   : /usr/java/jdk1.7.0_21

Javacompiler    : /usr/java/jdk1.7.0_21/bin/javac

Javaheaders gen.: /usr/java/jdk1.7.0_21/bin/javah

Javaarchive tool: /usr/java/jdk1.7.0_21/bin/jar

 

tryingto compile and link a JNI progam

detectedJNI cpp flags    : -I$(JAVA_HOME)/include-I$(JAVA_HOME)/include/linux

detectedJNI linker flags : -L$(JAVA_HOME)/jre/lib/i386/client -ljvm

gcc-m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -cconftest.c -o conftest.o

gcc-m32 -std=gnu99 -shared -L/usr/local/lib -o conftest.so conftest.o-L/usr/java/jdk1.7.0_21/jre/lib/i386/client -ljvm-L/usr/lib/R/lib -lR

 

 

JAVA_HOME        : /usr/java/jdk1.7.0_21

Javalibrary path: $(JAVA_HOME)/jre/lib/i386/client

JNIcpp flags    : -I$(JAVA_HOME)/include-I$(JAVA_HOME)/include/linux

JNIlinker flags : -L$(JAVA_HOME)/jre/lib/i386/client -ljvm

UpdatingJava configuration in /usr/lib/R

Done.

#启动R

[root@master~]# R

 

Rversion 3.0.2 (2013-09-25)-- "Frisbee Sailing"

Copyright(C) 2013 The R Foundation for Statistical Computing

Platform:i686-redhat-linux-gnu (32-bit)

 

R isfree software and comes with ABSOLUTELY NO WARRANTY.

Youare welcome to redistribute it under certain conditions.

Type'license()' or 'licence()' for distribution details.

 

  Natural language support but running in anEnglish locale

 

R isa collaborative project with many contributors.

Type'contributors()' for more information and

'citation()'on how to cite R or R packages in publications.

 

Type'demo()' for some demos, 'help()' for on-line help, or

'help.start()'for an HTML browser interface to help.

Type'q()' to quit R.

> install.packages("rJava")

installingvia 'install.libs.R' to /usr/local/lib/R/site-library/rJava

** R

**inst

**preparing package for lazy loading

**help

***installing help indices

**building package indices

**testing if installed package can be loaded

*DONE (rJava)

Isthis ok [y/N]: y

Runningrpm_check_debug

RunningTransaction Test

TransactionTest Succeeded

RunningTransaction

Warning:RPMDB altered outside of yum.

**Found 10 pre-existing rpmdb problem(s), 'yum check' output follows:

ant-1.7.1-13.el6.i686has missing requires of java-devel >= ('0', '1.5.0', None)

sinjdoc-0.5-9.1.el6.i686has missing requires of java-gcj-compat >= ('0', '1.0.70', None)

sinjdoc-0.5-9.1.el6.i686has missing requires of java-gcj-compat >= ('0', '1.0.70', None)

sinjdoc-0.5-9.1.el6.i686has missing requires of java_cup >= ('0', '0.10', None)

xerces-j2-2.7.1-12.6.el6_0.i686has missing requires of java-gcj >= ('0', '1.5.0', None)

xerces-j2-2.7.1-12.6.el6_0.i686has missing requires of java-gcj >= ('0', '1.5.0', None)

xml-commons-apis-1.3.04-3.6.el6.i686has missing requires of java-gcj-compat

xml-commons-apis-1.3.04-3.6.el6.i686has missing requires of java-gcj-compat

xml-commons-resolver-1.1-4.18.el6.i686has missing requires of java-gcj-compat

xml-commons-resolver-1.1-4.18.el6.i686has missing requires of java-gcj-compat

  Installing :texlive-texmf-errata-2007-7.1.el6.noarch                                                1/53

  Installing :texlive-texmf-2007-38.el6.noarch                                                        2/53

  Installing : xorg-x11-proto-devel-7.6-25.el6.noarch                                                  3/53

  Installing : java-1.5.0-gcj-1.5.0.0-29.1.el6.i686                                                    4/53

  Updating  : freetype-2.3.11-14.el6_3.1.i686                                                          5/53

  Installing : 1:tcl-8.5.7-6.el6.i686                                                                  6/53

  Installing : 1:tcl-devel-8.5.7-6.el6.i686                                                            7/53

  Installing : freetype-devel-2.3.11-14.el6_3.1.i686                                                   8/53

  Installing : fontconfig-devel-2.8.0-3.el6.i686                                                       9/53

  Installing : libXau-devel-1.0.6-4.el6.i686                                                          10/53

  Installing : libxcb-devel-1.8.1-1.el6.i686                                                          11/53

  Installing : libX11-devel-1.5.0-4.el6.i686                                                           12/53

  Installing : libXrender-devel-0.9.7-2.el6.i686                                                      13/53

  Installing : libXft-devel-2.3.1-2.el6.i686                                                          14/53

  Installing : libgcj-devel-4.4.7-4.el6.i686                                                          15/53

  Installing : libgcj-src-4.4.7-4.el6.i686                                                            16/53

  Installing : texlive-texmf-errata-dvips-2007-7.1.el6.noarch                                          17/53

  Installing :texlive-texmf-dvips-2007-38.el6.noarch                                                 18/53

  Installing : pcre-devel-7.8-6.el6.i686                                                               19/53

  Installing : bzip2-devel-1.0.5-7.el6_0.i686                                                         20/53

  Installing :texlive-texmf-errata-latex-2007-7.1.el6.noarch                                          21/53

  Installing :texlive-texmf-errata-fonts-2007-7.1.el6.noarch                                          22/53

  Installing : 1:tk-8.5.7-5.el6.i686                                                                  23/53

  Installing : 1:ecj-3.4.2-6.el6.i686                                                                  24/53

  Installing : 1:tk-devel-8.5.7-5.el6.i686                                                            25/53

  Installing :texlive-texmf-fonts-2007-38.el6.noarch                                                  26/53

  Installing : texlive-2007-57.el6_2.i686                                                             27/53

  Installing : gcc-java-4.4.7-4.el6.i686                                                              28/53

  Installing : java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.i686                                             29/53

  Installing : poppler-utils-0.12.4-3.el6_0.1.i686                                                    30/53

  Installing : psutils-1.17-34.el6.i686                                                                31/53

  Installing :texlive-dvips-2007-57.el6_2.i686                                                       32/53

  Installing :texlive-utils-2007-57.el6_2.i686                                                        33/53

  Updating  : 1:cups-libs-1.4.2-50.el6_4.5.i686                                                      34/53

  Installing : portreserve-0.0.4-9.el6.i686                                                           35/53

  Installing : 1:cups-1.4.2-50.el6_4.5.i686                                                           36/53

  Installing : libRmath-3.0.2-1.el6.i686                                                              37/53

  Installing : libRmath-devel-3.0.2-1.el6.i686                                                         38/53

  Installing : texinfo-4.13a-8.el6.i686                                                               39/53

  Installing :texinfo-tex-4.13a-8.el6.i686                                                           40/53

  Installing : netpbm-10.47.05-11.el6.i686                                                            41/53

  Installing : netpbm-progs-10.47.05-11.el6.i686                                                      42/53

  Installing : texlive-texmf-latex-2007-38.el6.noarch                                                 43/53

  Installing :texlive-latex-2007-57.el6_2.i686                                                       44/53

  Installing :tex-preview-11.85-10.el6.noarch                                                         45/53

  Installing : R-core-3.0.2-1.el6.i686                                                                46/53

  Installing : R-core-devel-3.0.2-1.el6.i686                                                          47/53

  Installing : R-java-devel-3.0.2-1.el6.i686                                                          48/53

  Installing : R-devel-3.0.2-1.el6.i686                                                               49/53

  Installing : R-java-3.0.2-1.el6.i686                                                                50/53

  Installing : R-3.0.2-1.el6.i686                                                                     51/53

  Cleanup   : 1:cups-libs-1.4.2-48.el6_3.3.i686                                                       52/53

  Cleanup   : freetype-2.3.11-6.el6_2.9.i686                                                         53/53

  Verifying : R-java-devel-3.0.2-1.el6.i686                                                           1/53

  Verifying : netpbm-10.47.05-11.el6.i686                                                             2/53

  Verifying : java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.i686                                              3/53

  Verifying : texlive-dvips-2007-57.el6_2.i686                                                        4/53

  Verifying : libXrender-devel-0.9.7-2.el6.i686                                                       5/53

  Verifying : 1:tcl-8.5.7-6.el6.i686                                                                   6/53

  Verifying : texinfo-4.13a-8.el6.i686                                                                7/53

  Verifying : texlive-texmf-errata-fonts-2007-7.1.el6.noarch                                           8/53

  Verifying : gcc-java-4.4.7-4.el6.i686                                                               9/53

  Verifying : texlive-texmf-latex-2007-38.el6.noarch                                                 10/53

  Verifying : texlive-texmf-errata-latex-2007-7.1.el6.noarch                                          11/53

  Verifying : texlive-texmf-dvips-2007-38.el6.noarch                                                 12/53

  Verifying : libRmath-3.0.2-1.el6.i686                                                               13/53

  Verifying : bzip2-devel-1.0.5-7.el6_0.i686                                                         14/53

  Verifying : texlive-utils-2007-57.el6_2.i686                                                       15/53

  Verifying : texinfo-tex-4.13a-8.el6.i686                                                           16/53

  Verifying : texlive-2007-57.el6_2.i686                                                             17/53

  Verifying : pcre-devel-7.8-6.el6.i686                                                              18/53

  Verifying : R-devel-3.0.2-1.el6.i686                                                               19/53

  Verifying : texlive-texmf-fonts-2007-38.el6.noarch                                                  20/53

  Verifying : libXau-devel-1.0.6-4.el6.i686                                                          21/53

  Verifying : R-java-3.0.2-1.el6.i686                                                                22/53

  Verifying : java-1.5.0-gcj-1.5.0.0-29.1.el6.i686                                                   23/53

  Verifying : freetype-devel-2.3.11-14.el6_3.1.i686                                                  24/53

  Verifying : 1:tcl-devel-8.5.7-6.el6.i686                                                            25/53

  Verifying : netpbm-progs-10.47.05-11.el6.i686                                                      26/53

  Verifying : poppler-utils-0.12.4-3.el6_0.1.i686                                                     27/53

  Verifying : texlive-texmf-errata-dvips-2007-7.1.el6.noarch                                          28/53

  Verifying : libgcj-src-4.4.7-4.el6.i686                                                            29/53

  Verifying : libXft-devel-2.3.1-2.el6.i686                                                          30/53

  Verifying : libX11-devel-1.5.0-4.el6.i686                                                          31/53

  Verifying : freetype-2.3.11-14.el6_3.1.i686                                                         32/53

  Verifying : 1:ecj-3.4.2-6.el6.i686                                                                 33/53

  Verifying : portreserve-0.0.4-9.el6.i686                                                           34/53

  Verifying : texlive-texmf-2007-38.el6.noarch                                                       35/53

  Verifying : xorg-x11-proto-devel-7.6-25.el6.noarch                                                 36/53

  Verifying : 1:cups-libs-1.4.2-50.el6_4.5.i686                                                      37/53

  Verifying : psutils-1.17-34.el6.i686                                                               38/53

  Verifying : 1:tk-8.5.7-5.el6.i686                                                                   39/53

  Verifying : 1:tk-devel-8.5.7-5.el6.i686                                                            40/53

  Verifying : R-core-devel-3.0.2-1.el6.i686                                                          41/53

  Verifying : libRmath-devel-3.0.2-1.el6.i686                                                        42/53

  Verifying : libgcj-devel-4.4.7-4.el6.i686                                                          43/53

  Verifying : tex-preview-11.85-10.el6.noarch                                                        44/53

  Verifying : fontconfig-devel-2.8.0-3.el6.i686                                                      45/53

  Verifying : R-3.0.2-1.el6.i686                                                                      46/53

  Verifying : libxcb-devel-1.8.1-1.el6.i686                                                          47/53

  Verifying : texlive-latex-2007-57.el6_2.i686                                                       48/53

  Verifying : R-core-3.0.2-1.el6.i686                                                                49/53

  Verifying : 1:cups-1.4.2-50.el6_4.5.i686                                                           50/53

  Verifying : texlive-texmf-errata-2007-7.1.el6.noarch                                               51/53

  Verifying : freetype-2.3.11-6.el6_2.9.i686                                                         52/53

  Verifying : 1:cups-libs-1.4.2-48.el6_3.3.i686                                                       53/53

 

Installed:

  R.i686 0:3.0.2-1.el6

 

DependencyInstalled:

  R-core.i686 0:3.0.2-1.el6                             R-core-devel.i6860:3.0.2-1.el6

  R-devel.i686 0:3.0.2-1.el6                            R-java.i686 0:3.0.2-1.el6

  R-java-devel.i686 0:3.0.2-1.el6                       bzip2-devel.i6860:1.0.5-7.el6_0

  cups.i686 1:1.4.2-50.el6_4.5                          ecj.i6861:3.4.2-6.el6

  fontconfig-devel.i686 0:2.8.0-3.el6                   freetype-devel.i686 0:2.3.11-14.el6_3.1

  gcc-java.i686 0:4.4.7-4.el6                           java-1.5.0-gcj.i6860:1.5.0.0-29.1.el6

  java-1.5.0-gcj-devel.i6860:1.5.0.0-29.1.el6          libRmath.i6860:3.0.2-1.el6

  libRmath-devel.i686 0:3.0.2-1.el6                     libX11-devel.i6860:1.5.0-4.el6

  libXau-devel.i686 0:1.0.6-4.el6                       libXft-devel.i6860:2.3.1-2.el6

  libXrender-devel.i686 0:0.9.7-2.el6                   libgcj-devel.i6860:4.4.7-4.el6

  libgcj-src.i686 0:4.4.7-4.el6                         libxcb-devel.i686 0:1.8.1-1.el6

  netpbm.i686 0:10.47.05-11.el6                         netpbm-progs.i6860:10.47.05-11.el6

  pcre-devel.i686 0:7.8-6.el6                           poppler-utils.i6860:0.12.4-3.el6_0.1

  portreserve.i686 0:0.0.4-9.el6                        psutils.i686 0:1.17-34.el6

  tcl.i686 1:8.5.7-6.el6                                tcl-devel.i6861:8.5.7-6.el6

  tex-preview.noarch 0:11.85-10.el6                     texinfo.i686 0:4.13a-8.el6

  texinfo-tex.i686 0:4.13a-8.el6                        texlive.i686 0:2007-57.el6_2

  texlive-dvips.i686 0:2007-57.el6_2                    texlive-latex.i6860:2007-57.el6_2

  texlive-texmf.noarch 0:2007-38.el6                    texlive-texmf-dvips.noarch0:2007-38.el6

  texlive-texmf-errata.noarch0:2007-7.1.el6           texlive-texmf-errata-dvips.noarch 0:2007-7.1.el6

  texlive-texmf-errata-fonts.noarch0:2007-7.1.el6     texlive-texmf-errata-latex.noarch 0:2007-7.1.el6

  texlive-texmf-fonts.noarch 0:2007-38.el6              texlive-texmf-latex.noarch0:2007-38.el6

  texlive-utils.i686 0:2007-57.el6_2                    tk.i686 1:8.5.7-5.el6

  tk-devel.i686 1:8.5.7-5.el6                          xorg-x11-proto-devel.noarch 0:7.6-25.el6

 

DependencyUpdated:

  cups-libs.i686 1:1.4.2-50.el6_4.5                     freetype.i6860:2.3.11-14.el6_3.1

 

Complete!

> install.packages("rJava")

Installing package into ‘/usr/lib/R/library’

(as ‘lib’ is unspecified)

--- Please select a CRAN mirror for use in thissession ---

CRAN mirror

 

 1:0-Cloud                       2: Argentina (La Plata)      

 3: Argentina (Mendoza)           4: Australia(Canberra)      

 5: Australia (Melbourne)         6: Austria                   

 7: Belgium                       8: Brazil(BA)               

 9: Brazil (PR)                  10: Brazil(RJ)               

11: Brazil(SP 1)                12: Brazil (SP2)             

13: Canada(BC)                  14: Canada(NS)               

15: Canada(ON)                  16: Canada (QC1)             

17: Canada(QC 2)                18: Chile                     

19: China(Beijing 1)            20: China(Beijing2)         

21: China(Hefei)                22: China(Xiamen)            

23: Colombia(Bogota)            24: Colombia(Cali)           

25: Denmark                      26: Ecuador                   

27: France (Lyon 1)              28: France (Lyon2)           

29: France(Montpellier)         30: France (Paris 1)          

31: France (Paris2)             32: Germany (Berlin)           

33: Germany(Bonn)               34: Germany (Goettingen)      

35: Greece                       36: Hungary                   

37: India                        38: Indonesia                 

39: Iran                         40: Ireland                    

41: Italy(Milano)               42: Italy (Padua)             

43: Italy(Palermo)              44: Japan (Hyogo)             

45: Japan(Tokyo)                46: Japan (Tsukuba)           

47: Korea(Seoul 1)              48: Korea(Seoul 2)            

49: Lebanon                      50: Mexico (Mexico City)      

51: Mexico(Texcoco)             52: Netherlands (Amsterdam)   

53: Netherlands(Utrecht)       54: New Zealand               

55: Norway                       56: Philippines                

57: Poland                       58: Portugal                  

59: Russia                       60: Singapore                 

61: Slovakia                     62: South Africa (Cape Town)  

63: South Africa(Johannesburg) 64: Spain (Madrid)            

65: Sweden                       66: Switzerland               

67: Taiwan(Taichung)            68: Taiwan(Taipei)           

69: Thailand                     70: Turkey                    

71: UK(Bristol)                 72: UK(London)               

73: UK(London)                  74: UK (St Andrews)           

75: USA(CA 1)                   76: USA (CA 2)                

77: USA(IA)                     78: USA (IN)                  

79: USA(KS)                     80: USA (MD)                  

81: USA(MI)                     82: USA (MO)                  

83: USA(OH)                     84: USA (OR)                  

85: USA(PA 1)                   86: USA (PA 2)                

87: USA(TN)                     88: USA (TX 1)                

89: USA(WA 1)                   90: USA (WA 2)                

91: Venezuela                    92: Vietnam                   

 

 

Selection: 20

trying URL'http://mirror.bjtu.edu.cn/cran/src/contrib/rJava_0.9-6.tar.gz'

Content type 'application/octet-stream' length567515 bytes (554 Kb)

opened URL

==================================================

downloaded 554 Kb

 

* installing *source* package ‘rJava’ ...

** package ‘rJava’ successfully unpacked and MD5sums checked

checking for gcc... gcc -m32 -std=gnu99

checking whether the C compiler works... yes

checking for C compiler default output filename... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU Ccompiler... yes

checking whether gcc -m32 -std=gnu99 accepts -g...yes

checking for gcc -m32 -std=gnu99 option to acceptISO C89... none needed

checking how to run the C preprocessor... gcc -m32-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.1compatible... 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 beincluded... yes

configure: checking whether gcc -m32 -std=gnu99supports 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/java/jdk1.7.0_21/jre/bin/java'

archiver   : '/usr/java/jdk1.7.0_21/bin/jar'

compiler   : '/usr/java/jdk1.7.0_21/bin/javac'

header prep.: '/usr/java/jdk1.7.0_21/bin/javah'

cpp flags  : '-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux'

java libs  : '-L/usr/java/jdk1.7.0_21/jre/lib/i386/client-ljvm'

checking whether Java run-time works... yes

checking whether -Xrs is supported... yes

checking whether JNI programs can be compiled...yes

checking JNI data types... ok

checking whether JRI should be compiled(autodetect)... yes

checking whether debugging output should beenabled... no

checking whether memory profiling is desired... no

checking whether threads support is requested...no

checking whether callbacks support is requested...no

checking whether JNI cache support is requested...no

checking whether headless init is enabled... no

checking whether JRI is requested... yes

configure: creating ./config.status

config.status: creating src/Makevars

config.status: creating R/zzz.R

config.status: creating src/config.h

=== configuring in jri(/tmp/RtmpqVmQDK/R.INSTALLa4974587beb/rJava/jri)

configure: running /bin/sh ./configure--disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=.

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking for gcc... gcc -m32 -std=gnu99

checking for C compiler default output filename... 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 Ccompiler... yes

checking whether gcc -m32 -std=gnu99 accepts -g...yes

checking for gcc -m32 -std=gnu99 option to accept ISOC89... none needed

checking how to run the C preprocessor... gcc -m32-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 whether Java interpreter works...checking whether JNI programs can be compiled... yes

checking whether JNI programs can be run... yes

checking JNI data types... ok

checking whether Rinterface.h exports R_CStackXXXvariables... yes

checking whether Rinterface.h exports R_SignalHandlers...yes

configure: creating ./config.status

config.status: creating src/Makefile

config.status: creating Makefile

config.status: creating run

config.status: creating src/config.h

** libs

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -c Rglue.c-o Rglue.o

Rglue.c:838: warning: ‘new_jrectRef’ defined butnot used

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -c arrayc.c-o arrayc.o

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -c callJNI.c -o callJNI.o

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -c callback.c -o callback.o

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -c fields.c-o fields.o

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -c init.c-o init.o

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -cjri_glue.c -o jri_glue.o

jri_glue.c: In function ‘PushToREXP’:

jri_glue.c:24: warning: cast from pointer tointeger of different size

jri_glue.c: In function ‘RReleaseREXP’:

jri_glue.c:52: warning: cast to pointer frominteger of different size

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -c loader.c-o loader.o

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -cotables.c -o otables.o

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include -I/usr/java/jdk1.7.0_21/include/linux-I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686-mtune=atom -fasynchronous-unwind-tables -c rJava.c -o rJava.o

gcc -m32 -std=gnu99 -I/usr/include/R -DNDEBUG -I.-I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/local/include    -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -c tools.c-o tools.o

gcc -m32 -std=gnu99 -shared -L/usr/local/lib -orJava.so Rglue.o arrayc.o callJNI.o callback.o fields.o init.o jri_glue.oloader.o otables.o rJava.o tools.o -L/usr/java/jdk1.7.0_21/jre/lib/i386/client-ljvm -L/usr/lib/R/lib -lR

(cd ../jri && make)

make[1]: Entering directory`/tmp/RtmpqVmQDK/R.INSTALLa4974587beb/rJava/jri'

make -C src JRI.jar

make[2]: Entering directory`/tmp/RtmpqVmQDK/R.INSTALLa4974587beb/rJava/jri/src'

/usr/java/jdk1.7.0_21/bin/javac-target 1.4 -source 1.4 -d . ../Mutex.java ../RBool.java../RConsoleOutputStream.java ../REXP.java ../RFactor.java ../RList.java../RMainLoopCallbacks.java ../RVector.java ../Rengine.java ../package-info.java

warning: [options] bootstrap class path not set inconjunction with -source 1.4

1 warning

/usr/java/jdk1.7.0_21/bin/javah-d . -classpath . org.rosuda.JRI.Rengine

gcc -m32 -std=gnu99 -c -o Rengine.o Rengine.c -g-Iinclude  -DRIF_HAS_CSTACK-DRIF_HAS_RSIGHAND -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -fpic -I/usr/java/jdk1.7.0_21/include -I/usr/java/jdk1.7.0_21/include/linux-I/usr/include/R -I/usr/include/R

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniParse’:

Rengine.c:121: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniEval’:

Rengine.c:135: warning: cast to pointer frominteger of different size

Rengine.c:136: warning: cast to pointer frominteger of different size

Rengine.c:159: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniAssign’:

Rengine.c:179: warning: cast to pointer frominteger of different size

Rengine.c:180: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniProtect’:

Rengine.c:189: warning: cast to pointer from integerof different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniRelease’:

Rengine.c:201: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPreserve’:

Rengine.c:207: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPrintValue’:

Rengine.c:213: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniParentEnv’:

Rengine.c:219: warning: cast to pointer frominteger of different size

Rengine.c:219: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniFindVar’:

Rengine.c:228: warning: cast to pointer frominteger of different size

Rengine.c:228: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniListEnv’:

Rengine.c:234: warning: cast to pointer frominteger of different size

Rengine.c:234: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniSpecialObject’:

Rengine.c:241: warning: cast from pointer tointeger of different size

Rengine.c:242: warning: cast from pointer tointeger of different size

Rengine.c:243: warning: cast from pointer tointeger of different size

Rengine.c:244: warning: cast from pointer tointeger of different size

Rengine.c:245: warning: cast from pointer tointeger of different size

Rengine.c:246: warning: cast from pointer tointeger of different size

Rengine.c:247: warning: cast from pointer tointeger of different size

Rengine.c:248: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniXrefToJava’:

Rengine.c:256: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniJavaToXref’:

Rengine.c:266: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetString’:

Rengine.c:272: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetStringArray’:

Rengine.c:279: warning: cast to pointer frominteger of different size

Rengine.c: In function ‘Java_org_rosuda_JRI_Rengine_rniGetIntArray’:

Rengine.c:285: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetRawArray’:

Rengine.c:291: warning: cast to pointer frominteger of different size

Rengine.c: In function ‘Java_org_rosuda_JRI_Rengine_rniGetBoolArrayI’:

Rengine.c:297: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetDoubleArray’:

Rengine.c:303: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetVector’:

Rengine.c:309: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniExpType’:

Rengine.c:315: warning: cast to pointer from integerof different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPutString’:

Rengine.c:335: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPutStringArray’:

Rengine.c:341: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPutIntArray’:

Rengine.c:347: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPutRawArray’:

Rengine.c:353: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPutBoolArrayI’:

Rengine.c:359: warning: cast from pointer tointeger of different size

Rengine.c: In function ‘Java_org_rosuda_JRI_Rengine_rniPutBoolArray’:

Rengine.c:365: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPutDoubleArray’:

Rengine.c:371: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPutVector’:

Rengine.c:377: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetAttr’:

Rengine.c:384: warning: cast to pointer frominteger of different size

Rengine.c:386: warning: cast to pointer frominteger of different size

Rengine.c:387: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetAttrNames’:

Rengine.c:394: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniSetAttr’:

Rengine.c:426: warning: cast to pointer frominteger of different size

Rengine.c:428: warning: cast to pointer frominteger of different size

Rengine.c:428: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniInstallSymbol’:

Rengine.c:441: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetSymbolName’:

Rengine.c:447: warning: cast to pointer frominteger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniInherits’:

Rengine.c:457: warning: cast to pointer frominteger of different size

Rengine.c: In function ‘Java_org_rosuda_JRI_Rengine_rniCons’:

Rengine.c:468: warning: cast to pointer frominteger of different size

Rengine.c:468: warning: cast to pointer frominteger of different size

Rengine.c:470: warning: cast to pointer frominteger of different size

Rengine.c:470: warning: cast to pointer frominteger of different size

Rengine.c:472: warning: cast to pointer frominteger of different size

Rengine.c:473: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniCAR’:

Rengine.c:480: warning: cast to pointer frominteger of different size

Rengine.c:481: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniCDR’:

Rengine.c:490: warning: cast to pointer frominteger of different size

Rengine.c:491: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniTAG’:

Rengine.c:500: warning: cast to pointer frominteger of different size

Rengine.c:501: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniPutList’:

Rengine.c:516: warning: cast from pointer tointeger of different size

Rengine.c:521: warning: cast to pointer frominteger of different size

Rengine.c:526: warning: cast from pointer tointeger of different size

Rengine.c: In function‘Java_org_rosuda_JRI_Rengine_rniGetList’:

Rengine.c:533: warning: cast to pointer frominteger of different size

Rengine.c:560: warning: cast from pointer tointeger of different size

gcc -m32 -std=gnu99 -c -o jri.o jri.c -g-Iinclude  -DRIF_HAS_CSTACK-DRIF_HAS_RSIGHAND -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -fpic -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/include/R -I/usr/include/R

jri.c: In function ‘jri_putSEXPLArray’:

jri.c:193: warning: cast from pointer to integerof different size

jri.c: In function ‘jri_getObjectArray’:

jri.c:308: warning: cast from pointer to integerof different size

jri.c: In function ‘jri_getSEXPLArray’:

jri.c:472: warning: cast to pointer from integerof different size

gcc -m32 -std=gnu99 -c -o Rcallbacks.oRcallbacks.c -g -Iinclude -DRIF_HAS_CSTACK -DRIF_HAS_RSIGHAND -O2 -g -pipe -Wall-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables  -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -fpic -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -I/usr/include/R -I/usr/include/R

gcc -m32 -std=gnu99 -c -o Rinit.o Rinit.c -g-Iinclude  -DRIF_HAS_CSTACK -DRIF_HAS_RSIGHAND-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -fpic -I/usr/include/R -I/usr/include/R

gcc -m32 -std=gnu99 -c -o globals.o globals.c -g-Iinclude  -DRIF_HAS_CSTACK-DRIF_HAS_RSIGHAND -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -fpic -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux

gcc -m32 -std=gnu99 -c -o rjava.o rjava.c -g-Iinclude  -DRIF_HAS_CSTACK -DRIF_HAS_RSIGHAND-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom-fasynchronous-unwind-tables -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux -fpic -I/usr/java/jdk1.7.0_21/include-I/usr/java/jdk1.7.0_21/include/linux

rjava.c: In function ‘RJava_request_lock’:

rjava.c:22: warning: ignoring return value of‘write’, declared with attribute warn_unused_result

rjava.c: In function ‘RJava_clear_lock’:

rjava.c:30: warning: ignoring return value of‘write’, declared with attribute warn_unused_result

rjava.c: In function ‘RJava_request_callback’:

rjava.c:39: warning: ignoring return value of‘write’, declared with attribute warn_unused_result

rjava.c: In function ‘RJava_init_ctrl’:

rjava.c:51: warning: ignoring return value of‘write’, declared with attribute warn_unused_result

rjava.c:52: warning: ignoring return value of‘read’, declared with attribute warn_unused_result

gcc -m32 -std=gnu99 -o libjri.so Rengine.o jri.oRcallbacks.o Rinit.o globals.o rjava.o -shared -L/usr/java/jdk1.7.0_21/jre/lib/i386/client-ljvm -L/usr/lib/R/lib -lR

/usr/java/jdk1.7.0_21/bin/javac-target 1.4 -source 1.4 -d . ../Mutex.java ../RBool.java../RConsoleOutputStream.java ../REXP.java ../RFactor.java ../RList.java../RMainLoopCallbacks.java ../RVector.java ../Rengine.java ../package-info.java

warning: [options] bootstrap class path not set inconjunction with -source 1.4

1 warning

/usr/java/jdk1.7.0_21/bin/jarfc JRI.jar org libjri.so

make[2]: Leaving directory`/tmp/RtmpqVmQDK/R.INSTALLa4974587beb/rJava/jri/src'

rm -f libjri.so

cp src/libjri.so libjri.so

/usr/java/jdk1.7.0_21/bin/javac-target 1.4 -source 1.4 -classpath src/JRI.jar -d examples examples/rtest.java

warning: [options] bootstrap class path not set inconjunction with -source 1.4

Note: examples/rtest.java uses or overrides adeprecated API.

Note: Recompile with -Xlint:deprecation fordetails.

1 warning

/usr/java/jdk1.7.0_21/bin/javac-target 1.4 -source 1.4 -classpath src/JRI.jar -d examples examples/rtest2.java

warning: [options] bootstrap class path not set inconjunction with -source 1.4

Note: examples/rtest2.java uses or overrides adeprecated API.

Note: Recompile with -Xlint:deprecation fordetails.

1 warning

make[1]: Leaving directory`/tmp/RtmpqVmQDK/R.INSTALLa4974587beb/rJava/jri'

installing via 'install.libs.R' to/usr/lib/R/library/rJava

** R

** inst

** preparing package for lazy loading

** help

*** installing help indices

  convertinghelp for package ‘rJava’

    findingHTML links ... done

   Exceptions                             html 

    J                                      html 

   accessOp                               html 

   aslist                                 html 

   clone                                   html 

   instanceof                             html 

   jarray                                 html 

   jarrayRef-class                        html 

   java-tools                             html 

   javaImport                              html 

   jcall                                  html 

   jcast                                  html 

   jcastToArray                           html 

   jcheck                                 html 

   jclassName                              html 

   jengine                                html 

   jequals                                html 

   jfield                                 html 

   jfloat-class                           html 

   jfloat                                  html 

   jinit                                  html 

   jmemprof                               html 

   jnew                                   html 

   jnull                                  html 

   jobjRef-class                          html 

   jpackage                               html 

   jrectRef-class                         html 

   jreflection                            html 

   jserialize                             html 

   jsimplify                              html 

   loader                                 html 

    new                                     html 

    rep                                     html 

   show                                   html 

   toJava                                 html 

   with                                   html 

** building package indices

** testing if installed package can be loaded

* DONE (rJava)

Making 'packages.html' ... done

 

The downloaded source packages are in

       ‘/tmp/RtmpcxcHBJ/downloaded_packages’

Updating HTML index of packages in '.Library'

Making 'packages.html' ... done

>q()

3 SparkR的安装

3.1 sparkR的代码下载

从网页下载代码https://github.com/amplab-extras/SparkR-pkg

3.2 sparkR的代码编译

[root@master sparkR]# ./install-dev.sh

* installing *source* package ‘SparkR’ ...

** libs

** arch -

make: Nothing to be done for `all'.

** R

** inst

** preparing package for lazy loading

Creating a generic function for ‘lapply’ frompackage ‘base’ in package ‘SparkR’

** help

*** installing help indices

  convertinghelp for package ‘SparkR’

    findingHTML links ... done

    RDD                                     html

   broadcast-class                        html

   broadcast-internal                     html

   broadcast                              html

   cache-methods                          html

   collect-methods                        html

   combineByKey                           html

   count                                  html

   flatMap                                html

   groupByKey                             html

    hashCode                                html

   includePackage                         html

   lapply                                 html

   lapplyPartition                        html

   lapplyPartitionsWithIndex              html

   parallelize                             html

   partitionBy                            html

   reduce                                 html

   reduceByKey                            html

   sampleRDD                              html

   sparkR.init                             html

   take                                   html

   takeSample                             html

   textFile                               html

** building package indices

** testing if installed package can be loaded

* DONE (SparkR)

[root@master sparkR]#

3.3运行sparkR

[root@master sparkR]# ./sparkR

 

R version 3.0.2 (2013-09-25)-- "Frisbee Sailing"

Copyright (C) 2013 The R Foundation for Statistical Computing

Platform: i686-redhat-linux-gnu (32-bit)

 

R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.

 

  Natural language supportbut running in an English locale

 

R is a collaborative project with many contributors.

Type 'contributors()' for more information and

'citation()' on how to cite R or R packages in publications.

 

Type 'demo()' for some demos, 'help()' for on-line help, or

'help.start()' for an HTML browser interface to help.

Type 'q()' to quit R.

 

Loading required package: SparkR

Loading required package: rJava

[SparkR] Initializing with classpath/root/sparkR/lib/SparkR/sparkr-assembly-0.1.jar

 

14/02/23 17:07:24 INFO Slf4jLogger: Slf4jLogger started

 

 Welcome to SparkR!

 Spark context isavailable as sc

3.3运行sparkR例子

SparkR里自带的例子可以安装如下方法执行。

[root@mastersparkR]# ./sparkR examples/pi.R local[2]

Loadingrequired package: SparkR

Loadingrequired package: methods

Loadingrequired package: rJava

[SparkR]Initializing with classpath /root/sparkR/lib/SparkR/sparkr-assembly-0.1.jar

 

14/02/2317:13:13 INFO Slf4jLogger: Slf4jLogger started

Piis roughly 3.13966

Numelements in RDD  200000

[root@mastersparkR]#

 

你可能感兴趣的:(spark,sparkr)