2014-04-11
My system is 64-bit CentOS 6.5. Installs a preview version of Rstudio server, at which time the version is 64-bit 0.98.766. The following error has occurred during installation
- [[email protected] Download]# RPM-IVH rstudio-server-0.98.766-x86_64.rpm
- Error: Failed dependencies:
- Libcrypto.. 6 (64bit is needed by Rstudio--0.98. 766-1.x86_64
- Libgfortran.. 1 (64bit is needed by Rstudio--0.98. 766-1.x86_64
- Libssl. So. 6() (64bit) is needed by rstudio-server-0.98. 766-1.x86_64
Refer to an article on StackOverflow:
- Yum install Libcrypto. So. 6 -y
- Yum install Libgfortran. So. 1 -y
- Yum install Libssl. So. 6 -y
- Yum Install openssl098e-0.9. 8e -y
- Yum Install gcc41-Libgfortran-4.1. 2 -y
- Yum Install Pango-1.28. 1 -y
- wget ftp://rpmfind.net/linux/centos/6.5/os/x86_64/packages/compat-libgfortran-41-4.1.2-39.el6.x86_64. RPM
- RPM -UVH compat-libgfortran-4.1. 2-39.el6.x86_64. RPM
- RPM -Uvh -nodeps rstudio-server-0.98. 766-x86_64. RPM
It is still not possible to complete the above steps. Running rstudio-server verify-installation
or will be an error
The problem is missing the library file, but /usr/lib
the next is the file that is indicated in the error prompt, then look at /usr/lib64
the library file below
- [[email protected] lib64]# ll libcrypto*
- lrwxrwxrwx 1 root root 19< Span class= "PLN" > apr 9 12:15 Libcrypto.-> Libcrypto.. 1.0. 1e
- lrwxrwxrwx 1 root root 19< Span class= "PLN" > apr 9 12:15 Libcrypto.. 10 -> Libcrypto.. 1.0. 1e
- -rwxr-XR-x 1 root root 1950976 Apr 8 :42 libcrypto. So. 1.0. 1e
- [[email protected] lib64]# ll libssl*
- -rwxr-XR -x.1 root root 250168 feb< Span class= "PLN" > 11 21: 01 Libssl3.
- lrwxrwxrwx 1 root root 16< Span class= "PLN" > apr 9 12:15 Libssl.-> Libssl.. 1.0. 1e
- lrwxrwxrwx 1 root root 16< Span class= "PLN" > apr 9 12:15 Libssl.. 10 -> Libssl.. 1.0. 1e
- -rwxr-XR-x 1 root root 441112 Apr 8 : Libssl. So. 1.0. 1e
Found no libcrypto.so.6
andlibssl.so.6
Try creating a soft link to the library file:
- CD /usr/lib64
- ln -s Libssl. So. Ten Libssl. So. 6
- ln -s libcrypto. So. Ten Libcrypto. So. 6
rstudio-server verify-installation
Test passed.
Firewall settings
In the browser input http://< server ip>:8787, found unreachable, this is due to CentOS's own firewall policy has not added 8787 port. Next, modify the firewall configuration file
- VI /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
Add below this sentence
- -A INPUT -m state --StateNEW -m TCP -p tcp- -dport 8787 -J ACCEPT
So you can access it!
User settings
Sometimes we have to restrict access to users of Rstudio server, which requires modifying the configuration file /etc/rstudio/rserver.conf
, adding a
- Auth-required-user-Group=rstudio_users
Then add the user group Rstudio_users and user supstat to the command line
- Groupadd rstudio_users
- Useradd Supstat
- Usermod -a -G rstudio_users supstat
- # Set User password
- passwd Supstat
- # If you want to add sudo permissions to the user, see http://www.getroad.cn/blog/?action=show&id=801
- Chown -R supstat:rstudio_users /home/supstat
This allows you to log in to Rstudio server with Supstat's account.
View process
- [[email protected] R]#ps aux|grep rstudio-server
- 498 19292 0.1 0.3 2127883980 ?ssl 07:30 0:00 /usr/lib/ rstudio-server/bin< Span class= "pun" >/rserver
- Supstat 19307 0.5 4.3 568932 43956 sl 07: 31 0:03 /usr/lib /rstudio-server/< Span class= "PLN" >bin/rsession -u supstat
- Root 19414 0.0 0.0 103248 864 pts/0 R+ : 0: rstudio grep-server
You can see that there are two rstudio-server related processes, one is the rserver of the system and the other is the rsession of the user Supstat.
System Configuration and System management
- System Configuration
- System Management
Please refer to Zhang Dan's blog for installation under Ubuntu.
This article for Supstat original article, without permission not reproduced, if necessary reprint please contact contact#supstat.com (#换成 @)
integration of newer postphp and R
Installing Rstudio Server on CentOS6.5