如何在linux下如何安装java安装RStudio

1492人阅读
一、源码安装R语言(在linux下安装比较慢,一般需要30分钟左右)
1、下载R 安装包
& R-3.1.2.tar.gz &
& &tar xvf R-3.1.2.tar.gz
3、检查编译环境是否正常
& &#cd R-3.1.2
& &#./configure &--enable-R-shlib &--prefix=/usr/R-3.1.2 & & &////注意:这里是指定安装目录,默认目录是/usr下
如果安装成功会有如下显示
R is now configured for x86_64-unknown-linux-gnu
& Source directory: & & & & &.
& Installation directory: & &/usr/R-3.1.2
& C compiler: & & & & & & & &gcc -std=gnu99 &-g -O2
& Fortran 77 compiler: & & & gfortran &-g -O2
& C++ compiler: & & & & & & &g++ &-g -O2
& C++ 11 compiler: & & & & & g++ &-std=c++0x -g -O2
& Fortran 90/95 compiler: & &gfortran -g -O2
& Obj-C compiler:& & &
& Interfaces supported: & & &X11
& External libraries: & & & &readline
& Additional capabilities: & NLS
& Options enabled: & & & & & shared R library, shared BLAS, R profiling
& Capabilities skipped: & & &PNG, JPEG, TIFF, cairo, ICU
& Options not enabled: & & & memory profiling
& Recommended packages: & & &yes
&1)./configure 报错
& &configure: error: No F77 compiler found&
& &解决方法:
& &安装gcc环境
& &#yum install gcc-gfortran -y
&2)./configure 报错
& configure: error: --with-readline=yes (default) and headers/libs are not available
& &解决方法:
& 安装rpm环境包
& #yum install &readline-devel -y
& 3)./configure 报错
& configure: error: --with-x=yes (default) and X11 headers/libs are not available&
& 解决方法:
& &#yum install libXt-devel -y
& 4)./configure 报错&
& &configure: error: C++ preprocessor &/lib/cpp& fails sanity check
& &解决方法:
& &安装编译环境包
& &#yum install gcc-c++ &glibc-headers -y
4、当前解压目录下编译、安装(网速不好则时间等待比较长,20分钟左右):
& &#make && make install
5、离开解压目录,进入安装成功目录,进行检查是否成功
&[root@node1 bin]# pwd
& & /usr/R-3.1.2/bin
&[root@node1 bin]# ./R
R version 3.1.2 () -- &Pumpkin Helmet&
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-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 support but 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.
& print(&Hello world&)
[1] &Hello world&
二、源码安装RStudio
1、创建一个文件夹,获取RStudio的rpm包
#wget http://download2.rstudio.org/rstudio-server-0.98..rpm
#yum install openssl099e -y
#yum install --nogpgcheck rstudio-server-0.98..rpm -y
3、启动rstudio-server start
4、执行rstudio-server verify-installation
[root@node1 rstudio]# rstudio-server verify-installation
28 Jul :13 [rserver] ERROR Unable to find an installation of R on the system (which R didn't return valid output); LOGGED FROM: rstudio::core::FilePath rstudio::core::r_util::&unnam
ed&::systemDefaultRScript(std::string*) /root/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:22528 Jul :13 [rserver] ERROR Unable to locate R binary by scannin LOGGED FROM: rstudio::core::FilePath rstudio::core::r_util::&unnamed&::scanForRScript(const
:vector&std::basic_string&char, std::char_traits&char&, std::allocator&char& &, std::allocator&std::basic_string&char, std::char_traits&char&, std::allocator&char& & & &&, std::string*) /root/rstudio/src/cpp/core/r_util/REnvironmentPosix.cpp:69Unable to find
an installation of R on the system (which R didn't return valid output); Unable to locate R binary by scanning standard locations
原因:没有配置R的环境变量
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:432099次
积分:8607
积分:8607
排名:第2217名
原创:392篇
转载:68篇
译文:30篇
评论:51条
(7)(37)(5)(19)(8)(8)(7)(8)(11)(14)(11)(29)(32)(30)(51)(9)(2)(30)(10)(17)(15)(32)(17)(45)(34)(2)小白。求问Rstudio装上之后如何运行【linux吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:175,727贴子:
小白。求问Rstudio装上之后如何运行收藏
完全小白。刚开始学Linux。看Rstudio的攻略说是要在网页上操作吗。到底要在终端输什么命令?实在看不懂。。求大神赐教。
你装上之后系统菜单没有吗
登录百度帐号推荐应用&>&&>&&>&&>&linux下R安装、 Rstudio安装
linux下R安装、 Rstudio安装
上传大小:13KB
linux下R安装、 Rstudio安装
嵌到我的页面
<input type="text" value="">
综合评分:0(0位用户评分)
所需积分:0
下载次数:46
审核通过送C币
创建者:qq_
创建者:qq_
创建者:w_z_z_1991
课程推荐相关知识库
上传者其他资源上传者专辑
开发技术热门标签
VIP会员动态
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
android服务器底层网络模块的设计方法
所需积分:0
剩余积分:720
您当前C币:0
可兑换下载积分:0
兑换下载分:
兑换失败,您当前C币不够,请先充值C币
消耗C币:0
你当前的下载分为234。
linux下R安装、 Rstudio安装
会员到期时间:剩余下载次数:
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:

我要回帖

更多关于 linux下如何安装pip 的文章

 

随机推荐