[R] RServ 0.6-7 failed to install on RedHat

bati lauyk001 at hotmail.com
Tue Dec 20 08:41:42 CET 2011


Hi 

I need some guidance on how to install RServ 0.6-7 on a Redhat machine

R2.14 has been installed on this machine and when I try to install Rserve it
returned the following:


[root at soso abcde]# R CMD INSTALL Rserve_0.6-7.tar.gz 
Warning: unknown option â--enable-R-shlibâ
* installing to library â/usr/lib64/R-2.14.0/libraryâ
* installing *source* package âRserveâ ...
checking whether to compile the server... yes
checking whether to compile the client... no
checking for gcc... gcc -std=gnu99
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 -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 string.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking whether time.h and sys/time.h may both be included... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking return type of signal handlers... void
checking for memset... yes
checking for mkdir... yes
checking for rmdir... yes
checking for select... yes
checking for socket... yes
checking for library containing crypt... -lcrypt
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for socklen_t... yes
checking for connect... yes
checking for dlopen in -ldl... yes
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating src/client/cxx/Makefile
config.status: creating src/config.h
** Creating default NAMESPACE file
** libs
** arch -
gcc -std=gnu99 -I/usr/lib64/R-2.14.0/include  -I/usr/local/include  
-DDAEMON -Iinclude -I. -I/usr/lib64/R-2.14.0/include -fpic  -g -O2 -c
Rserv.c -o Rserv.o
gcc -std=gnu99 -I/usr/lib64/R-2.14.0/include  -I/usr/local/include  
-DDAEMON -Iinclude -I. -I/usr/lib64/R-2.14.0/include -fpic  -g -O2 -c
session.c -o session.o
gcc -std=gnu99 -I/usr/lib64/R-2.14.0/include  -I/usr/local/include  
-DDAEMON -Iinclude -I. -I/usr/lib64/R-2.14.0/include -fpic  -g -O2 -c md5.c
-o md5.o
*gcc -std=gnu99 Rserv.o session.o md5.o -o Rserve -L/usr/lib64/R-2.14.0/lib
-lR -ldl -lcrypt
/usr/bin/ld: cannot find -lR
collect2: ld returned 1 exit status
make: *** [Rserve] Error 1*ERROR: compilation failed for package âRserveâ
* removing â/usr/lib64/R-2.14.0/library/Rserveâ


Is this related to Rserve installer does not work well with Redhat
enterprise 5 ? 
It complain about cannot find -lR , I have difficulty understanding the gcc
command line:
gcc -std=gnu99 Rserv.o session.o md5.o -o Rserve -L/usr/lib64/R-2.14.0/lib
-lR -ldl -lcrypt
/usr/bin/ld

isn't -lR a parameter to gcc ? Why it complains about -lR not found?

Thanks
bati

--
View this message in context: http://r.789695.n4.nabble.com/RServ-0-6-7-failed-to-install-on-RedHat-tp4216924p4216924.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list