Hi,<div><br></div><div>I originally emailed the r-sig-debian list and was directed here.  <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"> I am trying to run the examples in /RInside/examples/standard such as rinside_sample_0, but I am getting the error: </span></div>


<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div><br></div><div>error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory</div>
<div><br></div><div>Does anyone know how to deal with this?  I was told to include the output of &#39;make&#39; and &#39;ldd ./rinside_sample0&#39;, so they are as follows:</div><div><br></div><div><div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample0.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample0</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample1.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample1</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample2.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample2</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample3.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample3</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample4.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample4</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample5.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample5</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample6.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample6</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample7.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample7</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_sample8.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample8</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_test0.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_test0</div>
<div>g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall  -s  rinside_test1.cpp  -L/usr/lib64/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_test1</div>
</div><div><br></div><div><div>linux-vdso.so.1 =&gt;  (0x00007fff30bff000)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libR.so =&gt; not found</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libblas.so.3gf =&gt; /usr/lib/atlas/libblas.so.3gf (0x00007f50d2512000)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>liblapack.so.3gf =&gt; /usr/lib/atlas/liblapack.so.3gf (0x00007f50d190a000)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libRcpp.so =&gt; /usr/local/lib/R/site-library/Rcpp/lib/libRcpp.so (0x00007f50d16b2000)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>libRInside.so =&gt; /usr/local/lib/R/site-library/RInside/lib/libRInside.so (0x00007f50d149d000)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libstdc++.so.6 =&gt; /usr/lib/libstdc++.so.6 (0x00007f50d1188000)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>libm.so.6 =&gt; /lib/libm.so.6 (0x00007f50d0f05000)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libgcc_s.so.1 =&gt; /lib/libgcc_s.so.1 (0x00007f50d0cee000)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>libc.so.6 =&gt; /lib/libc.so.6 (0x00007f50d096a000)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libgfortran.so.3 =&gt; /usr/lib/libgfortran.so.3 (0x00007f50d067d000)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/lib64/ld-linux-x86-64.so.2 (0x00007f50d2ecd000)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libR.so =&gt; not found</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>libR.so =&gt; not found</div>
</div><div><br></div><div>I have R and r-base-dev installed, so I don&#39;t understand why this is happening.  Any help would be much appreciated.</div></span><div>
<br></div><div>Best,</div><div>David</div>