On May 19 17:26:07, [email protected] wrote:
> On Tue, May 19, 2015 at 04:29:49PM +0200, David Coppa 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.
>
> Alternatively, (temporarily for the installation) add
>
> LDFLAGS=-lkvm
>
> to ~/.R/Makevars as described in
> /usr/local/share/doc/pkg-readmes/R-3.2.0p0. I added the corresponding
> paragraph on customizing package compilation to address such issues (as
> described at
> http://cran.r-project.org/doc/manuals/r-devel/R-admin.html#Customizing-package-compilation
> in more detail) in the package readme starting with R 3.2.0.
Right. I didn't notice there was a readme
- it's actually all there. Thanks again.
Jan