Hi Hadley, on 08/22/2008 03:52 PM hadley wickham wrote: > Dear all, > > I'm having problems installing the colorspace package on Red Hat > Enterprise Linux 5: > > * Installing *source* package 'colorspace' ... > ** libs > gcc -std=gnu99 -I/usr/lib/R/include -I/usr/lib/R/include > -I/usr/local/include -fpic -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic > -fasynchronous-unwind-tables -c colorspace.c -o colorspace.o > In file included from /usr/include/features.h:352, > from /usr/include/stdlib.h:25, > from /usr/lib/R/include/R.h:28, > from colorspace.c:1: > /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or > directory
It looks like the above (gnu/stubs-32.h) is the key missing file with the required headers preventing compilation. > colorspace.c: In function 'CheckHex': > colorspace.c:411: warning: implicit declaration of function 'isxdigit' > colorspace.c: In function 'RGB_to_RColor': > colorspace.c:1024: warning: unused variable 'Zn' > colorspace.c:1024: warning: unused variable 'Yn' > colorspace.c:1024: warning: unused variable 'Xn' > colorspace.c: In function 'hex_to_RGB': > colorspace.c:1115: warning: passing argument 1 of 'decodeHexStr' > discards qualifiers from pointer target type > colorspace.c: In function 'polarLAB_to_LAB': > colorspace.c:218: warning: control reaches end of non-void function > colorspace.c: In function 'XYZ_to_LUV': > colorspace.c:314: warning: control reaches end of non-void function > make: *** [colorspace.o] Error 1 > > I'm running 2.6.1 because lab computers can only have official rpms > and uname -a gives: > > Linux rl102-07.lab.rice.edu 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 > EDT 2008 x86_64 x86_64 x86_64 GNU/Linux > > Any ideas as to why the compile is failing? At least on F9: $ locate stubs-32.h /usr/include/gnu/stubs-32.h $ rpm -q --whatprovides /usr/include/gnu/stubs-32.h glibc-devel-2.8-8.i386 So: # yum install glibc-devel should take care of it, presuming that you are not missing anything else... HTH, Marc Schwartz ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.