Comments (12)
You're absolutely sure you have Boost? This is distinct from having the BH package, since that's header-only libraries (and regex is not header-only)
from uap-r.
I do have Boost but it may not be in the right directory. Do I have to have it in the same directory I am installing uap-r
to? Right now it is in Program Files (windows 7)
from uap-r.
Oh god, Windows. That might do it. I can't speak for this package (haven't even tried it on Windows) but I've had a devil of a time getting boost to work with R packages on that platform :(
from uap-r.
Ah, gotcha...sorry to hear. If I get it working by shuffling files around or changing config files I will let you know
from uap-r.
Please do!
from uap-r.
It's possible to pass the path to boost through modifying the src/Makevars file, adding something like the following: PKG_CPPFLAGS = -I"C:\Boost\boost_1_59_0" Something similar should be done with yaml-cpp lib.
I overcame these two obstacles, yet haven't exhausted all the problems.
from uap-r.
Hmn. What are the remaining problems? (and would that work uniformly given that boost's install location can, well, vary?)
from uap-r.
FWIW I'm working on a version that removes the boost and YAML dependencies (at the cost of "some regexes won't work")
from uap-r.
Here on Windows 10
have similar issue:
devtools::install_github("ua-parser/uap-r")
Downloading GitHub repo ua-parser/uap-r@master
from URL https://api.github.com/repos/ua-parser/uap-r/zipball/master
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 3.4.4 was found. (Only the following incompatible version(s) of Rtools were found:3.5)
Please download and install Rtools 3.4 from http://cran.r-project.org/bin/windows/Rtools/.
Installing uaparser
"C:/PROGRA~1/Microsoft/R Open/R-3.4.4/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD \
INSTALL "C:/Users/liang/AppData/Local/Temp/RtmpacAcXq/devtools22a42a365a75/ua-parser-uap-r-b90070e" \
--library="C:/Users/liang/Documents/R/win-library/3.4" --install-tests
* installing *source* package 'uaparser' ...
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
Warning: 运行命令'make -f "Makevars" -f "C:/PROGRA~1/Microsoft/R Open/R-3.4.4/etc/x64/Makeconf" -f "C:/PROGRA~1/Microsoft/R Open/R-3.4.4/share/make/winshlib.mk" CXX='$(CXX11) $(CXX11STD)' CXXFLAGS='$(CXX11FLAGS)' CXXPICFLAGS='$(CXX11PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX11LDFLAGS)' SHLIB_LD='$(SHLIB_CXX11LD)' SHLIB="uaparser.dll" WIN=64 TCLBIN=64 OBJECTS="RcppExports.o internal_UaParser.o internal_ua_parser.o ua_parse.o"'的状态是127
ERROR: compilation failed for package 'uaparser'
* removing 'C:/Users/liang/Documents/R/win-library/3.4/uaparser'
In R CMD INSTALL
Installation failed: Command failed (1)
sessionInfo()
#> R version 3.4.4 (2018-03-15)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 17134)
#>
#> Matrix products: default
#>
#> locale:
#> [1] LC_COLLATE=Chinese (Simplified)_China.936
#> [2] LC_CTYPE=Chinese (Simplified)_China.936
#> [3] LC_MONETARY=Chinese (Simplified)_China.936
#> [4] LC_NUMERIC=C
#> [5] LC_TIME=Chinese (Simplified)_China.936
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] compiler_3.4.4 backports_1.1.2 magrittr_1.5 rprojroot_1.3-2
#> [5] tools_3.4.4 htmltools_0.3.6 yaml_2.1.19 Rcpp_0.12.16
#> [9] stringi_1.1.7 rmarkdown_1.9 knitr_1.20 stringr_1.3.0
#> [13] digest_0.6.15 evaluate_0.10.1
from uap-r.
Oh god, Windows. That might do it. I can't speak for this package (haven't even tried it on Windows) but I've had a devil of a time getting boost to work with R packages on that platform :(
Have you managed to make it work on Win 10?
from uap-r.
Oh god, Windows. That might do it. I can't speak for this package (haven't even tried it on Windows) but I've had a devil of a time getting boost to work with R packages on that platform :(
Have you managed to make it work on Win 10?
I managed to make it work back then, though it took me quite some time (two weeks or something) and in the process, I had to learn a bit more about how cpp programs are compiled. Unfortunately, I can't recall the exact set of hacks I used.
from uap-r.
Oh god, Windows. That might do it. I can't speak for this package (haven't even tried it on Windows) but I've had a devil of a time getting boost to work with R packages on that platform :(
Have you managed to make it work on Win 10?
I managed to make it work back then, though it took me quite some time (two weeks or something) and in the process, I had to learn a bit more about how cpp programs are compiled. Unfortunately, I can't recall the exact set of hacks I used.
Thank you for the reply anyway. Will switching to a different OS help to resolve the issue?
from uap-r.
Related Issues (10)
- How to install? HOT 1
- Fails testing - Library not loaded: libboost_regex.dylib HOT 8
- Problems installing it on rstudio (windows) HOT 1
- uap-r fails to build with new YAML libraries HOT 2
- fatal error: 'boost/regex.hpp' file not found HOT 3
- Upgrade to yaml 0.5 HOT 2
- Refactor to remove glog dependency HOT 1
- parse_agents crashes RStudio HOT 5
- Making a note here re: OS X HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uap-r.