rvw-org / rvw

R interface to Vowpal Wabbit
22 stars 2 forks source link

Can't install rvw: missing headeres error #20

Closed laresbernardo closed 5 years ago

laresbernardo commented 5 years ago

Hello. I'm trying to install the library with remotes::install_github("rvw-org/rvw") but I'm getting the following error:

Missing headers in /usr/include/
action_score.h, allreduce.h, cb_explore.h, cb.h, comp_io.h, config.h, constant.h, cost_sensitive.h, crossplat_compat.h, example.h, ezexample.h, feature_group.h, floatbits.h, global_data.h, io_buf.h, label_parser.h, learner.h, loss_functions.h, multiclass.h, multilabel.h, parse_example.h, parse_primitives.h, parser.h, simple_label.h, v_array.h, v_hashmap.h, vw_exception.h, vw_validate.h, vw.h, vwdll.h 
Error: Can't find the proper 'include/vowpalwabbit' directory containing Vowpal Wabbit header files.
Execution halted
ERROR: configuration failed for package ‘rvw’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rvw’
Error: Failed to install 'rvw' from GitHub:
  (converted from warning) installation of package ‘/var/folders/hy/8z_f0wrn7qs4pgwqr2l4x4f40000gn/T//RtmpDqZDR4/file623138cdbd9e/rvw_0.6.0.tar.gz’ had non-zero exit status

Here's my session info:

R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.5

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] mltools_0.3.5

loaded via a namespace (and not attached):
 [1] lattice_0.20-38   prettyunits_1.0.2 ps_1.3.0          withr_2.1.2       rprojroot_1.3-2   crayon_1.3.4      packrat_0.5.0     assertthat_0.2.1  grid_3.6.0       
[10] R6_2.4.0          backports_1.1.4   magrittr_1.5      cli_1.1.0         curl_3.3          rstudioapi_0.10   data.table_1.12.2 remotes_2.1.0     callr_3.2.0      
[19] Matrix_1.2-17     tools_3.6.0       compiler_3.6.0    processx_3.3.1    pkgbuild_1.0.3   

Hope you guys can help me! Thanks 👍

eddelbuettel commented 5 years ago

Please install vowpal wabbit as a library and headers, as the error indicates.

eddelbuettel commented 5 years ago

Note thatt the macOS instructions at https://github.com/VowpalWabbit/vowpal_wabbit/wiki/Dependencies suggest brew, but that works poorly R on macOS.

Your best bet, for the time being, are Linux or the Docker containers we provide.

There is a reason the package is not on CRAN.

eddelbuettel commented 5 years ago

I'll add something to the README.md to say that this works best on Linux right now... We also have a dependency on the previous version of VW right now...