Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install quanteda.textstats due to compiler problem #76

Open
Yann-C-INN opened this issue Apr 10, 2024 · 0 comments
Open

Cant install quanteda.textstats due to compiler problem #76

Yann-C-INN opened this issue Apr 10, 2024 · 0 comments

Comments

@Yann-C-INN
Copy link

Yann-C-INN commented Apr 10, 2024

R version:

platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 3.2
year 2023
month 10
day 31
svn rev 85441
language R
version.string R version 4.3.2 (2023-10-31 ucrt)
nickname Eye Holes

Trying to install quanteda.textstats using tar.gz since regular installation was not working (same issue eventually) :
install.packages("https://cran.r-project.org/src/contrib/quanteda.textstats_0.97.tar.gz", repos=NULL, type="source")

The errors I get:

g++ -std=gnu++17  -I"C:/Users/[..]/AppData/Local/Programs/R/R-43~1.2/include" -DNDEBUG  -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/Rcpp/include' -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/RcppArmadillo/include' -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/quanteda/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -DARMA_64BIT_WORD=1 -DTBB   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17  -I"C:/Users/[..]/AppData/Local/Programs/R/R-43~1.2/include" -DNDEBUG  -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/Rcpp/include' -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/RcppArmadillo/include' -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/quanteda/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -DARMA_64BIT_WORD=1 -DTBB   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c collocations.cpp -o collocations.o
In file included from collocations.cpp:1:
C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/quanteda/include/lib.h:5:10: fatal error: RcppParallel.h: No such file or directory
    5 | #include <RcppParallel.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [C:/Users/[..]/AppData/Local/Programs/R/R-43~1.2/etc/x64/Makeconf:272: collocations.o] Error 1
ERROR: compilation failed for package 'quanteda.textstats'
removing 'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/quanteda.textstats'
Warning in install.packages :
  installation of package ‘C:/Users/[..]/AppData/Local/Temp/RtmpC03gUe/downloaded_packages/quanteda.textstats_0.97.tar.gz’ had non-zero exit status

quanteda is 3.3.1, and i cant seem to install the newest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant