This is a very strange mistake. I am trying to install a specific R library on an instance of AWS EC2 (Amazon Linux AMI). The link to the AWS forums here posted by someone else really illuminates my issue really well.
The main / relevant part of the error message:
data.table.h:6:12: fatal error: omp.h: No such file or directory
#include <omp.h>
I did some research (although I'm not sure), I think this is due to whether there is a compiler with OpenMP support on the server. On the data table setup page on GitHub, this is a bit discussed here , but I'm not sure how to update or fix this on my EC2 instance.
Any help with this is appreciated.
EDIT is a new issue, as I was able to successfully install data.table in a previous similar EC2 instance less than a month ago.
EDIT 2 - I circumvented this problem by taking the previous EC2 instance with the data table already installed on it and creating a custom AMI from it. Using this custom AMI when starting new instances, they already appeared with the data.table library installed. If I notice that AWS will solve this problem on my own, I will try to remember to come back and update this post!
source
share