hi Uwe,

thanks for your response.

I ran the following as per the instructions on the Cairo website:


sudo apt-get install libcairo2-dev

following which I tried to install FastRWeb again (hopefully I have not missed 
any steps in between)....can you pls. tell me how I can fix this error..


> install.packages("FastRWeb",dep=TRUE)
Installing package(s) into ‘/home/ba/R/i686-pc-linux-gnu-library/2.12’
(as ‘lib’ is unspecified)
also installing the dependency ‘Cairo’

trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/Cairo_1.5-0.tar.gz'
Content type 'application/x-gzip' length 81214 bytes (79 Kb)
opened URL
==================================================
downloaded 79 Kb

trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/FastRWeb_1.0-0.tar.gz'
Content type 'application/x-gzip' length 71072 bytes (69 Kb)
opened URL
==================================================
downloaded 69 Kb

* installing *source* package ‘Cairo’ ...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -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=-pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1  
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=-L/usr/lib/i386-linux-gnu -lfreetype -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 -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
cairobem.c -o cairobem.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
cairogd.c -o cairogd.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
cairotalk.c -o cairotalk.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
img-backend.c -o img-backend.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
img-jpeg.c -o img-jpeg.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
img-tiff.c -o img-tiff.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
pdf-backend.c -o pdf-backend.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
ps-backend.c -o ps-backend.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
svg-backend.c -o svg-backend.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
w32-backend.c -o w32-backend.o
gcc -I/usr/share/R/include -pthread -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/pixman-1    -I. 
-Iinclude    -std=gnu99 -O3 -pipe -g -fpic  -std=gnu99 -O3 -pipe  -g -c 
xlib-backend.c -o xlib-backend.o
xlib-backend.c:34:74: fatal error: X11/Intrinsic.h: No such file or directory
compilation terminated.
make: *** [xlib-backend.o] Error 1
ERROR: compilation failed for package ‘Cairo’
* removing ‘/home/ba/R/i686-pc-linux-gnu-library/2.12/Cairo’
ERROR: dependency ‘Cairo’ is not available for package ‘FastRWeb’
* removing ‘/home/ba/R/i686-pc-linux-gnu-library/2.12/FastRWeb’

The downloaded packages are in
        ‘/tmp/RtmpFnOoDw/downloaded_packages’
Warning messages:
1: In install.packages("FastRWeb", dep = TRUE) :
  installation of package 'Cairo' had non-zero exit status
2: In install.packages("FastRWeb", dep = TRUE) :
  installation of package 'FastRWeb' had non-zero exit status



> Date: Sat, 29 Oct 2011 19:32:13 +0200
> From: lig...@statistik.tu-dortmund.de
> To: fin_e...@hotmail.com
> CC: r-help@r-project.org
> Subject: Re: [R] installing FastRWeb
> 
> Please do read the output, it tells you:
> 
> Please install cairo (http://www.cairographics.org/) and/or set 
> CAIRO_CFLAGS/LIBS correspondingly.
> 
> And that is exactly what you need to do, it cannot be solved by 
> installing R packages....
> 
> Best,
> Uwe Ligges
> 
> 
> On 29.10.2011 18:24, financial engineer wrote:
> >
> > hi,
> >
> > I am working on Ubuntu and tried to install FastRWeb, but am getting the 
> > following error for installation of cairo.h.
> >
> >   install.packages("FastRWeb",dep=TRUE)
> > Installing package(s) into ‘/home/ba/R/i686-pc-linux-gnu-library/2.12’
> > (as ‘lib’ is unspecified)
> > also installing the dependency ‘Cairo’
> >
> > trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/Cairo_1.5-0.tar.gz'
> > Content type 'application/x-gzip' length 81214 bytes (79 Kb)
> > opened URL
> > ==================================================
> > downloaded 79 Kb
> >
> > trying URL 
> > 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/FastRWeb_1.0-0.tar.gz'
> > Content type 'application/x-gzip' length 71072 bytes (69 Kb)
> > opened URL
> > ==================================================
> > downloaded 69 Kb
> >
> > * installing *source* package ‘Cairo’ ...
> > checking for gcc... gcc
> > checking whether the C compiler works... yes
> > checking for C compiler default output file name... a.out
> > checking for suffix of executables...
> > checking whether we are cross compiling... no
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ISO C89... none needed
> > checking how to run the C preprocessor... gcc -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/ba/R/i686-pc-linux-gnu-library/2.12/Cairo’
> > ERROR: dependency ‘Cairo’ is not available for package ‘FastRWeb’
> > * removing ‘/home/ba/R/i686-pc-linux-gnu-library/2.12/FastRWeb’
> >
> > The downloaded packages are in
> >      ‘/tmp/Rtmpla4fs8/downloaded_packages’
> > Warning messages:
> > 1: In install.packages("FastRWeb", dep = TRUE) :
> >    installation of package 'Cairo' had non-zero exit status
> > 2: In install.packages("FastRWeb", dep = TRUE) :
> >    installation of package 'FastRWeb' had non-zero exit status
> >
> > so, I tried to install Cairo, but I get the following error:
> >
> > install.packages("Cairo")
> > Installing package(s) into ‘/home/ba/R/i686-pc-linux-gnu-library/2.12’
> > (as ‘lib’ is unspecified)
> > trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/Cairo_1.5-0.tar.gz'
> > Content type 'application/x-gzip' length 81214 bytes (79 Kb)
> > opened URL
> > ==================================================
> > downloaded 79 Kb
> >
> > * installing *source* package ‘Cairo’ ...
> > checking for gcc... gcc
> > checking whether the C compiler works... yes
> > checking for C compiler default output file name... a.out
> > checking for suffix of executables...
> > checking whether we are cross compiling... no
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ISO C89... none needed
> > checking how to run the C preprocessor... gcc -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/ba/R/i686-pc-linux-gnu-library/2.12/Cairo’
> >
> > The downloaded packages are in
> >      ‘/tmp/Rtmpla4fs8/downloaded_packages’
> > Warning message:
> > In install.packages("Cairo") :
> >    installation of package 'Cairo' had non-zero exit status
> >
> > Can you pls. let me know how I can fix this.....thx!
> >                                     
> >     [[alternative HTML version deleted]]
> >
> >
> >
> >
> > ______________________________________________
> > 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.

                                          
        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to