(1)环境相关的,都装上
64位系统
1 $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm接下来运行:
1 $ yum upgrade
下面这些也装上
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
[root@hadoop1-mysql R]# sudo yum install openssl098e
Setting up Install Process
Package openssl098e-0.9.8e-17.el6.centos.2.x86_64 already installed and latest version
Nothing to do
[root@hadoop1-mysql R]# yum install libcrypto.so.6 libgfortran.so.1 openssl098e-0.9.8e
Setting up Install Process
(2)走的弯路
下载了老的版本
[root@hadoop1-mysql R]# wget http://download2.rstudio.org/rstudio-server-0.97.551-x86_64.rpm装了0.98.1103-1.x86_64,与老的0.98.1103-1.i686冲突了
[root@hadoop1-mysql R]# rpm -ivh rstudio-server-0.98.1103-x86_64.rpm
Preparing... ########################################### [100%]
package rstudio-server-0.98.1103-1.x86_64 is already installed
file /usr/lib/rstudio-server/R/library/manipulate/DESCRIPTION from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/R/library/rstudio/DESCRIPTION from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/R/library/manipulate/Meta/package.rds from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/R/library/rstudio/Meta/package.rds from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/R/library/manipulate/help/manipulate.rdb from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/R/library/manipulate/help/manipulate.rdx from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/R/library/rstudio/help/rstudio.rdb from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/R/library/rstudio/help/rstudio.rdx from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/R/packages/shinyapps_0.3.63_eab6b6997bc0a20f08d9541b307690a21cc15746.tar.gz from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/bin/pandoc/pandoc from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/bin/pandoc/pandoc-citeproc from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/bin/pandoc/pandoc-citeproc-static from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/bin/pandoc/pandoc-static from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/bin/rpostback from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/bin/rserver from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/bin/rserver-pam from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/bin/rsession from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
file /usr/lib/rstudio-server/www/rstudio/rstudio.nocache.js from install of rstudio-server-0.98.1103-1.x86_64 conflicts with file from package rstudio-server-0.98.1103-1.i686
[root@hadoop1-mysql R]# wget http://download2.rstudio.org/rstudio-server-0.97.551-x86_64.rpm
其实已经提示,装了两个版本(0.98.1103-1.i686和0.98.1103-1.x86_64)的了
[root@hadoop1-mysql R]# rpm -Uvh --nodeps rstudio-server-0.97.551-x86_64.rpm
Preparing... ########################################### [100%]
package rstudio-server-0.98.1103-1.i686 (which is newer than rstudio-server-0.97.551-1.x86_64) is already installed
package rstudio-server-0.98.1103-1.x86_64 (which is newer than rstudio-server-0.97.551-1.x86_64) is already installed
(3)之前装多了,装了好几个,全部删除
[root@hadoop1-mysql R]# rpm -e rstudio-server
error: "rstudio-server" specifies multiple packages:
rstudio-server-0.98.1103-1.i686
rstudio-server-0.98.1103-1.x86_64
[root@hadoop1-mysql R]# rpm -e rstudio-server-0.98.1103-1.i686
[root@hadoop1-mysql R]# rpm -e rstudio-server-0.98.1103-1.x86_64
(4)全部删除之后,重新装
[root@hadoop1-mysql R]# rpm -ivh rstudio-server-0.98.1103-x86_64.rpm
Preparing... ########################################### [100%]
1:rstudio-server ########################################### [100%]
useradd: user 'rstudio-server' already exists
groupadd: group 'rstudio-server' already exists
rsession: 没有进程被杀死
rstudio-server start/running, process 10000
[root@hadoop1-mysql R]# ps -ef | grep rstudio-server498 10000 1 1 07:20 ? 00:00:00 /usr/lib/rstudio-server/bin/rserverroot 10016 23633 0 07:20 pts/0 00:00:00 grep rstudio-server
成功了。