Skip to content

option --enable-R-shlib

4 messages · Michel Rapinski, Ivailo

#
Hello,

How can I check if my the R program that I've installed is compiled with
the option --enable-R-shlib?

And, if need be, how do I enable that option?

Thank you for the help

Michel
#
On Fri, Jun 15, 2012 at 7:05 AM, Michel Rapinski <mrapi090 at uottawa.ca> wrote:
Michel,

You can check this by using the command "ldd /usr/lib/R/bin/exec/R".
If "libR.so" (the shared R library) appears in the resulting list,
then you have R built with " --enable-R-shlib".
If needed, you can enable this option during the build process by
passing the option, e.g. ./config --enable-R-shlib, just before make.

Hope this helps,
Ivailo
#
Hi Ivailo,

Do I run this command in R? Or in terminal? Maybe I should have added that
I have a mac, I don't know if that makes a difference.

Thank you very much for the help.

Michel
#
On Fri, Jun 15, 2012 at 6:20 PM, Michel Rapinski <mrapi090 at uottawa.ca> wrote:
Sorry, Michel, I missed to mention that ldd needs to be run in the
terminal, and don't forget to provide the correct path to the R
executable. You can check http://v.gd/ZPswag for further details on
how to build R under Mac OS X.

Good luck,
Ivailo