LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   libpangocairo-1.0.so.0: undefined symbol: cairo_has_show_text_glyphs error (https://www.linuxquestions.org/questions/debian-26/libpangocairo-1-0-so-0-undefined-symbol-cairo_has_show_text_glyphs-error-946836/)

mesuutt 05-25-2012 09:09 AM

libpangocairo-1.0.so.0: undefined symbol: cairo_has_show_text_glyphs error
 
Hi

I am using Debian Squeeze and I wanted to install Gimp 2.8. I installed a lot packages dependencies for Gimp but I could not successfully complete the install of the Gimp package

When installing the Gimp dependent packages, I think I broke a necessary package because now I am getting the following error when I try to start thunar, gedit and more.

Code:

symbol lookup error: /usr/local/lib/libpangocairo-1.0.so.0: undefined symbol: cairo_has_show_text_glyphs
How can I resolve this error?

cynwulf 05-25-2012 09:25 AM

From where did you install gimp 2.8?

Post the output:

Code:

$ cat /etc/apt/sources.list

mesuutt 05-25-2012 10:00 AM

Quote:

Originally Posted by caravel (Post 4687421)
From where did you install gimp 2.8?

Post the output:

Code:

$ cat /etc/apt/sources.list

My sourc.list file's content at below but I did not install gimp by apt-get:
Code:

deb http://ftp.debian.org/debian/ squeeze-updates main contrib
deb http://http.us.debian.org/debian/ squeeze contrib non-free main
deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib

I downloaded gimp source package and I tried to compile. I install a lot dependency packages for gimp but I can't successfully complete.
I do not know which package is causing the error but I tried to install below packages:

Code:

atk-2.2.0.tar.xz
cairo-1.12.2.tar
cairomm-1.2.2.tar.gz
gdk-pixbuf-2.26.1.tar
glib-2.32.3.tar
gtk+-3.4.3.tar
intltool-0.40.6.tar.gz
jpegsrc.v8d.tar.gz
libgimp2.0_2.8.0-2_i386.deb
libpng-1.5.10.tar
pango-1.21.5.tar.gz
pixman-0.22.0.tar.gz
pixman-0.24.4.tar.gz
pycairo-1.10.0.tar.bz2
Python-2.7.tgz
tiff-4.0.1.tar.gz


cynwulf 05-25-2012 10:19 AM

Quote:

Originally Posted by mesuutt (Post 4687449)
My sourc.list file's content at below but I did not install gimp by apt-get:
Code:

deb http://ftp.debian.org/debian/ squeeze-updates main contrib
deb http://http.us.debian.org/debian/ squeeze contrib non-free main
deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib


Your sources.list appears to be missing the security repo which is quite an important one - add this to the end of your sources:

Code:

deb http://security.debian.org/ squeeze/updates main contrib non-free
Quote:

Originally Posted by mesuutt (Post 4687449)
I downloaded gimp source package and I tried to compile. I install a lot dependency packages for gimp but I can't successfully complete.
I do not know which package is causing the error but I tried to install below packages:

Code:

atk-2.2.0.tar.xz
cairo-1.12.2.tar
cairomm-1.2.2.tar.gz
gdk-pixbuf-2.26.1.tar
glib-2.32.3.tar
gtk+-3.4.3.tar
intltool-0.40.6.tar.gz
jpegsrc.v8d.tar.gz
libgimp2.0_2.8.0-2_i386.deb
libpng-1.5.10.tar
pango-1.21.5.tar.gz
pixman-0.22.0.tar.gz
pixman-0.24.4.tar.gz
pycairo-1.10.0.tar.bz2
Python-2.7.tgz
tiff-4.0.1.tar.gz


I see one .deb package there (from where?), the rest look like source tarballs? If you've installed that lot, then it's possible that the same files which are provided by debian packages have been overwritten - hence you have a broken system. You should try reinstalling all the versions of those packages from the repos using apt-get.

Once you've done that you need to do some more reading before trying to backport software and build debian packages. I would suggest this guide for starters: http://www.debianuserforums.org/viewtopic.php?f=9&t=127

Also have a look at backports and try to get the majority of the dependencies from there first: http://backports.debian.org/

Knightron 05-25-2012 10:31 PM

you need gtk2, not gtk3

mesuutt 05-26-2012 04:49 AM

Thanks for reply.
Quote:

I see one .deb package there (from where?)
I don't remember I download from where but I am guessing that I download the package from debian packages
:)

I reinstalled all the packages with apt-get and checked the packages' version that same with the package's default version on squeeze but I am getting same error again.

I need to reinstall debian again ?

mesuutt 05-26-2012 05:02 AM

Quote:

Originally Posted by Knightron (Post 4687897)
you need gtk2, not gtk3

I have gtk+2 2.20.1-2(I checked with apt-cache policy libgtk2.0 command)

thanks

cynwulf 05-26-2012 07:00 AM

Did you reinstall libpango1.0-0?

mesuutt 05-26-2012 07:52 AM

Quote:

Originally Posted by caravel (Post 4688067)
Did you reinstall libpango1.0-0?

Yes I reinstall the libpango1.0-0 without any problem with apt-get install --reinstall libpango1.0-0 command

cynwulf 05-26-2012 08:15 AM

Have a look in /usr/local/lib and see if there any libs installed there.

Reinstall all of the cairo stuff you have installed, e.g this will show you everything you have installed which matches the search pattern "cairo".

Code:

aptitude search ~icairo

mesuutt 05-26-2012 09:19 AM

Yes there are libs in /usr/local/lib but libpangocairo library is in /usr/lib

I have seen two library file in /usr/lib/ directory related with libpangocairo-1.0.so.0 . Probably gives a idea to you.
Quote:

# dlocate libpangocairo-1.0.so.0

libpangocairo1.0-0 /usr/lib/libpangocairo-1.0.so.0.2800.3
libpangocairo1.0-0 /usr/lib/libpangocairo-1.0.so.0
On the system those packages installed about cairo and pango.I reinstalled the all packages but I am still getting the same error.

Quote:

libcairo-ocaml
libcairo-perl
libcairo2
libcairo2-dev
libcairomm-1.0-1
libmono-cairo2.0-cil
python-cairo

libpango-perl
libpango1.0-0
libpango1.0-common
libpango1.0-dev
libpangomm-1.4.1


cynwulf 05-26-2012 12:26 PM

What do you have in /usr/local/lib ?

On my system: nothing.

Knightron 05-26-2012 09:26 PM

Quote:

Originally Posted by mesuutt (Post 4688030)
I have gtk+2 2.20.1-2(I checked with apt-cache policy libgtk2.0 command)

thanks

Need more

Quote:

4. You need to have installed GTK+ version 2.24.10 or newer.

mesuutt 05-28-2012 03:08 AM

I dont know why but the problem resolved when I remove files that related with dependent libraries of gimp in /usr/local/lib :)

cynwulf 05-28-2012 04:29 AM

Before you try again see Knightron's post regarding the GTK version... the newer GTK also depends on newer libc6, etc...

If you really need Gimp 2.8 you might be better off upgrading to the testing branch where you can simply apt-get it from the repositories.


All times are GMT -5. The time now is 09:46 AM.