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

Installation of JACUSA2helper-1.99-9600 fails #21

Open
annehr opened this issue Mar 13, 2023 · 0 comments
Open

Installation of JACUSA2helper-1.99-9600 fails #21

annehr opened this issue Mar 13, 2023 · 0 comments

Comments

@annehr
Copy link

annehr commented Mar 13, 2023

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!

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