[R] Cairo Package Installation

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Jun 9 16:53:43 CEST 2009


Install the cairo headers? Probably in some cairo or cairo-devel package 
for your OS.

Uwe Ligges



Douglas M. Hultstrand wrote:
> I am trying to install the Cairo package on a linux machine, the Cairo 
> package did not install correctly (could not find cairo.h), I am new to 
> R and linux any help on the installation would be great.  Below are 
> output from trying to install the Cairo package, thought this might help.
> 
>  > install.packages("Cairo")
> Warning in install.packages("Cairo") :
>  argument 'lib' is missing: using 
> '/home/tyep/R/x86_64-unknown-linux-gnu-library/2.8'
> trying URL 
> 'http://streaming.stat.iastate.edu/CRAN/src/contrib/Cairo_1.4-4.tar.gz'
> Content type 'application/x-gzip' length 75200 bytes (73 Kb)
> opened URL
> ==================================================
> downloaded 73 Kb
> 
> * 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_CFLAGS=
> checking 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.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS
> correspondingly.
> ERROR: configuration failed for package 'Cairo'
> ** Removing '/home/tyep/R/x86_64-unknown-linux-gnu-library/2.8/Cairo'
> 
> The downloaded packages are in
>        /tmp/RtmpILmmXw/downloaded_packages
> Warning message:
> In install.packages("Cairo") :
>  installation of package 'Cairo' had non-zero exit status
>  >
> 
> Thanks,
> Doug
>




More information about the R-help mailing list