Ron Fricker
Ron Fricker

Reputation: 31

RApache Configure Does Not Recognize R Installed with Shared Library

All: Apologies in advance for what I hope is an easy question. It's been many years since I've worked in a Unix(-like) environment...

I'm trying to install RApache on a web server running the RHEL5 64-bit OS. I've successfully installed Apache and confirmed it works. I've also successfully installed R (R-2.13.0) with shared library. I've confirmed that libBlas.so and libR.so are installed; location: /R/R-2.13.0/lib

However, when I try to configure RApache ( sudo ./configure --with-apache2-apxs=/usr/local/apache2/bin/ --with-R=/R/R-2.13.0/) I get the following error:

R was not built as a shared library
Either build it with one, or use another install of R
configure: error: aborting!

I've reinstalled R twice now and have confirmed in libtool that it says:

# Whether or not to build shared libraries.
build_libtool_libs=yes

Finally, I've searched high and low for some path or flag I need to set without success. Any help would be greatly appreciated.

Thanks, Ron

Upvotes: 3

Views: 1053

Answers (1)

IRTFM
IRTFM

Reputation: 263362

You need to compile R with the appropriate flags. At the configure stage you need to include --enable-R-shlib so that R is built as a shared library.

You may need to further consult appendix B1 of http://cran.r-project.org/doc/manuals/R-admin.pdf which describes further issues.

Upvotes: 5

Related Questions