Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error #49

Open
Jiayi-Wang-Joey opened this issue Mar 24, 2023 · 2 comments
Open

compilation error #49

Jiayi-Wang-Joey opened this issue Mar 24, 2023 · 2 comments

Comments

@Jiayi-Wang-Joey
Copy link

Hi Thanks for your great work!

I was trying to install LEMUR on R, however I have encountered this error.

ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [glmGamPoi.so] Error 1
ERROR: compilation failed for package ‘glmGamPoi’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/glmGamPoi’
Warning: installation of package ‘/var/folders/jp/zptlfyzn5z3dz53d2c0hcft40000gn/T//RtmpDqImAo/file5611ee0480b/glmGamPoi_1.11.8.tar.gz’ had non-zero exit status

I have tried to re-install the x-code that you mentioned in another same issue. However, I still give this error. I am using MacBook with M1 chip, will this be a problem?

Thanks in advance!

Kind regards,
Jiayi

@const-ae
Copy link
Owner

Hi Jiayi,

Thanks for reaching out and sorry about the trouble installing the package.

Have you tried to install gfortran using the instructions from https://mac.r-project.org/tools/ Apple silicon macs?

Best, Constantin

@const-ae
Copy link
Owner

Alternatively, if you feel a bit adventurous, I just saw an announcement on Twitter for a new R package that is trying to resolve these issues by setting up the compilation toolchain for you: https://mac.thecoatlessprofessor.com/macrtools/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants