OpenMx fails to install under R-4.1.3 Linux, omp.h file not found error

Posted on
No user picture. arinbasu Joined: 06/09/2011
I tried to install OpenMx in Void linux.
The R version is 4.1.3
(I have not installed 4.2.0 as it is not yet available on their servers and I did not want to install myself)
On install.packages("OpenMx"), it halts as it cannot find `omp.h` file.
However, `omp.h` file is present in the following location:

/usr/lib/clang/12.0.1/include/omp.h

How can I make sure that OpenMx installation can "see" this file?

Would greatly appreciate your guidance.

Best,
Arin

Replied on Fri, 06/03/2022 - 10:15
No user picture. lf-araujo Joined: 11/25/2020

It seems omp-devel is available in Void's repos: https://voidlinux.org/packages/?arch=x86_64&q=omp-devel

Could you please try installing these listed in the link above and trying again?

Instructions for xbps-install can be found here: https://docs.voidlinux.org/xbps/index.html

Replied on Sun, 06/05/2022 - 04:49
No user picture. arinbasu Joined: 06/09/2011

Thanks for solving this, @if-araujo !
Installing libgomp-devel, libseccomp-devel solved the problem.
Libomp-devel was already installed.
Leaving it here just in case other Void Linux users who'd like to install OpenMx and running into problems may benefit.
Best,
Arin Basu
Replied on Fri, 08/19/2022 - 23:23
No user picture. thenameoftaste Joined: 08/13/2022

Aww. I was facing the same issue [!](http://getalightmotion.com "a") I searched "OpenMx fails to install under R-4.1.3 Linux, omp.h file not found error" at Google and landed on this page. Also fixed my problem.

Thank you so much....

Also I love your youtube channel. Keep updating.