Vincent Carmona wrote in post #995328:
> 2011/4/8 Andrea Dallera <andrea@...>:
>> checking for new allocation framework... yes
>>
> I just tested to run "ruby extconf.rb" in glib2 directory on ubuntu
> 11.04.
> I have the same error. I Install libglib2.0-dev package to resolve it.
> I can now build ruby-glib2 without errors.
>
>
> libglib2.0-dev installs /usr/lib/pkgconfig/gobject-2.0.pc file that
> why I ask to check for it in a previous mail.
Installing libglib2.0-dev didn't work on my 11.04 Ubuntu machine. It
turns out that on Natty some .pc files (including gobject-2.0.pc) are
placed in /usr/lib/i386-linux-gnu/pkgconfig instead of
/usr/lib/pkgconfig; thus I solved the problem by following these steps:
$ sudo apt-get install {libpango1.0,libglib2.0,libatk1.0,libcairo2,\
libgdk-pixbuf2.0,libgtk2.0}-dev
$ cd /usr/lib/pkgconfig/
$ sudo ln -s ../i386-linux-gnu/pkgconfig/{atk,fontconfig,\
freetype2,gio-2.0,gio-unix-2.0,glib-2.0,gmodule-no-export-2.0,\
gobject-2.0,gthread-2.0,libpng,pangocairo,pangoft2,pango,\
x11,xau,xcb,xcb-render,xcb-shm,xcomposite,xcursor,xdamage,xdmcp,\
xext,xfixes,xinerama,xi,xrandr,xrender}.pc .
$ sudo gem install gtk2
Hope it helps.
-abc
--
Posted via http://www.ruby-forum.com/.
|