Closed shanemeister closed 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)
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)
I have two Makeconf files at: /etc/R/Makeconf /usr/lib/R/etc/Makeconf
Maybe that's the problem?
Thanks for any guidance/ideas you may have. BTW, works fine on my Mac.
The latter is just a symbolic link pointing to the former one. The problem's not here.
Are you able to compile other packages, say, Rcpp
or dplyr
?
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’
Warning in install.packages : installation of package ‘reshape2’ had non-zero exit status
Guess it is not a 'stringi' issue.
well.. the first error is "configuration failed for package ‘stringi’"
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.
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
gcc version 6.4.0 20171010 (Ubuntu 6.4.0-8ubuntu1)
I am reintalling R now.
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
What about just apt-getting r-cran-stringi
?
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!
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
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.