Dear R users, I'm running R version 2.10.1. I tried installing the Cairo package and I got the following message: * 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... no configure: CAIRO_LIBS is unset, attempting to guess it. configure: CAIRO_CFLAGSchecking if R was compiled with the RConn patch... no checking cairo.h usability... no checking cairo.h presence... no checking for cairo.h... no configure: error: Cannot find cairo.h! Please install cairo (http://www.cairogra phics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly. ERROR: configuration failed for package ?Cairo? Any help would be greatly appreciated. Alla
Alla Bulashevska wrote:> > Dear R users, > I'm running R version 2.10.1. > I tried installing the Cairo package and I got the > following message: > > > * installing *source* package ?Cairo? ... > > {snip} > > checking cairo.h usability... no > checking cairo.h presence... no > checking for cairo.h... no > configure: error: Cannot find cairo.h! Please install cairo > (http://www.cairogra > phics.org/) and/or set > CAIRO_CFLAGS/LIBS correspondingly. > ERROR: configuration failed for package ?Cairo? > > Any help would be greatly appreciated. > Alla >The Cairo package for R provides an interface to the Cairo graphics library- therefore that library must be installed for the package to work. Configure scripts are notorious for having cryptic error messages, but this one is actually very explicit about stating what the problem is. You need to: 1. Install Cairo and try installing the package again. Or, if you have Cairo installed in a non-standard location that the configure script can't find: 2. Set "-L/path/to/libcairo" in the CAIRO_CFLAGS option and try installing again. In cases when package installation is failing, it is also very important to tell us what operating system you are using as these issues are often platform-dependent. Hope this helps! -Charlie ----- Charlie Sharpsteen Undergraduate-- Environmental Resources Engineering Humboldt State University -- View this message in context: http://n4.nabble.com/Unable-to-install-Cairo-package-tp1598140p1598264.html Sent from the R help mailing list archive at Nabble.com.