It is not support by default. However, below is a quick guide how to to that.
Prequsites:
- install homebrew
-
hombrew install boost openssl
- install jdk, downloaded from oracle site, I use jdk 1.8.
- get the source code of rstudio. rstudio and rstudio-server are inside the same source code repository Rstudio GitHub
- Open INSTALL to see further instructions, enter the source code directory (~/Downloads/tmp/rstudio):
- open install-common, and comment the line 23 (./install-boost) because it is installed by homebrew
- run dependencies/common/install-common to install pre-quisite requirements, it will need your sudo power to copy the pam file.
-
mkdir build
-
cd build
-
cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=~/rstudio-server # change the directory to your expectation, here I simply put it in my home folder ~/rstudio-server
-
make -j9 install # run make in 9 threads
-
./rserver –www-address 127.0.0.1 –www-port 8080 –auth-minimum-user-id=500 # enter ~/rstudio-server/bin, and run it, the default port is 8787, here i change the port to 8080
that is it!
- Take a sip of water