Thanks for the quick reply!!  <br><br>I did install R with shared library enabled.  I use the following command:<br>{my path}/R-2.12.1&gt; ./configure --prefix={my path}/OOPHD2011/R-2.12.1 --enable-R-shlib<br><br>After running I get the configure script I get the following output:<br>
<br>...<br><br>R is now configured for powerpc64-unknown-linux-gnu<br><br>  Source directory:          .<br>  Installation directory:    {my path}/OOPHD2011/R-2.12.1<br><br>  C compiler:                gcc -std=gnu99  -g -O2<br>
  Fortran 77 compiler:       gfortran  -g -O2<br><br>  C++ compiler:              g++  -g -O2<br>  Fortran 90/95 compiler:    gfortran -g -O2<br>  Obj-C compiler:         gcc -g -O2<br><br>  Interfaces supported:      X11<br>
  External libraries:        readline<br>  Additional capabilities:   PNG, JPEG, TIFF, NLS<br>  Options enabled:           shared R library, shared BLAS, R profiling, Java<br><br>  Recommended packages:      yes<br><br>configure: WARNING: you cannot build DVI versions of the R manuals<br>
configure: WARNING: you cannot build DVI versions of all the help pages<br>configure: WARNING: you cannot build info or HTML versions of the R manuals<br>configure: WARNING: you cannot build PDF versions of the R manuals<br>
configure: WARNING: you cannot build PDF versions of all the help pages<br>configure: WARNING: I could not determine a browser<br><br>I then installed the Rcpp and RInside packages.  <br><br>I have gotten the examples to work.  I installed the packages by downloading them directly from the CRAN download page and ran<br>
R CMD INSTALL Rcpp_0.9.0.tar.gz <br>and<br>R CMD INSTALL RInside_0.2.3.tar<br><br>Thanks for a great  product!!<br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 12:04 PM, Dirk Eddelbuettel <span dir="ltr">&lt;<a href="mailto:edd@debian.org">edd@debian.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
On 14 January 2011 at 11:45, amao oluwole wrote:<br>
| Hi all,<br>
|   I hope this is the correct mailing list for this question.  I have<br>
<br>
</div>Yes!  Thanks for posting here, and welcome!<br>
<div><div></div><div class="h5"><br>
| successfully installed R-2.12.1, and the latest version of the Rcpp and RInside<br>
| packages on a linux operating system by using the commands:<br>
|<br>
| install.packages(&quot;Rcpp&quot;, repos=&quot;<a href="http://R-Forge.R-project.org" target="_blank">http://R-Forge.R-project.org</a>&quot;)<br>
| install.packages(&quot;RInside&quot;, repos=&quot;<a href="http://R-Forge.R-project.org" target="_blank">http://R-Forge.R-project.org</a>&quot;)<br>
|<br>
| I then added the bin and lib paths to my environmental variable.<br>
|<br>
| To test the install, I compiled the examples in RInside/inst/examples/standard<br>
| successfully.  When I tried to run the simple hello world application,<br>
| rinside_sample0.cpp program, I got the following error:<br>
|<br>
| examples/standard&gt; ./rinside_sample0<br>
| terminate called after throwing an instance of &#39;Rcpp::index_out_of_bounds&#39;<br>
|   what():  index out of bounds<br>
| Abort<br>
|<br>
| examples/standard&gt;<br>
|<br>
| Am I running the example executable correctly?  I do not understand why the<br>
| error occurs.<br>
<br>
</div></div>You did not supply sufficient detail.<br>
<br>
Despite what a certain malcontent keeps repeating and misrepresenting here,<br>
there is a release process for Rcpp. Which, inter alia, involves running all<br>
known examples, tests, ... in Rcpp and some other packages, including RInside.<br>
<br>
So see below for a quick &#39;make clean; make; ./rinside_sample0&#39; on my machine.<br>
I may right now be current with Rcpp from SVN rather than the released 0.9.0<br>
but the same tests where ran with the preceding releases, incl 0.9.0, and I<br>
could easily flip back to Rcpp if you needed to validate something.<br>
<br>
So in short: make sure you have current and correct packages, R correctly<br>
configured (ie the last person requesting help had not built R as a shared<br>
library, that cannot work) and run the examples documented (ie &#39;make&#39; should<br>
do).  If there are errors or warning with make, look at those.<br>
<br>
Please do feel free to come back with further questions.<br>
<br>
Hope this helps,  Dirk<br>
<br>
<br>
Below is a cut and pasted session copy from an emacs shell buffer where the<br>
command gets echo&#39;ed. This uses some compile/link flags I have in<br>
~/.R/Makevars but that is not material either.<br>
<br>
edd@max:~/svn/rinside/pkg/inst/examples/standard$ make clean<br>
make clean<br>
rm -vf rinside_callbacks0 rinside_module_sample0 rinside_sample0 rinside_sample1 rinside_sample2 rinside_sample3 rinside_sample4 rinside_sample5 rinside_sample6 rinside_sample7 rinside_sample8 rinside_sample9 rinside_test0 rinside_test1<br>

removed `rinside_callbacks0&#39;<br>
removed `rinside_module_sample0&#39;<br>
removed `rinside_sample0&#39;<br>
removed `rinside_sample1&#39;<br>
removed `rinside_sample2&#39;<br>
removed `rinside_sample3&#39;<br>
removed `rinside_sample4&#39;<br>
removed `rinside_sample5&#39;<br>
removed `rinside_sample6&#39;<br>
removed `rinside_sample7&#39;<br>
removed `rinside_sample8&#39;<br>
removed `rinside_sample9&#39;<br>
removed `rinside_test0&#39;<br>
removed `rinside_test1&#39;<br>
rm -vrf *.dSYM<br>
edd@max:~/svn/rinside/pkg/inst/examples/standard$ make<br>
make<br>
g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    rinside_callbacks0.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_callbacks0<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    rinside_module_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_module_sample0<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    rinside_sample9.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_sample9<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I&quot;/usr/local/lib/R/site-library/RInside/include&quot; -O3 -pipe -g -Wall    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<br>

edd@max:~/svn/rinside/pkg/inst/examples/standard$ ./rinside_sample0<br>
./rinside_sample0<br>
Hello, world!<br>
edd@max:~/svn/rinside/pkg/inst/examples/standard$ ./rinside_sample1<br>
./rinside_sample1<br>
Running ls()<br>
[1] &quot;argv&quot; &quot;M&quot;<br>
Showing M<br>
     [,1] [,2] [,3] [,4]<br>
[1,]    0    1    2    3<br>
[2,]   10   11   12   13<br>
[3,]   20   21   22   23<br>
[4,]   30   31   32   33<br>
Showing colSums()<br>
[1] 60 64 68 72<br>
In C++ element 0 is 60<br>
In C++ element 1 is 64<br>
In C++ element 2 is 68<br>
In C++ element 3 is 72<br>
edd@max:~/svn/rinside/pkg/inst/examples/standard$<br>
<div><div></div><div class="h5"><br>
| Thanks!<br>
|<br>
| ----------------------------------------------------------------------<br>
| _______________________________________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
| <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
<br>
</div></div><font color="#888888">--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</font></blockquote></div><br>