[R-SIG-Mac] Could not install Package:pdftools in Mac lion 10.7.5

Christofer Bogaso bogaso.christofer at gmail.com
Tue Dec 27 19:05:18 CET 2016


Hi,

I am trying to install "pdftools" package in R from source, however
could not succeeded due to following error.

Source file is downloaded from
https://cran.r-project.org/web/packages/pdftools/index.html

Appreciate for any pointer how to install it properly.

I am using R version 3.2.1 (2015-06-18)

The loading error :

tar: Failed to set default locale
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
* installing *source* package 'pdftools' ...
** package 'pdftools' successfully unpacked and MD5 sums checked
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/local/Cellar/poppler/0.50.0/include/poppler/cpp
-I/usr/local/Cellar/poppler/0.50.0/include/poppler
Using PKG_LIBS=-L/usr/local/Cellar/poppler/0.50.0/lib -lpoppler-cpp
** libs
llvm-g++-4.2 -arch x86_64
-I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I/usr/local/Cellar/poppler/0.50.0/include/poppler/cpp
-I/usr/local/Cellar/poppler/0.50.0/include/poppler
-I/usr/local/include
-I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"
  -fPIC  -mtune=core2 -g -O2  -c RcppExports.cpp -o RcppExports.o
llvm-g++-4.2 -arch x86_64
-I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I/usr/local/Cellar/poppler/0.50.0/include/poppler/cpp
-I/usr/local/Cellar/poppler/0.50.0/include/poppler
-I/usr/local/include
-I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"
  -fPIC  -mtune=core2 -g -O2  -c bindings.cpp -o bindings.o
llvm-g++-4.2 -arch x86_64
-I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I/usr/local/Cellar/poppler/0.50.0/include/poppler/cpp
-I/usr/local/Cellar/poppler/0.50.0/include/poppler
-I/usr/local/include
-I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"
  -fPIC  -mtune=core2 -g -O2  -c init.cpp -o init.o
llvm-g++-4.2 -arch x86_64 -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
-L/usr/local/lib -o pdftools.so RcppExports.o bindings.o init.o
-L/usr/local/Cellar/poppler/0.50.0/lib -lpoppler-cpp
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.2/Resources/library/pdftools/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
'/Library/Frameworks/R.framework/Versions/3.2/Resources/library/pdftools/libs/pdftools.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/library/pdftools/libs/pdftools.so,
6): Symbol not found: __ZN7poppler14version_stringEv
  Referenced from:
/Library/Frameworks/R.framework/Versions/3.2/Resources/library/pdftools/libs/pdftools.so
  Expected in: flat namespace
 in /Library/Frameworks/R.framework/Versions/3.2/Resources/library/pdftools/libs/pdftools.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/pdftools'
* restoring previous
'/Library/Frameworks/R.framework/Versions/3.2/Resources/library/pdftools'



More information about the R-SIG-Mac mailing list