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

dependency with Matrix ? #75

Closed
danivapp opened this issue Jan 29, 2023 · 1 comment
Closed

dependency with Matrix ? #75

danivapp opened this issue Jan 29, 2023 · 1 comment

Comments

@danivapp
Copy link

I am unable to install the package:

> install.packages("arules")
also installing the dependency ‘Matrix’


  There is a binary version available but the source version is later:
       binary source needs_compilation
Matrix  1.5-1  1.5-3              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) y
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.1/arules_1.7-5.tgz'
Content type 'application/x-gzip' length 2228175 bytes (2.1 MB)
==================================================
downloaded 2.1 MB


The downloaded binary packages are in
	/var/folders/__/zqmql0ln73dc8_qhcnflpyh40000gn/T//RtmpekTHha/downloaded_packages
installing the source package ‘Matrix’

trying URL 'https://cran.rstudio.com/src/contrib/Matrix_1.5-3.tar.gz'
Content type 'application/x-gzip' length 2163568 bytes (2.1 MB)
==================================================
downloaded 2.1 MB

* installing *source* package ‘Matrix’ ...
** package ‘Matrix’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘Matrix’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Matrix’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Matrix’
Warning in install.packages :
  installation of package ‘Matrix’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/__/zqmql0ln73dc8_qhcnflpyh40000gn/T/RtmpekTHha/downloaded_packages’
> library(arules)
Error: package ‘Matrix’ 1.3.3 is loaded, but >= 1.4.0 is required by ‘arules’
In addition: Warning message:
package ‘arules’ was built under R version 4.1.2 

my session info:

> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 13.0.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Matrix_1.3-3

loaded via a namespace (and not attached):
 [1] colorspace_2.0-3 scales_1.1.1     compiler_4.1.0   R6_2.5.1         cli_3.2.0        tools_4.1.0     
 [7] Rcpp_1.0.8.2     cellranger_1.1.0 readxl_1.3.1     grid_4.1.0       lifecycle_1.0.1  munsell_0.5.0   
[13] rlang_1.0.2      lattice_0.20-44 

How can i fix this?

@mhahsler
Copy link
Owner

I am not familiar with installing Matrix from source on macOS.

Here is a similar problem: https://community.rstudio.com/t/xcrun-error-invalid-active-developer-path-library-developer-commandlinetools-missing-xcrun-at-library-developer-commandlinetools-usr-bin-xcrun-error-compilation-failed-for-package-rlang/27553/3

They say that you need to install/update Xcode.

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

2 participants