[Rd] RApache installation problems

Matt Shotwell matt at biostatmatt.com
Sat Jan 21 15:20:21 CET 2012


Here are some leads:

1) https://github.com/jeffreyhorner/rapache/commit/c208e0b17eed04e265e7d555bd9f5395ae6ff7cb

2) http://www.rapache.net/rapache-1.1.16.tar.gz

On Thu, 2012-01-19 at 15:03 +0000, Gísli Leifsson wrote:
> Hi all
> 
> I was trying to isntall RApache last week but ran into strnge problems that no one else seems to be experiencing. At least I couldn't find anything after extensive googling.
> 
> First off, the machine I'm installing on looks like this:
> 
> Dell Optiplex 745
> 32 bit
> 2GB RAM
> Fedora 15
> httpd -v
> Server version: Apache/2.2.21 (Unix)
> Server built:   Sep 13 2011 13:46:23
> R:
> R-2.14.0-3.fc15.i686
> perl
>                 perl-5.12.4-164.fc15.i686
> 
> What I did was the following:
> 
> 
>          Downloaded the package, rapache-1.1.15.tar.gz
> 
>          Ran configure --with-apache2-apxs=/usr/sbin/apxs, make, make install.
> 
>          Added this to my httpd.conf:
> 
> o       LoadModule R_module /usr/lib/httpd/modules/mod_R.so
> 
> o
> 
> o       # Output R errors and warnings to the browser
> 
> o       ROutputErrors
> 
> o
> 
> o       # Displays information about rapache and R
> 
> o       <Location /RApacheInfo>
> 
> o          SetHandler r-info
> 
> o       </Location>
> Also added the Directory directives but commented them when I was trying to get this to work. I figured if I couldn't see the r-info, nothing would work.
> 
> Then I navigated to  /RApacheInfo on the machine and got an internal server error. The log says this:
> 
> [Thu Jan 19 14:37:33 2012] [error] [client 10.101.77.150] rApache Notice!
> No RApache Directive specified for 'SetHandler r-info'
> 
> I figured that had to be coming from the R module. I tried searching for this error message but it seemed like no one has been experiencing it.
> 
> After this I decided to revisit the configure script. I ran it again, this time I added the -with-R switch:
> 
> ./configure --with-apache2-apxs=/usr/sbin/apxs --with-R=/usr/bin/R
> 
> I examined the output and saw that there seemed to be an error but still the script ended with apparent success.
> 
> [root at keilir rapache-1.1.15]# ./configure --with-apache2-apxs=/usr/sbin/apxs --with-R=/usr/bin/R
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for a sed that does not truncate output... /bin/sed
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for fgrep... /bin/grep -F
> checking for ld used by gcc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
> checking the name lister (/usr/bin/nm -B) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 1572864
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for ar... ar
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC -DPIC
> checking if gcc PIC flag -fPIC -DPIC works... yes
> checking if gcc static flag -static works... no
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.o... (cached) yes
> checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for sys/types.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for uname... /bin/uname
> checking for apxs2... checking for R Program... /usr/bin/R
> checking for apreq2-config... no
> 
> 
> Using libapreq2 that comes bundled with mod_R
> 
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether make sets $(MAKE)... (cached) yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for a sed that does not truncate output... /bin/sed
> checking for egrep... grep -E
> checking for ld used by gcc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking dependency style of g++... gcc3
> checking how to run the C++ preprocessor... g++ -E
> checking for g77... no
> checking for f77... no
> checking for xlf... no
> checking for frt... no
> checking for pgf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for f90... no
> checking for xlf90... no
> checking for pgf90... no
> checking for epcf90... no
> checking for f95... f95
> checking whether we are using the GNU Fortran 77 compiler... yes
> checking whether f95 accepts -g... yes
> checking the maximum length of command line arguments... 32768
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... ranlib
> checking for strip... strip
> checking if gcc static flag  works... yes
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc supports -c -o file.o... yes
> checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking for ld used by g++... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
> checking for g++ option to produce PIC... -fPIC
> checking if g++ PIC flag -fPIC works... yes
> checking if g++ supports -c -o file.o... yes
> checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> appending configuration tag "F77" to libtool
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for f95 option to produce PIC... -fPIC
> checking if f95 PIC flag -fPIC works... yes
> checking if f95 supports -c -o file.o... yes
> checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking for ranlib... (cached) ranlib
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln -s works... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for /usr/bin/apr-1-config... yes
> checking for /usr/bin/apu-1-config... yes
> Can't locate Apache/Test.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at build/version_check.pl line 27.
>   setting APR_INCLUDES to " -I/usr/include/apr-1 "
>   setting APR_LTFLAGS to " /usr/lib/libapr-1.la"
>   adding "/usr/lib/libaprutil-1.la" to APR_LTFLAGS
>   setting APR_LIBS to " -lldap -llber -llber -ldb-4.8 -lexpat -ldb-4.8 "
>   adding "-lpthread" to APR_LIBS
>   adding "-ldl" to APR_LIBS
>   setting APR_LDFLAGS to " -L/usr/lib -laprutil-1 "
>   adding "-lapr-1" to APR_LDFLAGS
>   setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
> libapreq2 Version: 2.1.0
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating include/Makefile
> config.status: creating library/Makefile
> config.status: creating library/t/Makefile
> config.status: creating module/Makefile
> config.status: creating module/apache2/Makefile
> config.status: creating module/apache/Makefile
> config.status: creating glue/Makefile
> config.status: creating build/doxygen.conf
> config.status: creating include/groups.dox
> config.status: creating apreq2-config
> config.status: creating include/apreq_config.h
> config.status: include/apreq_config.h is unchanged
> config.status: executing depfiles commands
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating mod_R.h
> config.status: executing libtool commands
> 
> I don't know if this error is critical but I couldn't get rid of it.
> 
> I'm not an R user myself. Not yet at least. Just the IT guy in my company. But the R people can't seem to contain themselves over RApache and really want to see it working.
> 
> Hope you can point me in the right direction.
> 
> Take care,
>   Gisli
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list