installation of BioC packages on Mac M1 Monterrey OS
0
0
Entering edit mode
Bogdan ▴ 670
@bogdan-2367
Last seen 6 months ago
Palo Alto, CA, USA

Dear all,

I am installing the usual packages (edger, rtracklayer .., other packages) on a Mac M1 running Monterrey 12.5 OS, and I do encounter the following two issues :

  1. I can not download the binaries for these packages, the message being :
"Warning: unable to access index for repository 

https://bioconductor.org/packages/3.15/books/bin/macosx/big-sur-arm64/contrib/4.2: cannot open URL

'https://bioconductor.org/packages/3.15/books/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES' Package

which is only available in source form, and may need compilation of C/C++/Fortran: ‘edgeR’"

  1. When I do compile edgeR from source, I am getting the following error messages :

a. shall I setup .libPaths() to a personal folder only :

 .libPaths("/Users/tanasab/Desktop/SOFTWARE/R")

the error message is :

The downloaded source packages are in
    ‘/private/var/folders/lx/q0dsb0_n2s3gx5jyzk2wkxwr0000gn/T/RtmpgerV9u/downloaded_packages’
Installation paths not writeable, unable to update packages
  path: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library

b. OK, it is expected, but shall I setup .libPaths() to a personal folder + OS folders,

.libPaths(c("/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library", 
"/Users/tanasab/Library/R/arm64/4.2/library", 
"/Users/tanasab/Desktop/SOFTWARE/R"))

the error message is :

Warning in install.packages(...) :
  'lib = "/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library"' is not writable
Would you like to use a personal library instead? (yes/No/cancel) 

and at the end of the compilation :

Installation paths not writeable, unable to update packages
  path: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library
  packages:
    cluster, foreign, MASS, Matrix, nlme, nnet, survival
Warning message:
In install.packages(...) :
  installation of package ‘edgeR’ had non-zero exit status
  1. The R version that I am using is 4.2.1

  2. I have checked many previous postings for example :

http://yiqingxu.org/public/BigSurError.pdf

those solutions did not work for me.

Thank you for your help,

Bogdan

ps : The R Version :

> R.Version()
$platform
[1] "aarch64-apple-darwin20"

$arch
[1] "aarch64"

$os
[1] "darwin20"

$system
[1] "aarch64, darwin20"

$status
[1] ""

$major
[1] "4"

$minor
[1] "2.1"

$year
[1] "2022"

$month
[1] "06"

$day
[1] "23"

$`svn rev`
[1] "82513"

$language
[1] "R"

$version.string
[1] "R version 4.2.1 (2022-06-23)"

$nickname
[1] "Funny-Looking Kid"
limma Bioconductor edgeR • 2.3k views
ADD COMMENT
1
Entering edit mode

After testing multiple approaches, I can say that the approach suggested by Herve Pages on the page "problems about installation of package ‘Rhtslib’, ‘Rsamtools’ ,‘GenomicAlignments’ , ‘ShortRead’ on macOS Big Sur using R 4.1.0" works.

Quoting Herve Pages :

"Please be aware that Bioconductor does not support the Apple M1 (a.k.a. arm64) architecture in native mode yet, only via Rosetta, which is the emulator built into macOS Big Sur that enables Mac M1 systems to run Intel x86_64 apps. Concretely this means that if you are on an Apple M1 system, we strongly recommend that you use the official Intel 64-bit R (x86_64 arch) from CRAN available here: https://cran.r-project.org/bin/macosx/ (choose R-4.1.0.pkg, NOT R-4.1.0-arm64.pkg). This will run on the Apple M1 platform in emulation mode."

ADD REPLY

Login before adding your answer.

Traffic: 668 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6