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

install error MAC #26

Open
irisjingliu opened this issue Nov 26, 2019 · 4 comments
Open

install error MAC #26

irisjingliu opened this issue Nov 26, 2019 · 4 comments

Comments

@irisjingliu
Copy link

HCLasso.cpp:47:10: fatal error: 'omp.h' file not found
#include <omp.h>
^~~~~~~
1 error generated.
make: *** [HCLasso.o] Error 1
ERROR: compilation failed for package ‘MeDeCom’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/MeDeCom’
    Error: Failed to install 'MeDeCom' from GitHub:
    (converted from warning) installation of package ‘/var/folders/9q/81z1_0x5327cm1cs4r3hkb0c0000gn/T//RtmpdpE8k2/fileb0cdafc229/MeDeCom_0.3.2.tar.gz’ had non-zero exit status
@bravgaev
Copy link
Contributor

bravgaev commented Aug 5, 2021

Hi, I know this issue is pretty old and you probably already fixed it.
But for posterity, I was able to fix this error by enabling OpenMP on Mac with the following tutorial: https://mac.r-project.org/openmp/

@lutsik
Copy link
Member

lutsik commented Aug 5, 2021

Hi, thanks a lot for this fix. Would it it be possible to open a pull request?

@bravgaev
Copy link
Contributor

bravgaev commented Aug 6, 2021

Hi Pavlo, I didn't change any code for this, so I don't think a pull request would be necessary. OpenMP support for compilers is disabled by default on Mac, which causes the above error. No changes to the code have to be made on your end but it might be handy to include it in the README that Mac users might have to enable this at their end to be able to compile the package.

@lutsik
Copy link
Member

lutsik commented Aug 6, 2021

OK, thanks, understood. Then just a pull request to the README perhaps?

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

3 participants