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

Ubuntu 17.10 - R 3.4.4 - failed - install.packages("stringi", configure.vars="ICUDT_DIR=/home/rpy2/tmp/", configure.args='--disable-cxx11') #302

Closed shanemeister closed 6 years ago

shanemeister commented 6 years ago

Upgraded R on my Ubuntu 17.10 laptop, and realized that I needed to reinstall a bunch of packages. Installed 'markdown' with no problems, but 'rmarkdown failed: ` trying with disabled C++11 compiler checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether the C++ compiler supports the long long type... no verify your C++ compiler's abilities (long long, STL, etc. support) ERROR: configuration failed for package ‘stringi’

I read several of your posts, and attempted the following: install.packages("stringi", configure.vars="ICUDT_DIR=/home/rpy2/tmp/", configure.args='--disable-cxx11')

And received the following error:

`checking whether g++ accepts -g... yes checking whether the C++ compiler supports the long long type... no *** verify your C++ compiler's abilities (long long, STL, etc. support) ERROR: configuration failed for package ‘stringi’

Not sure where to go from here. I also read several of your posts regarding the https://github.com/gagolews/stringi/blob/master/INSTALL but still did not work.

I read a couple of your responses requesting specific config files, but not sure how to provide those.

Any guidance/assistance will be greatly appreciated.

shanemeister commented 6 years ago

Also, attempted: devtools::install_github("gagolews/stringi")

with similar results: checking whether the C++ compiler supports the long long type... no *** stringi cannot be build. Check your compiler flags (Makeconf, Makevars, etc.). *** also, verify your C++ compiler's abilities (long long, STL, etc. support) ERROR: configuration failed for package ‘stringi’ * removing ‘/home/rpy2/R/x86_64-pc-linux-gnu-library/3.4/stringi’ Installation failed: Command failed (1)

gagolews commented 6 years ago

Hi, sorry for a late response.

Perhaps your default compiler flags are corrupt (?)

Could you show me your Makeconf file? (e.g. /usr/lib64/R/etc/Makeconf or /etc/R/Makeconf or somewhere else)

shanemeister commented 6 years ago

I have two Makeconf files at: /etc/R/Makeconf /usr/lib/R/etc/Makeconf

Maybe that's the problem?

Makeconf.zip

Thanks for any guidance/ideas you may have. BTW, works fine on my Mac.

gagolews commented 6 years ago

The latter is just a symbolic link pointing to the former one. The problem's not here.

gagolews commented 6 years ago

Are you able to compile other packages, say, Rcpp or dplyr?

shanemeister commented 6 years ago

dplyr installed fine, but reshape2 had the following error:

`checking whether the C++ compiler supports the long long type... no *** verify your C++ compiler's abilities (long long, STL, etc. support) ERROR: configuration failed for package ‘stringi’

Guess it is not a 'stringi' issue.

gagolews commented 6 years ago

well.. the first error is "configuration failed for package ‘stringi’"

shanemeister commented 6 years ago

Oops! Ok, disregard -- my mistake. For the most part this is above my head. Just trying to get RStudio to knit rmd files, and all roads led here as I attempted to install the rmarkdown.

gagolews commented 6 years ago

Which version of g++ do you use? g++ -v in the console.. I'd also wonder if reinstalling R itself (via apt-get or sth) would do the trick

shanemeister commented 6 years ago

gcc version 6.4.0 20171010 (Ubuntu 6.4.0-8ubuntu1)

I am reintalling R now.

shanemeister commented 6 years ago

Reinstalled it and am receiving the same errors.

2002 sudo apt-get --purge remove r-base 2003 sudo apt-get --purge remove r-base-dev 2004 sudo apt-get --purge remove r-base-core 2005 R 2006 sudo apt-get install r-base-core 2007 sudo apt-get install r-base 2008 sudo apt-get install r-base-dev

gagolews commented 6 years ago

What about just apt-getting r-cran-stringi ?

shanemeister commented 6 years ago

Thanks for your help! That fixed it. Installing 'stringi' outside of RStudio seemed to fix the problem. 'stringi' now shows up under the System Library. Wonder if there is a permissions issue with my User Library? Anyway, I am good now -- thanks for your time and my apologies for bothering you with this!

JOduMonT commented 4 years ago

What about just apt-getting r-cran-stringi ?

I tried apt install r-cran-stringi and it say r-cran-stringi : Depends: r-api-3.4

but these line did the trick for me

sudo apt purge -y r-base r-base-core r-base-dev
sudo apt install -y r-base r-base-core r-base-dev