scottzijiezhang / MeRIPtools

4 stars 13 forks source link

Problem when installing MeRIPtools in macbook pro m1 #19

Open xuanxuan-Jin opened 2 years ago

xuanxuan-Jin commented 2 years ago

when i use my computer (macbook pro m1 pro) install a packages ,MeRIPtools, i got a problem as follows: i'm sure i have installed successfully the 7 packages DESeq2, Guitar, qvalue, GenomicAlignments, rtracklayer, Rsamtools, GenomicFeatures. My R version is R-4.1.2.pkg.

> library(devtools)
Loading required package: usethis
> install_github("scottzijiezhang/MeRIPtools")
Downloading GitHub repo scottzijiezhang/MeRIPtools@HEAD
Skipping 7 packages not available: DESeq2, Guitar, qvalue, GenomicAlignments, rtracklayer, Rsamtools, GenomicFeatures
─  preparing ‘MeRIPtools’:vate/var/folders/33/bs7_tbf93qx4_n76_wd85tx40000gn/T/RtmpCy9veH/remotes4b67ff55290/scottzijiezhang-MeRIPtools-626569a/DESCRIPTION’ ...
   checking DESCRIPTION meta-information ...
clang++ -mmacosx-version-min=10.13 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c PoissonGamma.cpp -o PoissonGamma.o
clang++ -mmacosx-version-min=10.13 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
clang++ -mmacosx-version-min=10.13 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o MeRIPtools.so PoissonGamma.o RcppExports.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/33/bs7_tbf93qx4_n76_wd85tx40000gn/T//RtmpCy9veH/file4b67859bac3/MeRIPtools_0.2.1.tar.gz’ had non-zero exit status
xuanxuan-Jin commented 2 years ago

This problem have been solved. Set FLIBS in ~/.R/Makevars to one of the following options: FLIBS=-L/opt/homebrew/opt/gfortran/lib FLIBS=-L/opt/R/arm64/gfortran/lib

F77 = /opt/R/arm64/gfortran/bin/gfortran FC = /opt/R/arm64/gfortran/bin/gfortran