title: shared object ‘RCurl.so’ not found
body: <h3>Data about my system</h3>
  
  <ul>
  <li>R version 3.2.1 (2015-06-18)   (World-Famous Astronaut)</li>
  <li>Ubuntu 12.04 LTS</li>
  </ul>
  
  <p><code>$ locate RCurl.so</code>:</p>
  
  <pre><code>~/R/i686-pc-linux-gnu-library/2.15/RCurl/libs/RCurl.so
  ~/R/i686-pc-linux-gnu-library/3.0/RCurl/libs/RCurl.so
  ~/R/i686-pc-linux-gnu-library/3.1/RCurl/libs/RCurl.so
  /usr/local/lib/R/site-library/RCurl/libs/RCurl.so
  </code></pre>
  
  <hr>
  
  <p><code>$ r -pie '.libPaths()'</code>:</p>
  
  <pre><code>[1] "~/R/i686-pc-linux-gnu-library/3.2"
  [2] "/usr/local/lib/R/site-library"           
  [3] "/usr/lib/R/site-library"                 
  [4] "/usr/lib/R/library"
  </code></pre>
  
  <hr>
  
  <p><code>$ R CMD ldd /usr/local/lib/R/site-library/RCurl/libs/RCurl.so</code>:</p>
  
  <pre><code>    linux-gate.so.1 =&gt;  (0xb7734000)
      libcurl-gnutls.so.4 =&gt; /usr/lib/i386-linux-gnu/libcurl-gnutls.so.4 (0xb7696000)
      libR.so =&gt; /usr/lib/R/lib/libR.so (0xb7319000)
      libc.so.6 =&gt; /lib/i386-linux-gnu/libc.so.6 (0xb716f000)
      libgcc_s.so.1 =&gt; /lib/i386-linux-gnu/libgcc_s.so.1 (0xb7151000)
      libidn.so.11 =&gt; /usr/lib/i386-linux-gnu/libidn.so.11 (0xb711d000)
      liblber-2.4.so.2 =&gt; /usr/lib/i386-linux-gnu/liblber-2.4.so.2 (0xb710e000)
      libldap_r-2.4.so.2 =&gt; /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2 (0xb70bc000)
      librt.so.1 =&gt; /lib/i386-linux-gnu/librt.so.1 (0xb70b2000)
      libgssapi_krb5.so.2 =&gt; /usr/lib/i386-linux-gnu/libgssapi_krb5.so.2 (0xb7075000)
      libz.so.1 =&gt; /lib/i386-linux-gnu/libz.so.1 (0xb705f000)
      libgnutls.so.26 =&gt; /usr/lib/i386-linux-gnu/libgnutls.so.26 (0xb6f9a000)
      libgcrypt.so.11 =&gt; /lib/i386-linux-gnu/libgcrypt.so.11 (0xb6f14000)
      librtmp.so.0 =&gt; /usr/lib/i386-linux-gnu/librtmp.so.0 (0xb6ef9000)
      libblas.so.3gf =&gt; /usr/lib/libblas.so.3gf (0xb6c24000)
      libm.so.6 =&gt; /lib/i386-linux-gnu/libm.so.6 (0xb6bf8000)
      libreadline.so.6 =&gt; /lib/i386-linux-gnu/libreadline.so.6 (0xb6bbe000)
      libpcre.so.3 =&gt; /lib/i386-linux-gnu/libpcre.so.3 (0xb6b82000)
      liblzma.so.5 =&gt; /usr/lib/i386-linux-gnu/liblzma.so.5 (0xb6b5a000)
      libbz2.so.1.0 =&gt; /lib/i386-linux-gnu/libbz2.so.1.0 (0xb6b49000)
      libdl.so.2 =&gt; /lib/i386-linux-gnu/libdl.so.2 (0xb6b44000)
      libgomp.so.1 =&gt; /usr/lib/i386-linux-gnu/libgomp.so.1 (0xb6b21000)
      libpthread.so.0 =&gt; /lib/i386-linux-gnu/libpthread.so.0 (0xb6b06000)
      /lib/ld-linux.so.2 (0xb7735000)
      libresolv.so.2 =&gt; /lib/i386-linux-gnu/libresolv.so.2 (0xb6aed000)
      libsasl2.so.2 =&gt; /usr/lib/i386-linux-gnu/libsasl2.so.2 (0xb6ad1000)
      libgssapi.so.3 =&gt; /usr/lib/i386-linux-gnu/libgssapi.so.3 (0xb6a94000)
      libkrb5.so.3 =&gt; /usr/lib/i386-linux-gnu/libkrb5.so.3 (0xb69c5000)
      libk5crypto.so.3 =&gt; /usr/lib/i386-linux-gnu/libk5crypto.so.3 (0xb699d000)
      libcom_err.so.2 =&gt; /lib/i386-linux-gnu/libcom_err.so.2 (0xb6997000)
      libkrb5support.so.0 =&gt; /usr/lib/i386-linux-gnu/libkrb5support.so.0 (0xb698e000)
      libtasn1.so.3 =&gt; /usr/lib/i386-linux-gnu/libtasn1.so.3 (0xb697c000)
      libp11-kit.so.0 =&gt; /usr/lib/i386-linux-gnu/libp11-kit.so.0 (0xb696a000)
      libgpg-error.so.0 =&gt; /lib/i386-linux-gnu/libgpg-error.so.0 (0xb6965000)
      libgfortran.so.3 =&gt; /usr/lib/i386-linux-gnu/libgfortran.so.3 (0xb6856000)
      libtinfo.so.5 =&gt; /lib/i386-linux-gnu/libtinfo.so.5 (0xb6837000)
      libheimntlm.so.0 =&gt; /usr/lib/i386-linux-gnu/libheimntlm.so.0 (0xb682f000)
      libkrb5.so.26 =&gt; /usr/lib/i386-linux-gnu/libkrb5.so.26 (0xb67ac000)
      libasn1.so.8 =&gt; /usr/lib/i386-linux-gnu/libasn1.so.8 (0xb6707000)
      libhcrypto.so.4 =&gt; /usr/lib/i386-linux-gnu/libhcrypto.so.4 (0xb66d1000)
      libroken.so.18 =&gt; /usr/lib/i386-linux-gnu/libroken.so.18 (0xb66bb000)
      libkeyutils.so.1 =&gt; /lib/i386-linux-gnu/libkeyutils.so.1 (0xb66b7000)
      libquadmath.so.0 =&gt; /usr/lib/i386-linux-gnu/libquadmath.so.0 (0xb6624000)
      libwind.so.0 =&gt; /usr/lib/i386-linux-gnu/libwind.so.0 (0xb65fb000)
      libheimbase.so.1 =&gt; /usr/lib/i386-linux-gnu/libheimbase.so.1 (0xb65eb000)
      libhx509.so.5 =&gt; /usr/lib/i386-linux-gnu/libhx509.so.5 (0xb65a4000)
      libsqlite3.so.0 =&gt; /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xb64ff000)
      libcrypt.so.1 =&gt; /lib/i386-linux-gnu/libcrypt.so.1 (0xb64ce000)
  </code></pre>
  
  <p>(Noted: no <code>???</code> error as suggested in <a href="https://stackoverflow.com/questions/21333097/got-message-unable-to-load-shared-object-stats-so-when-r-starts">Got message unable to load shared object stats.so when R starts</a>.)</p>
  
  <h3>Problem description &amp; what I tried</h3>
  
  <p>I apparently have several <code>RCurl.so</code> objects, but when I  try to <code>install.packages('RCurl')</code> into <code>~/R/i686-pc-linux-gnu-library/3.2/RCurl/</code>, I get the following error:</p>
  
  <pre><code>Error in library.dynam(lib, package, package.lib) : 
    shared object ‘RCurl.so’ not found
  Error: loading failed
  Execution halted
  ERROR: loading failed
  * removing ‘~/R/i686-pc-linux-gnu-library/3.2/RCurl’
  
  The downloaded source packages are in
          ‘/tmp/user/1001/RtmpVJ2RYv/downloaded_packages’
  </code></pre>
  
  <p>Running <code>library.dynam()</code> with one of the old <code>RCurl.so</code>'s didn't work either.</p>
  
  <p>I also tried <code>R CMD INSTALL [path to downloaded omega-hat source].tar.gz</code>. Same error.</p>
  
  <h3>Question</h3>
  
  <p>Looking around on the internet there seem to be a <a href="https://stackoverflow.com/questions/21333097/got-message-unable-to-load-shared-object-stats-so-when-r-starts">lot</a> <a href="http://r.789695.n4.nabble.com/libR-so-cannot-open-shared-object-file-td4675305.html" rel="nofollow noreferrer">of</a> <a href="https://forums.freebsd.org/threads/shared-object-libintl-so-9-not-found.49320/" rel="nofollow noreferrer">people</a> with shared object problems. But I can't tell from those who answered them, what I need to do, or even what help files I need to be reading. I think I've worked through most / every one of the arguments in <code>?install.packages</code> and <code>?INSTALL</code>.</p>
  
  <p>What else could be going wrong here?</p>