Failed to install RcppEigen in Mac M1 Max Monterey

19 views
Skip to first unread message

Min Dai

unread,
Jul 8, 2022, 8:42:21 AM7/8/22
to R Special Interest Group on Mac Development
Hi,

When I installed RccEigen from CRAN, I met the following error message:
```

make: *** [/Users/dai/Software/miniforge3/envs/scda3/lib/R/etc/Makeconf:177: RcppEigen.o] Error 1

ERROR: compilation failed for package ‘RcppEigen’

* removing ‘/Users/dai/Software/miniforge3/envs/scda3/lib/R/library/RcppEigen’

```
and the line 177 in Makeconf is:
```
    $(CXX) $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) -c $< -o $@
```

and the session info is:
```

> sessionInfo()

R version 4.1.3 (2022-03-10)

Platform: aarch64-apple-darwin20.0.0 (64-bit)

Running under: macOS Monterey 12.3


Matrix products: default

BLAS:   /Users/dai/Software/miniforge3/envs/scda3/lib/R/lib/libRblas.dylib

LAPACK: /Users/dai/Software/miniforge3/envs/scda3/lib/R/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     


loaded via a namespace (and not attached):

[1] compiler_4.1.3 tools_4.1.3

```

I have tried many different methods in order to solve this problem, but did not make it.

Thanks in advance!


Best,

Min

Reply all
Reply to author
Forward
0 new messages