On May 19 16:29:49, [email protected] wrote:
> On Tue, May 19, 2015 at 4:24 PM, David Coppa <[email protected]> wrote:
> > On Tue, May 19, 2015 at 4:08 PM, Jan Stary <[email protected]> wrote:
> >> Dear R users,
> >>
> >> this is my first time using R; I have this piece of R software
> >> that I am trying to run. It has some dependencies, most of which
> >> install just fine using install.packages("package");
> >>
> >> The installation of "httpuv", which I need as a dependence of "shiny",
> >> fils with the following error (full script below):
> >>
> >> --- cut ---
> >> ** testing if installed package can be loaded
> >> /usr/local/lib/R/bin/exec/R:/home/hans/R/x86_64-unknown-openbsd5.7-library/3.1/httpuv/libs/httpuv.so:
> >> undefined symbol 'kvm_open'
> >> /usr/local/lib/R/bin/exec/R:/home/hans/R/x86_64-unknown-openbsd5.7-library/3.1/httpuv/libs/httpuv.so:
> >> undefined symbol 'kvm_close'
> >> /usr/local/lib/R/bin/exec/R:/home/hans/R/x86_64-unknown-openbsd5.7-library/3.1/httpuv/libs/httpuv.so:
> >> undefined symbol 'kvm_getprocs'
> >> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> >> unable to load shared object
> >> '/home/hans/R/x86_64-unknown-openbsd5.7-library/3.1/httpuv/libs/httpuv.so':
> >> Cannot load specified object
> >> Error: loading failed
> >> Execution halted
> >> ERROR: loading failed
> >> * removing '/home/hans/R/x86_64-unknown-openbsd5.7-library/3.1/httpuv'
> >
> > For some reasons httpuv.so is not linked with '-lkvm'.
> >
> > Maybe try with:
> >
> > env LDFLAGS="-lkvm" R CMD INSTALL etc...
>
> After reading the documentation ( :) :) ),
>
> MAKEFLAGS='LDFLAGS=-lkvm' R CMD INSTALL ...
>
> Should do the trick.
Yes it does, for both 3.1.2 and 3.2; thank you!
Jan