dieterich-lab / JACUSA2helper

Auxiliary R package for assessment of JACUSA2 results
https://dieterich-lab.github.io/JACUSA2helper/
GNU General Public License v3.0
3 stars 2 forks source link

Installation of JACUSA2helper-1.99-9600 fails #21

Open annehr opened 1 year ago

annehr commented 1 year ago

Hi Michael, I am having an issue installing JACUSA2helper. When I try installation, I get the following message:

install_github("dieterich-lab/JACUSA2helper", dependencies = TRUE, build_vignettes = TRUE, type="source") Downloading GitHub repo dieterich-lab/JACUSA2helper@HEAD Error: Failed to install 'JACUSA2helper' from GitHub: Could not find tools necessary to compile a package Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem. pkgbuild::check_build_tools(debug = TRUE) Trying to compile a simple C file Running /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB foo.c /usr/local/clang4/bin/clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c foo.c -o foo.o /bin/sh: /usr/local/clang4/bin/clang: No such file or directory make: *** [foo.o] Error 127 Error: Could not find tools necessary to compile a package Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.

When I first download from releases and then try to install, I get the following message:

install.packages("/Applications/JACUSA2helper-1.99-9600.tar.gz", repos = NULL, type = "source") Warning in untar2(tarfile, files, list, exdir, restore_times) : skipping pax global extended headers

  • installing source package ‘JACUSA2helper’ ... using staged installation libs /usr/local/clang4/bin/clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o /bin/sh: /usr/local/clang4/bin/clang++: No such file or directory make: *** [RcppExports.o] Error 127 ERROR: compilation failed for package ‘JACUSA2helper’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/JACUSA2helper’
  • restoring previous ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/JACUSA2helper’ Warning in install.packages : installation of package ‘/Applications/JACUSA2helper-1.99-9600.tar.gz’ had non-zero exit status

I am using:

R version 4.2.2 (2022-10-31) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Ventura 13.0.1

Any help is appreciated! Thanks!