![]() Loaded via a namespace (and not attached): stats graphics grDevices utils datasets methods base LAPACK: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/lib/libRlapack.dylib Platform: aarch64-apple-darwin20 (64-bit) Julian (-bash) :~$ /opt/homebrew/opt/llvm/bin/clang -help | head -2 LDFLAGS=-L"$(LLVM_LOC)/lib" -L"$(GETTEXT_LOC)/lib" -Wl,-rpath,$(LLVM_LOC)/lib -sysroot="$(XC_LOC)" -lompĬPPFLAGS=-I"$(GETTEXT_LOC)/include" -I"$(LLVM_LOC)/include" -I"$(OMP_LOC)/include" -isysroot "$(XC_LOC)" -Xclang -fopenmpĪnd for reference: julian (-bash) :~$ brew -prefix llvm GETTEXT_LOC:=$(shell brew -prefix gettext)ĬFLAGS=-g -O2 -Wall -pedantic -std=gnu99 -mtune=native -pipeĬXXFLAGS=-g -O2 -Wall -pedantic -std=c++11 -mtune=native -pipe A while back to fix a problem like this, I followed a GitHub issue and edited my Makevars to look like this: julian (-bash) :~$ cat ~/.R/Makevars I see variations on this general error pattern a lot and have brew installed. * removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/zlibbioc’ bin/sh: /bin/clang: No such file or directoryĮRROR: compilation failed for package ‘zlibbioc’ bin/clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/include" -I"/include" -I"/include" -isysroot "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" -Xclang -fopenmp -fPIC -g -O2 -Wall -pedantic -std=gnu99 -mtune=native -pipe -c R_init_zlibbioc.c -o R_init_zlibbioc.o Mkdir -p "/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/00LOCK-zlibbioc/00new/zlibbioc/include" * installing *source* package ‘zlibbioc’. Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘zlibbioc’ ‘S4Vectors’ ‘IRanges’ ‘XVector’ĭo you want to attempt to install these from sources? (Yes/no/cancel) I tried to install a bioconductor package, but failed to build some of its dependencies from source: > BiocManager::install("GenomicRanges")Īlso installing the dependencies ‘zlibbioc’, ‘S4Vectors’, ‘IRanges’, ‘GenomeInfoDb’, ‘XVector’ I'll put more info below, but I'm hoping for your help (1) fixing the problem, and/or (2) finding some resources/readings to help me learn to fish when I have problems like this in the future. A few months ago I went through some hair pulling, and I think I'm missing some basic information about how all this works. Build runs but Install gives the same error.Since moving to an M1 Macbook Air last year, I've had all sorts of installation problems with R packages. I uninstalled both R and RStudio and then installed R from CRAN. "Clean and Build" no longer appears in the Build Tab. Google has not been helpful as most of the URLs returned were created before the arm64 versions were released.Īnything I need to set via Preferences and Options are not clear to me. InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/binĭr. # this produces a lot of text which I skippedĪpple clang version 13.1.6 (clang-1316.0.21.2.5) I think RStudio & Rcpp uses clang (?) % clang -version Mozilla/5.0 (Macintosh Intel Mac OS X 12_5_0) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/.128 Safari/537.36 % which cpp The first thing I had to do was to install the other packages I used.īuilds fails with the error: "make: *** No rule to make target cpp_saveAsBin', needed by fireMapperTools.so'." % which R The package contains some R methods and 1 Rcpp method. When I learned that versions of R and RStudio could run natively were now available I found I had to uninstall the old versions of R and RStudio and then install the arm64 versions. ![]() My first package attempt, using RStudio on an M1 macBook Pro, built, installed and worked it used Rosetta Stone.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |