Skip to content

Building Shiny Server from Source

Jeff Allen edited this page Oct 17, 2013 · 33 revisions

RStudio provides some pre-compiled installers for Shiny Server. If you're using Ubuntu 12.04 (64 bit) or CentOS/RHEL 5 (64 bit), we recommend that you use one of these pre-built installers. If you're on a different distribution or prefer to build from source, these instructions may help.

Prerequisites

The following software must be available on the system before continuing:

  • python 2.6 or 2.7 (Really. 3.x will not work)
  • cmake (>= 2.8.10) (see cmake section below if an appropriate version isn't available on your system)
  • gcc
  • g++
  • git
  • R-base-devel - Many distributions provide two packages when distributing R: one for base R and one "devel" package which is helpful in building extra packages, among other things. In addition to base R, Shiny Server requires many of the components typically included in the "devel" packages, such as libpng and libjpg. If you're on a platform that doesn't have such a "devel" package, be sure to include these components when installing R.

Finally, you must install the Shiny package in the system-wide library. One way to do that is the following command:

sudo su - -c "R -e \\"install.packages('shiny', repos='http://cran.rstudio.com/')\\""

Installation

Building cmake

Some distributions may not have an appropriate version of cmake available in their package repository. In this case, cmake must be built from source.

//TODO