Pls help with install errors

trying to install on Centos 7.3.1611
R 3.6.0

Thanks for any help!
-Neal

libtool: compile: g++ -m64 -std=gnu++11 -DHAVE_CONFIG_H -I. -I… -I…/api -O2 -g -pipe -Wall -Wp,-D_FORTIFY_
SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=ge
neric -MT rescale.lo -MD -MP -MF .deps/rescale.Tpo -c rescale.c -o rescale.o >/dev/null 2>&1
mv -f .deps/rescale.Tpo .deps/rescale.Plo
/bin/sh …/libtool --tag=CC --mode=link g++ -m64 -std=gnu++11 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -
o libutil.la mt19937ar.lo sobolseq.lo timer.lo stop.lo redblack.lo qsort_r.lo rescale.lo -lm
libtool: link: ERROR: no information for variable ‘AR’ cru .libs/libutil.a .libs/mt19937ar.o .libs/sobolseq.o
.libs/timer.o .libs/stop.o .libs/redblack.o .libs/qsort_r.o .libs/rescale.o
…/libtool: line 1102: ERROR:: command not found
make[2]: *** [libutil.la] Error 127
make[2]: Leaving directory /tmp/RtmploAlns/R.INSTALL22c3312ac70c/nloptr/src/nlopt_src/util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /tmp/RtmploAlns/R.INSTALL22c3312ac70c/nloptr/src/nlopt_src’
make: *** [all] Error 2
ERROR: configuration failed for package ‘nloptr’
-----------------------------[ ANTICONF ]-------------------------------
Configuration failed to find the libv8 engine library. Try installing:

  • deb: libv8-dev or libnode-dev (Debian / Ubuntu)
  • rpm: v8-devel (Fedora, EPEL)
  • brew: v8 (OSX)
  • csw: libv8_dev (Solaris)
    Alternatively, on Linux (x86_64) or MacOS you can set environment variable:
    DOWNLOAD_STATIC_LIBV8=1
    to automatically download a static version of libv8.
    To use a custom libv8, set INCLUDE_DIR and LIB_DIR manually via:
    R CMD INSTALL --configure-vars=‘INCLUDE_DIR=… LIB_DIR=…’

The error at the end is saying that you need to install libv8 on your system. It’s suggesting with Ubuntu that would be the libv8-dev package. I’m not sure what the package would be for Centos 7.3, but hopefully there is one available to install.

Or run

Sys.setenv(DOWNLOAD_STATIC_LIBV8 = 1)
install.packages("V8")

and try installing brms again.

1 Like