Rand, Hugh
2008-Aug-15 21:03 UTC
[R] Cairo installation process fails "compile a simple Cairo program" step
Hi, I am having trouble getting Cairo properly installed for R. The details (what I tried, what I got, and my system info) are below. Any ideas would be appreciated. Hugh Rand How I tried to install it: install.packages('Cairo',,'http://www.rforge.net/')? What the message was: * 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 configure: CAIRO_CFLAGSchecking 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=-L/apps/freetype/current/lib -L/apps/fontconfig/current/lib -L/apps/pixman/current/lib -L/apps/cairo/current/lib checking for library containing deflate... -lz checking whether Cairo programs can be compiled... configure: error: Cannot compile a simple Cairo program. See config.log for details. ERROR: configuration failed for package 'Cairo' ** Removing '/apps/R/R-2.7.0/library/Cairo' The downloaded packages are in /tmp/RtmpWoXEcO/downloaded_packages Updating HTML index of packages in '.Library' Warning message: In install.packages("Cairo", , "http://www.rforge.net/") : installation of package 'Cairo' had non-zero exit status We compile R under Red-hat linux. The various bits of system information are:> sessionInfo()R version 2.7.0 (2008-04-22) x86_64-unknown-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base>-bash-3.00$ cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 4) [[alternative HTML version deleted]]