我正尝试在公司的Debian机器上启动一个闪亮的服务器。基于wiki:https://github.com/rstudio/shiny-server/wiki/Building-Shiny-Server-from-Source,我选择“从源代码构建服务器”,因为Debian不是一个受支持的发行版。
我是按照指示一步一步来的。然而,当我试图运行时,我出现了一个错误:
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DPYTHON="$PYTHON" ../
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at external/pandoc/CMakeLists.txt:14 (file):
file DOWNLOAD HASH mismatch
for file: [/home/mli/shiny_server/shiny-server/tmp/external/pandoc/pandoc-1.12.3.zip]
expected hash: [1541304bf51d86e361b7d930f899ac1c]
actual hash: [d41d8cd98f00b204e9800998ecf8427e]
status: [7;"Couldn't connect to server"]
错误的详细信息如下所示:
mkdir: cannot create directory ‘/home/mli/shiny_server/shiny-server/tmp/external/pandoc/pandoc-1.12.3.zip’: File exists
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
我已经找了几天的解决办法了,但是还没有什么对我真正有效的。如果有人能在这方面帮助我,那就太好了。
作为替代,我还下载了“shiny-server-1.3.0.403-amd64.deb”并安装了“$ sudo gdebi”。它成功安装了,但出现了一个小错误消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done
Shiny Server
Shiny Server is a server program from RStudio, Inc. that makes Shiny applications available over the web. Shiny is a web application framework for the R statistical computation language.
Do you want to install the software package? [y/N]:y
Selecting previously unselected package shiny-server.
(Reading database ... 49759 files and directories currently installed.)
Preparing to unpack shiny-server-1.3.0.403-amd64.deb ...
Unpacking shiny-server (1.3.0.403) ...
Setting up shiny-server (1.3.0.403) ...
User shiny already exists
grep: /etc/init/shiny-server.conf: No such file or directory
Adding LANG to /etc/init.d/shiny-server, setting to en_US.UTF-8
但是,我无法通过以下方式启动服务器:
$ sudo start shiny-server
运行“start”命令后没有任何React。另外,我的Debian版本如下:
Distributor ID: Debian
Description: Debian GNU/Linux 8.4 (jessie)
Release: 8.4
Codename: jessie
1条答案
按热度按时间vohkndzv1#
在gdebi安装之后,你可以运行/usr/bin/shiny-server来启动服务器