gagolews / stringi

Fast and portable character string processing in R (with the Unicode ICU)
https://stringi.gagolewski.com/
Other
304 stars 44 forks source link

ICU library download not recognised #322

Closed nolanp2 closed 6 years ago

nolanp2 commented 6 years ago

Hey,

I'm trying to get this installed on a linux server with no internet access, with a windows machine which can only download from cran. I had IT download the file 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt55l.zip' as this was where the stringi package was trying to go to get the ICU lib, but providing it via configure.args is not working .

my call is

install.packages( grep("stringi",all_packages,value = T)[1] , repos = NULL , type="source" ,lib = .libPaths()[1] ,quiet = F ,configure.vars="ICUDT_DIR=Documents" )

and printout is

  • installing source package ‘stringi’ ... package ‘stringi’ successfully unpacked and MD5 sums checked checking for local ICUDT_DIR... Documents checking for R_HOME... /usr/lib64/R checking for R... /usr/lib64/R/bin/R checking for R >= 3.1.0 for C++11 use... yes checking for R < 3.4.0 for CXX1X flag use... no checking for cat... /usr/bin/cat checking for gcc... gcc -m64 -std=gnu99 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 -m64 -std=gnu99 accepts -g... yes checking for gcc -m64 -std=gnu99 option to accept ISO C89... none needed checking how to run the C preprocessor... g++ -m64 -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking elf.h usability... yes checking elf.h presence... yes checking for elf.h... yes checking whether we are using the GNU C++ compiler... yes checking whether g++ -m64 -std=gnu++11 accepts -g... yes checking whether the C++ compiler supports the long long type... yes checking whether the compiler implements namespaces... yes checking whether the compiler supports Standard Template Library... yes checking whether std::map is available... yes checking for pkg-config... /usr/bin/pkg-config checking with pkg-config for the system ICU4C... 50.1.2 checking for ICU4C >= 52... no ** ICU4C 50.1.2 has been detected Minimal requirements, i.e., ICU4C >= 52, are not met Trying with "standard" fallback flags checking whether we may build an ICU4C-based project... yes checking programmatically for sufficient U_ICU_VERSION_MAJOR_NUM... no The available ICU4C cannot be used checking whether we may compile src/icu55/common/umapfile.c... yes checking whether we may compile src/icu55/common/putil.cpp... yes checking whether we can fetch icudt... downloading the ICU data library (icudt) output path: Documents/icudt55l.zip trying URL 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt55l.zip' Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt55l.zip'

Is the file not what I'm looking for for a linux machine? Or am I missing something else here?

Thanks

nolanp2 commented 6 years ago

Closing as I found my error, I wasn't pointing at the library from my root. changing the last line to configure.vars="ICUDT_DIR=/home/ruser/Documents" fixed my issue.