[Rcpp-devel] RInside Problems.
Dirk Eddelbuettel
edd at debian.org
Thu Apr 29 14:02:52 CEST 2010
On 29 April 2010 at 06:31, Dirk Eddelbuettel wrote:
|
| Please use the rcpp-devel mailing list for questions or bug reports.
|
| On 29 April 2010 at 10:48, jgbravo at ull.es wrote:
| |
| | Hello,
| |
| | I have a problem compiling RInside library and its examples. The error
| | obtained while compiling the library is showed now:
| |
| | hiper at hiper-desktop:~/R/i486-pc-linux-gnu-library/2.10/RInside/src$ make
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| | /usr/bin/R --vanilla --slave < tools/RInsideEnvVars.r > RInsideEnvVars.h
| | /usr/bin/R --vanilla --slave < tools/RInsideAutoloads.r > RInsideAutoloads.h
| | o libRInside MemBuf.o RInside.o
|
| That looks very wrong. Somehow the Makefile expands variables the wrong way.
I didn't notice this before -- this is your user error.
You said 'make' inside src/. Wrong idea. Moreover, you said make in what
seems to be the _installed package_. Also a bad idea.
You need 'R CMD INSTALL' on either the source directory or source tarball:
edd at ron:~/svn/rinside> R CMD INSTALL RInside_0.2.2.tar.gz
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘RInside’ ...
** libs
** arch -
/usr/lib/R/bin/R --vanilla --slave < tools/RInsideEnvVars.r > RInsideEnvVars.h
/usr/lib/R/bin/R --vanilla --slave < tools/RInsideAutoloads.r > RInsideAutoloads.h
g++ -I/usr/share/R/include -Wall -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/lib -fpic -O3 -Wall -pipe -c MemBuf.cpp -o MemBuf.o
g++ -I/usr/share/R/include -Wall -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/lib -fpic -O3 -Wall -pipe -c RInside.cpp -o RInside.o
g++ -o libRInside.so MemBuf.o RInside.o -shared -L/usr/lib/R/lib -lR
ar qc libRInside.a MemBuf.o RInside.o
cp libRInside.so ../inst/lib
cp RInside.h MemBuf.h ../inst/lib
cp libRInside.a ../inst/lib
rm libRInside.so libRInside.a
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* DONE (RInside)
edd at ron:~/svn/rinside>
Dirk
|
| | make: o: No se encontró el programa
| | make: [libRInside] Error 127 (no tiene efecto)
| | ar qc libRInside.a MemBuf.o RInside.o
| | cp libRInside ../inst/lib
| | cp: no se puede efectuar `stat' sobre «libRInside»: No existe el
| | fichero ó directorio
| | make: *** [userLibrary] Error 1
| |
| | Can you help me please?
|
| Which version is this? Which operating system?
|
| Dirk
|
| | I'm greateful, regards,
| | Javier González.
| |
| |
|
| --
| Regards, Dirk
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
--
Regards, Dirk
More information about the Rcpp-devel
mailing list