简体   繁体   English

无法在Linux VM中的Shiny Server上部署Shiny应用程序

[英]Unable to deploy Shiny application on Shiny Server in Linux VM

I have been trying to deploy my shiny application in shiny server which i have installed on Linux VM (RHEL 6.5, 64 bit) by following the instructions given in this site 我一直在尝试部署,我已经按照此说明操作安装在Linux VM(RHEL 6.5,64位)的服务器闪亮闪亮的我申请的网站

The server is started successfully but i get the following when i try to access the sample application provided as a part of the shiny server. 服务器已成功启动,但是当我尝试访问作为闪亮服务器一部分提供的示例应用程序时,得到以下提示。

Error in dyn.load(file, DLLpath = DLLpath, ...) : dyn.load(文件,DLLpath = DLLpath,...)中的错误:
unable to load shared object '/usr/lib64/R/library/Rcpp/libs/Rcpp.so': 无法加载共享对象'/usr/lib64/R/library/Rcpp/libs/Rcpp.so':
/usr/lib64/R/library/Rcpp/libs/Rcpp.so: invalid ELF header /usr/lib64/R/library/Rcpp/libs/Rcpp.so:无效的ELF标头

In addition: Warning message: package 'shiny' was built under R version 3.3.0 另外:警告消息:软件包“ shiny”是在R版本3.3.0下构建的
Error: package or namespace load failed for 'shiny' Execution halted I installed all the required packages without any error still i got this exception when i tried to access the sample application. 错误:“发光”的程序包或名称空间加载失败执行暂停我安装了所有必需的程序包,没有任何错误,但是当我尝试访问示例应用程序时仍然出现此异常。

The following are the steps i followed to install shiny server. 以下是我安装闪亮服务器所遵循的步骤。

  1. Installed R. In my office EPEL repository is blocked since it is maintained by a third party organization. 已安装R。在我的办公室中,EPEL储存库被阻止,因为它是由第三方组织维护的。 So I downloaded the rpm file for R from EPEL website and installed the same using the rpm command. 因此,我从EPEL 网站下载了R的rpm文件,并使用rpm命令安装了该文件。

  2. Next i downloaded the shiny package from the CRAN repository and installed the same using the following command R CMD INSTALL shiny_0.13.2.tgz 接下来,我从CRAN存储库下载了闪亮的软件包,并使用以下命令R CMD INSTALL Shiny_0.13.2.tgz安装了该软件包。

  3. Finally i downloaded and installed the shiny server RPM file. 最后,我下载并安装了闪亮的服务器RPM文件。

The server was successfully installed and started without any errors, yet i get the above error when trying to access the application deployed in the server. 服务器已成功安装并启动,没有任何错误,但是尝试访问服务器中部署的应用程序时出现了以上错误。

I googled a lot for this error but could not find much. 我为这个错误搜索了很多,但是找不到很多。 Has anybody else faced this issue? 还有其他人面对这个问题吗? Could someone help me out with this? 有人可以帮我这个忙吗?

I found out the issue. 我发现了问题。 I installed all the packages as root user but shiny server runs under a different username "shiny". 我以root用户身份安装了所有软件包,但闪亮的服务器在另一个用户名“ shiny”下运行。 In order to solve this I started an R session using the following command 为了解决这个问题,我使用以下命令启动了R会话

sudo R

Then I installed the packages using their source, as my LINUX VM (office machine)did not have internet access. 然后,我使用它们的源安装了软件包,因为我的LINUX VM(办公计算机)没有Internet访问权限。 I used the following command for installing the packages from the source. 我使用以下命令从源代码安装软件包。 First we need to untar the source and then run the following command. 首先,我们需要解压缩源代码,然后运行以下命令。

require(devtools)
install('path-to-the-untared-folder')

The below link helped me in finding out the solution. 下面的链接帮助我找到了解决方案。

R - shiny server on Ubuntu R-Ubuntu上的闪亮服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM