title: Install rJava package on AWS EC2 instance
body: <p>I am using R on AWS EC2 instance.
  I am trying to send a mail using the "mailR" package.</p>
  
  <p>I was told that to install the package I should previously install the package "rJava" as "mailR" depends on it.</p>
  
  <p>When trying to install "rJava" I get this error:</p>
  
  <blockquote>
    <p>gcc: error: libgomp.spec: No such file or directory</p>
  </blockquote>
  
  <p>After a quick search, I saw a post on this <a href="http://www.cplusplus.com/forum/beginner/194047/" rel="nofollow noreferrer">link</a> explaining this:</p>
  
  <blockquote>
    <p>"You have to make sure your GCC has OpenMP support enabled.
    Make sure you select OpenMP from the optional packages when installing."</p>
  </blockquote>
  
  <p>I really have no idea how to do this.
  Should it be something to add in the parameters of install.packages("rJava")?</p>
  
  <p>Assistance much appreciated !</p>
  
  <p>M.</p>