• rJava在ubuntu上的安装


    1、Oracle JDK 8(必须装oracle的,open的不行)

    http://www.cnblogs.com/loca/p/4679110.html

    Install Oracle JDK 8 on Linux x64 (eg: Debian)
    http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre
    
    1) download JDK 8 from Oracle, jdk-8uversion-linux-x64.tar.gz
    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
    2) 
    http://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html#BJFJJEFG
    $ sudo mkdir -p /usr/lib/jvm
    $ sudo tar zxf jdk-8u144-linux-x64.tar.gz -C /usr/lib/jvm/
    $ sudo chown -R root:root /usr/lib/jvm/jdk1.8.0_144
    
    $ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_144/bin/java" 1
    $ sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_144/bin/javac" 1

    $ sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/lib/jvm/jdk1.8.0_144/bin/jar" 1
    $ sudo update-alternatives --install "/usr/bin/javah" "javah" "/usr/lib/jvm/jdk1.8.0_144/bin/javah" 1

    $ sudo update-alternatives --install "/usr/bin/javap" "javap" "/usr/lib/jvm/jdk1.8.0_144/bin/javap" 1

    $ sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0_144/bin/javaws" 1
    $ sudo chmod a+x /usr/bin/java
    $ sudo chmod a+x /usr/bin/javac
    $ sudo chmod a+x /usr/bin/jar
    $ sudo chmod a+x /usr/bin/javah
    $ sudo chmod a+x /usr/bin/javap
    $ sudo chmod a+x /usr/bin/javaws
    $ sudo update-alternatives --config java 
    $ sudo update
    -alternatives --config javac
    $ sudo update-alternatives --config jar
    $ sudo update-alternatives --config javah
    $ sudo update-alternatives --config javap
    $ sudo update-alternatives --config javaws
    $ java -version

    注意跟你的版本型号保持一致,例如jdk1.8.0_144

    2、rJava安装

    sudo R CMD javareconf   #以root权限配置rJava环境
    sudo R
    install.packages("rJava")
    library(rJava)

     http://blog.fens.me/series-ubuntu/

  • 相关阅读:
    语言模型工具kenlm安装
    linux操作系统远程连接方法
    Windows操作系统远程连接方法
    Majority Number III
    Majority Number II
    不同颜色在Halcon中的色相值规律
    流程图
    Redis实战(24)使用rdbtools工具来解析redis rdb文件
    EasyExcel
    pktgen 使用小记
  • 原文地址:https://www.cnblogs.com/flymeng/p/7229786.html
Copyright © 2020-2023  润新知