Shiny installation fails with "undefined symbol: pthread_atfork"


#1

I am installing Shiny on a Raspberry Pi running on Raspbian (Debian 9 modified for the Raspberry Pi architecture). I have done this before; this is a re-installation after a hard drive replacement. I am following the instructions at http://docs.rstudio.com/shiny-server/#install-shiny. Running
sudo su - -c "R -e "install.packages('shiny', repos = 'https://cran.rstudio.com')""
eventually fails when testing the loading of the httpuv package, with this message:

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, …) :
unable to load shared object '/usr/local/lib/R/site-library/httpuv.so':
/usr/local/lib/R/site-library/httpuv/libs/httpun.so: undefined symbol: pthread_atfork
Error: loading failed

I successfully installed Shiny on this same system two weeks ago. How do I eliminate that error?


#2

I got around this by downloading from CRAN the version of httpuv that was active two weeks ago: httpuv_1.3.6.2.tar.gz
I stored it in /home/fjcc/Downloads
I then ran

sudo su - -c "R -e \"install.packages('/home/fjcc/Downloads/httpuv_1.3.6.2.tar.gz', repos = NULL, type = 'source')\""
sudo su - -c "R -e \"install.packages('shiny', repos = 'https://cran.rstudio.com')\""

This succeeded and I can run
library(shiny)
from inside R.
So it seems the latest shiny is not compatible with the latest httpuv, at least on my R 3.3.3 on a Raspbian O/S but going back to httpuv_1.3.6.2 does work.


#3

use this link to install
http://withr.me/install-shiny-server-on-raspberry-pi/