CentOS 6.5 Installation Rstudio-server

Source: Internet
Author: User
Tags gfortran

Because there is no way to use Yum directly loaded R language, all to download the source code, compile, install.

Statement: This article, reference http://www.dataguru.cn/thread-458580-1-1.html, and to be supplemented, perfect.

1. Pre-Install R preparation

the R language is mainly used for statistical analysis, drawing of the language and operating environment.
Official website:
http://www.r-project.org/
There is a direct installation package under Windows, it is convenient to download the installation directly, but it is not possible to install R directly from Yum on the CentOS6.0, you need to compile it yourself.
download page:
http://ftp.ctex.org/mirrors/CRAN/

various packages required before installation (some words can be omitted):
Yum install gcc gcc-c++ #否则报 "configure:error:c++ preprocessor"/lib/cpp "Fails sanity check" error
Yum Install Gcc-gfortran #否则报 "configure:error:No F77 compiler found" error
Yum Install readline-devel #否则报 "–with-readline=yes (default) and Headers/libs is not available" error
Yum Install libxt-devel #否则报 "Configure:error:–with-x=yes (default) and X11 Headers/libs is not available "Error
Yum install Fonts-chinese tcl tcl-devel tclx tk tk-devel
Yum Install Mesa-libglu mesa-libglu-devel (otherwise can not be installed artifact Rgl, of course, the students do not install)


2.R Installation:
1. Download r-2.15.3.tar.gz to desktop, CD switch to Desktop directory:
① Decompression: TAR-XZVF./r*.tar.gz
② Configuration (dynamic link libraries are also generated, it is important to specify the installation directory for uninstallation):./configure--enable-r-shlib=yes--with-libpng-x=no--WITH-TCLTK--prefix=/usr/ INSTALLEDPROGRAMFILES/R
③ compiling: make
④ Installation: make install
⑤ Configuration Environment: Open the Configuration Environment file: Vim/etc/profile, added under the last line: R_home=//usr/installedprogramfiles; Path= $PATH: $R _home/r/bin (bin cannot be lost)
⑥ To uninstall: Just delete the/usr/installedprogramfiles/r, and modify the R environment information in the Vim/etc/profile file;

2. Troubleshooting Installation Errors
① error message: "configure:error:No F77 compiler found", execute yum install Gcc-gfortran can be resolved;
② error message: "--with-readline=yes (default) and Headers/libs is not available", execute yum install readline-devel can be resolved;
③ error message: "–with-x=yes (default) and X11 Headers/libs is not available", perform yum install Libxt-devel to resolve

3. Installing Rstudio-server
Rstudio Installation:
1. Download rstudio-*.rpm package to desktop, CD switch to Desktop directory:
① Direct execution: Rpm-ivh--nodeps./rstudio-*.x86_64.rpm, if the error is missing libr.so, add parameter--nodepends

4. Follow-up

After loading, it is likely that the web will not be accessible, using Rstudio-server verify-installation to show Libr What's wrong, it boils down to that R's directory is not configured well.

Modify rserver.conf Add rsession-which-r=/usr/installedprogramfiles/r/bin/r

Restart takes effect.

For rserver.conf configuration details, please see http://blog.sina.com.cn/s/blog_403aa80a01019uwt.html

Official Configuration Description: Https://support.rstudio.com/hc/en-us/articles/200552316-Configuring-the-Server

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

CentOS 6.5 Installation Rstudio-server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.