text: user2005: When I am trying to install the RcppArmadillo Bioconductor library in R, it is giving me the following error:
  /usr/bin/ld: cannot find -lgfortran
  collect2: error: ld returned 1 exit status
  make: *** [RcppArmadillo.so] Error 1
  ERROR: compilation failed for package ‘RcppArmadillo’
  * removing ‘/home/nikita/R/x86_64-pc-linux-gnu-library/3.2/RcppArmadillo’
  
  I am using Ubuntu 12.04, R 3.2.5 and g++-5.4. Any help would be greatly appreciated.
  
  user2005: I found a similar question on stackoverflow and the solution was to create a symlink as described by kevin there:
  sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/libgfortran.so
  
  
  user-1: On Ubuntu 14.04 there is a direct route to installing RcppArmadillo. You could perhaps try the same syntax.
  sudo apt-get update
  sudo apt-get install r-cran-rcpparmadillo
  
  
original_text: 2005: <p>When I am trying to install the RcppArmadillo Bioconductor library in R, it is giving me the following error:</p>
  
  <pre><code>/usr/bin/ld: cannot find -lgfortran
  collect2: error: ld returned 1 exit status
  make: *** [RcppArmadillo.so] Error 1
  ERROR: compilation failed for package ‘RcppArmadillo’
  * removing ‘/home/nikita/R/x86_64-pc-linux-gnu-library/3.2/RcppArmadillo’
  </code></pre>
  
  <p>I am using Ubuntu 12.04, R 3.2.5 and <code>g++-5.4</code>. Any help would be greatly appreciated.</p>
   2005: <p>I found a similar question on <a href="https://stackoverflow.com/questions/6302209/building-r-package-getting-error-ld-cannot-find-lgfortran">stackoverflow</a> and the solution was to create a symlink as described by <code>kevin</code> there:</p>
  
  <pre><code>sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/libgfortran.so
  </code></pre>
   -1: <p>On Ubuntu 14.04 there is a direct route to installing RcppArmadillo. You could perhaps try the same syntax.</p>
  
  <pre><code>sudo apt-get update
  sudo apt-get install r-cran-rcpparmadillo
  </code></pre>
  