Skip to content

Fails testing - Library not loaded: libboost_regex.dylib #10

@btskinner

Description

@btskinner

I'm using OS X 10.11.3 (El Capitan) and calling R from the Terminal. libboost_regex.dylib exists in /usr/local/lib. All other dependencies are installed (I believe). Here's the output.

> 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
Installing uaparser
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore CMD INSTALL  \
  '/private/var/folders/p7/5ylvzpld32x89bnkw42jj7dw0000gr/T/RtmpqhWpde/devtoolscdde29e38543/ua-parser-uap-r-cbfdc17'  \
  --library='/Library/Frameworks/R.framework/Versions/3.2/Resources/library'  \
  --install-tests 

* installing *source* package ‘uaparser’ ...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for R... yes
checking for Rscript... yes
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -arch x86_64 -ftemplate-depth-256 accepts -g... yes
checking for boostlib >= 1.4... yes
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex... yes
** libs
clang++ -std=c++11 -I/Library/Frameworks/R.framework/Resources/include     -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"   -fPIC  -Wall -mtune=core2 -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -std=c++11 -I/Library/Frameworks/R.framework/Resources/include     -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"   -fPIC  -Wall -mtune=core2 -g -O2 -c internal_UaParser.cpp -o internal_UaParser.o
clang++ -std=c++11 -I/Library/Frameworks/R.framework/Resources/include     -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"   -fPIC  -Wall -mtune=core2 -g -O2 -c internal_ua_parser.cpp -o internal_ua_parser.o
clang++ -std=c++11 -I/Library/Frameworks/R.framework/Resources/include     -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"   -fPIC  -Wall -mtune=core2 -g -O2 -c ua_parse.cpp -o ua_parse.o
clang++ -std=c++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o uaparser.so RcppExports.o internal_UaParser.o internal_ua_parser.o ua_parse.o -lboost_regex -lboost_system -lyaml-cpp -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.2/Resources/library/uaparser/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/uaparser/libs/uaparser.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/library/uaparser/libs/uaparser.so, 6): Library not loaded: libboost_regex.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.2/Resources/library/uaparser/libs/uaparser.so
  Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/uaparser’
Error: Command failed (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions