[R] Cannot Install Cairo Library

Lorenzo Isella lorenzo.isella at gmail.com
Fri May 22 13:42:06 CEST 2009


Dear All,
I am running Debian testing on my box and I have R 2.9.0 installed from 
the standard repositories.
I downloaded the package source from
http://cran.r-project.org/web/packages/Cairo/index.html
but when I try to install it on my system, this is what I get

$ sudo R CMD INSTALL Cairo_1.4-4.tar.gz
* Installing to library ‘/usr/local/lib/R/site-library’
* Installing *source* package ‘Cairo’ ...
checking for gcc... gcc -std=gnu99
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 -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 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 an ANSI C-conforming const... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether pkg-config knows about cairo... yes
checking for configurable backends... cairo cairo-ft cairo-pdf cairo-png 
cairo-ps cairo-xlib cairo-xlib-xrender
configure: CAIRO_CFLAGS=-D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12
checking if R was compiled with the RConn patch... no
checking cairo.h usability... yes
checking cairo.h presence... yes
checking for cairo.h... yes
checking for PNG support in Cairo... yes
checking for ATS font support in Cairo... no
configure: CAIRO_LIBS=-lfreetype -lfontconfig -lpng12 -lz -lXrender 
-lcairo -lX11
checking for library containing deflate... none required
checking whether Cairo programs can be compiled... yes
checking whether cairo_image_surface_get_format is declared... no
checking for FreeType support in cairo... yes
checking whether FreeType needs additional flags... no
checking wheter libjpeg works... yes
checking wheter libtiff works... no
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating src/cconfig.h
** libs
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c cairobem.c 
-o cairobem.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c cairogd.c 
-o cairogd.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c cairotalk.c 
-o cairotalk.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c 
img-backend.c -o img-backend.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c img-jpeg.c 
-o img-jpeg.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c img-tiff.c 
-o img-tiff.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c 
pdf-backend.c -o pdf-backend.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c 
ps-backend.c -o ps-backend.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c 
svg-backend.c -o svg-backend.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c 
w32-backend.c -o w32-backend.o
gcc -std=gnu99 -I/usr/share/R/include -D_REENTRANT -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb 
-I/usr/include/libpng12 -I. -Iinclude -g -O2 -fpic -g -O2 -c 
xlib-backend.c -o xlib-backend.o
xlib-backend.c:34:74: error: X11/Intrinsic.h: No such file or directory
xlib-backend.c: In function ‘Rcairo_init_xlib’:
xlib-backend.c:158: warning: implicit declaration of function 
‘XrmUniqueQuark’
make: *** [xlib-backend.o] Error 1
ERROR: compilation failed for package ‘Cairo’
* Removing ‘/usr/local/lib/R/site-library/Cairo’

Is there a header file missing? Or is there anything wrong with my system?
Many thanks

Lorenzo




More information about the R-help mailing list