Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Build librsvg-2.34.2 Error
Date: Fri, 03 Feb 2012 15:20:58
Message-Id: CA+czFiD8GSsmdpukbx8P0r9sAXr5ROstLve+70SKBPqsejSO9w@mail.gmail.com
In Reply to: [gentoo-user] Build librsvg-2.34.2 Error by "高金培"
1 On Fri, Feb 3, 2012 at 9:51 AM, 高金培 <gjp1120@×××××.com> wrote:
2 >   CC     librsvg_2_la-librsvg-enum-types.lo
3 > /bin/sh ./libtool --silent --tag=CC   --mode=compile i686-pc-linux-gnu-gcc
4 > -DHAVE_CONFIG_H -I.  -I. -I. -DG_LOG_DOMAIN=\"librsvg\"
5 > -DLIBRSVG_DATADIR="\"/usr/share\""   -pthread -I/usr/include/gdk-pixbuf-2.0
6 > -I/usr/include/libpng15 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
7 > -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/freetype2
8 > -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm
9 > -I/usr/include/libcroco-0.6 -I/usr/include/glib-2.0
10 > -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -DHAVE_LIBCROCO=1   -O2
11 > -march=pentium-m -pipe -c -o librsvg_2_la-librsvg-enum-types.lo `test -f
12 > 'librsvg-enum-types.c' || echo './'`librsvg-enum-types.c
13 >   CCLD   librsvg-2.la
14 >   CCLD   rsvg-convert
15 >   GISCAN Rsvg-2.0.gir
16 >   CCLD   rsvg-view
17
18
19 > In file included from <stdin>:19:0:
20 > /var/tmp/portage/gnome-base/librsvg-2.34.2/work/librsvg-2.34.2/rsvg-cairo-render.h:32:19:
21 > fatal error: cairo.h: No such file or directory
22 > compilation terminated.
23
24 I suspect you don't have cairo emerged.
25
26 >  * If you need support, post the output of 'emerge --info
27 > =gnome-base/librsvg-2.34.2',
28 >  * the complete build log and the output of 'emerge -pqv
29 > =gnome-base/librsvg-2.34.2'.
30 >  * The complete build log is located at
31 > '/var/tmp/portage/gnome-base/librsvg-2.34.2/temp/build.log'.
32 >  * The ebuild environment file is located at
33 > '/var/tmp/portage/gnome-base/librsvg-2.34.2/temp/environment'.
34 >  * S: '/var/tmp/portage/gnome-base/librsvg-2.34.2/work/librsvg-2.34.2'
35
36 Before you go any farther, save the output of the commands it's asking about.
37
38 sudo emerge --info gnome-base/librsvg-2.34.2 >
39 ~/emerge.info.gnome-base.librsvg-2.34.2.txt
40 sudo emerge -pqv gnome-base/librsvg-2.34.2 >
41 ~/emerge.pqv.gnome-base.librsvg-2.34.2.txt
42 sudo cp /var/tmp/portage/gnome-base/librsvg-2.34.2/temp/build.log
43 ~/build.log.gnome-base.librsvg-2.34.2.txt
44 sudo cp /var/tmp/portage/gnome-base/librsvg-2.34.2/temp/environment
45 ~/environment.gnome-base.librsvg-2.34.2.txt
46
47 If you need to file a bug report, you'll need to attach those to it.
48
49 To install cairo, try
50
51 emerge x11-libs/cairo
52
53 Assuming that works, try
54
55 emerge --resume
56
57 If the build works, you should be good. If you get the same error,
58 then you should file a bug report at bugs.gentoo.org.
59
60 --
61 :wq

Replies

Subject Author
Re: [gentoo-user] Build librsvg-2.34.2 Error Michael Mol <mikemol@×××××.com>