junyangq / snpnet

snpnet: Fast and scalable lasso/elastic-net solver for large SNP data
32 stars 15 forks source link

gfortran error: Bad CPU type in executable #38

Closed garyzhubc closed 3 years ago

garyzhubc commented 3 years ago

When I was trying to install glmnetPlus on latest Mac OS this error showed up so that installation cannot complete.

> install_github("junyangq/glmnetPlus")
Downloading GitHub repo junyangq/glmnetPlus@HEAD
✓  checking for file ‘/private/var/folders/w8/9_5f04c54b585y1kjq898d180000gn/T/RtmpkfueRA/remotesac6688274dc/junyangq-glmnetPlus-755b0e5/DESCRIPTION’ ...
─  preparing ‘glmnetPlus’:
✓  checking DESCRIPTION meta-information ...
─  cleaning src
✓  checking vignette meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘glmnetPlus_2.0-16.tar.gz’

* installing *source* package ‘glmnetPlus’ ...
** using staged installation
** libs
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls  -fPIC  -Wall -g -O2  -c glmnet5dp.f -o glmnet5dp.o
gfortran-4.2: error trying to exec '/usr/local/bin/i686-apple-darwin8-gfortran-4.2': execvp: Bad CPU type in executable
junyangq commented 3 years ago

Hi @garyzhubc We haven't encountered this issue before unfortunately, but before we find a good solution, could you try installing gfortran-6.1 (https://cran.r-project.org/bin/macosx/tools/) and reinstalling the package?

garyzhubc commented 3 years ago

Hi, I tried but unfortunately this doesn't work. However I was managed to get it running in a linux environment.