# Pango installation problem

**URL:** <https://community.unix.com/t/pango-installation-problem/159291>\
**Category:** Linux\
**Created:** [February 5, 2006, 7:37am UTC](https://community.unix.com/t/pango-installation-problem/159291 "2006-02-05T07:37:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shalabh](https://community.unix.com/letter_avatar/shalabh/32/6_449c533f586939b6e5f246632a46421f.png) [@shalabh](https://community.unix.com/u/shalabh)\
**Post date:** [February 5, 2006, 7:37am UTC](https://community.unix.com/t/pango-installation-problem/159291/1 "2006-02-05T07:37:08Z")

</div>

Hello  
I am trying to install gtk and after installing fontconfig,pkg-config,glib,pango,atk (in that order)i tried installing gtk but it said pango along with cario package is required. So now when i complied cario and then do a "make" for pango it gives the following error

cairosimple.o(.text+0x1e0): In function `main':  
/home/shalabh/gtk1/pango/examples/cairosimple.c:82: undefined reference to `cairo\_surface\_write\_to\_png'  
collect2: ld returned 1 exit status  
make[2]: \*\*\* [cairosimple] Error 1  
[...]

can anyone please help me. btw i am doing ./configure,make and make install to install the packages.  
I would really appreciate any help..i am trying to install gtk for the past 4 days now!

Thank you

---

<div class="post-metadata">

**Author:** ![cbkihong](https://community.unix.com/letter_avatar/cbkihong/32/6_449c533f586939b6e5f246632a46421f.png) [@cbkihong](https://community.unix.com/u/cbkihong)\
**Post date:** [February 5, 2006, 9:03am UTC](https://community.unix.com/t/pango-installation-problem/159291/2 "2006-02-05T09:03:26Z")

</div>

Quite probably gcc cannot locate the cairo library files installed. If your library files are not installed in some standard location (you may see /etc/ld.so.conf for a list) then you may need to specify the LD\_LIBRARY\_PATH shell variable before starting the make.

Also you can try is to do a "make distclean" to put the gtk tree back to the initial state, specify LD\_LIBRARY\_PATH and export it, then rerun configure and make again.

A few weeks ago I installed a GTK2 installation to learn GTK programming in a likewise fashion without problems. The libraries were installed somewhere in my home directory as there is already a systemwide GTK2 installation in Fedora and I didn't want to mess it up. I had to remember to use the LD\_LIBRARY\_PATH to put my custom installation at a higher search priority thereafter when I want to compile.

---

<div class="post-metadata">

**Author:** ![shalabh](https://community.unix.com/letter_avatar/shalabh/32/6_449c533f586939b6e5f246632a46421f.png) [@shalabh](https://community.unix.com/u/shalabh)\
**Post date:** [February 5, 2006, 2:21pm UTC](https://community.unix.com/t/pango-installation-problem/159291/3 "2006-02-05T14:21:34Z")

</div>

thank you for the reply  
I tht maybe I could solve it by installing libpng and zlib  
but after i installed them, my display server is not working on reboot..it keeps trying but fails..please help

thank you
