Unable to install plumber on Ubuntu 16

Hi,

I'm trying to install the newest plumber version on Ubuntu 16 server using the usual install.packages command:

install.packages("plumber", repos = "http://cran.us.r-project.org")

The installation starts normally, but then get's to this point:

g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -Ilibuv/include -pthread -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include" -I"/usr/local/lib/R/site-library/later/include"    -DSTRICT_R_HEADERS -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c winutils.cpp -o winutils.o
cp -p -f libuv/m4/lt_obsolete.m4 libuv/m4/lt~obsolete.m4
(cd libuv \
	&& touch aclocal.m4 \
	&& touch -r aclocal.m4 configure Makefile.in \
	&& chmod +x configure \
	&& CC="gcc -std=gnu99" CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -fpic -fvisibility=hidden" AR="ar" RANLIB="ranlib" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro" ./configure "--quiet")

After this, nothing happens and the code times out. Seems that it can not install the dependancy package httpuv. This is the output I get when interrupting the installation:

Makevars:66: recipe for target 'libuv/Makefile' failed
make: *** [libuv/Makefile] Error 1
ERROR: compilation failed for package 'httpuv'
* removing '/usr/local/lib/R/site-library/httpuv'
* restoring previous '/usr/local/lib/R/site-library/httpuv'
* installing *source* package 'plumber' ...
** package 'plumber' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error : object 'parse_json' is not exported by 'namespace:jsonlite'
ERROR: lazy loading failed for package 'plumber'
* removing '/usr/local/lib/R/site-library/plumber'
* restoring previous '/usr/local/lib/R/site-library/plumber' 

Does anyone know what might be the problem? I don't know where to start, I guess I'm missing some dependancies on ubuntu, but not sure which.

All Ubuntu 16.04 builds were ok. I don't how your particular system is setup, maybe check the details on the action to see where things are done differently.

httpuv is installed there

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.