LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2007, 03:52 AM   #1
Harry_Chang
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Unhappy Trouble with running a GTK+ application


Hello everybody. As a newbie of Linux, I'm avid for your help. Thanks a lot!
I have GTK+2.10.7 installed on my Red Hat 9, and I compiled an example from GTK+ turtorial. But when I try to run it, following error message shows:
hello: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory

I can find libpangocairo-1.0.so.0 at /usr/local/lib, but I have no idea why it can not be loaded when running the "hello" program. Any clue?

Below is my installation infromation:

pkg-config --list-all
gmodule-export-2.0 GModule - Dynamic module loader for GLib
cairo cairo - Multi-platform 2D graphics library
gdk-pixbuf-xlib-2.0 GdkPixbuf Xlib - GdkPixbuf rendering for Xlib
cairo-svg cairo-svg - SVG backend for cairo graphics library
cairo-xlib-xrender cairo-xlib_xrender - Xlib Xrender backend for cairo graphics library
pangocairo Pango Cairo - Cairo rendering support for Pango
gdk-x11-2.0 GDK - GIMP Drawing Kit (x11 target)
freetype2 FreeType 2 - A free, high-quality, and portable font engine.
fontconfig Fontconfig - Font configuration and customization library
gmodule-2.0 GModule - Dynamic module loader for GLib
cairo-pdf cairo-pdf - PDF backend for cairo graphics library
gdk-pixbuf-2.0 GdkPixbuf - Image loading and scaling
gtk+-x11-2.0 GTK+ - GIMP Tool Kit (x11 target)
cairo-xlib cairo-xlib - Xlib backend for cairo graphics library
glib-2.0 GLib - C Utility Library
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
gthread-2.0 GThread - Thread support for GLib
libpng libpng12 - Loads and saves PNG files
pangoft2 Pango FT2 - Freetype 2.0 font support for Pango
gtk+-2.0 GTK+ - GIMP Tool Kit (x11 target)
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
libpng12 libpng12 - Loads and saves PNG files
cairo-png cairo-png - PNG backend for cairo graphics library
pangox Pango X - X Window System font support for Pango
cairo-ft cairo-ft - FreeType font backend for cairo graphics library
cairo-ps cairo-ps - PostScript backend for cairo graphics library
pango Pango - Internationalized text handling
gtk+-unix-print-2.0 GTK+ - GIMP Tool Kit Unix print support
gdk-2.0 GDK - GIMP Drawing Kit (x11 target)
atk Atk - Accessibility Toolkit

env
SSH_AGENT_PID=2094
HOSTNAME=SW00206PC1Linux
PVM_RSH=/usr/bin/rsh
DESKTOP_STARTUP_ID=
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
WINDOWID=29360387
OLDPWD=/
QTDIR=/usr/lib/qt-3.1
USER=root
LD_LIBRARY_PATH=\usr\local\lib
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36i=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
PVM_ROOT=/usr/share/pvm3
SSH_AUTH_SOCK=/tmp/ssh-XXkJAgQl/agent.2079
SESSION_MANAGER=local/SW00206PC1Linux:/tmp/.ICE-unix/2079
USERNAME=root
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/mnt/hgfs/sandbox
XMODIFIERS=@im=none
LANG=en_US.UTF-8
LAMHELPFILE=/etc/lam/lam-helpfile
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=3
HOME=/root
XPVM_ROOT=/usr/share/pvm3/xpvm
GNOME_DESKTOP_SESSION_ID=Default
BASH_ENV=/root/.bashrc
LOGNAME=root
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/root/.Xauthority
_=/bin/env
 
Old 01-24-2007, 03:59 AM   #2
The Headacher
Member
 
Registered: Jan 2007
Distribution: Vector Linux
Posts: 90

Rep: Reputation: 15
IIRC, Redhat doesn't have /usr/local/lib in it's ld.so.conf. try adding
Code:
/usr/local/lib
to /etc/ld.so.conf, then run ldconfig and try again.

Last edited by The Headacher; 01-24-2007 at 04:10 AM.
 
Old 01-24-2007, 04:15 AM   #3
Harry_Chang
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by The Headacher
IIRC, Redhat doesn't have /usr/local/lib in it's ld.so.conf. try adding
Code:
/usr/local/lib
to /etc/ld.so.conf, then run ldconfig and try again.
Thhhhhhhhhhanks! It works! The problem really balks me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK multi-threaded application akhil1 Programming 2 01-20-2009 03:59 AM
Trouble running application in Fedora Core jaldana Fedora 1 12-12-2005 10:27 AM
how to link helpblocks application to gtk application m.harshavardhan Linux - Software 0 08-16-2005 08:39 AM
running problem of gtk application sonu1082 Linux - Software 0 11-03-2004 10:12 AM
segmentation fault with my Gtk Application jaganmolleti Programming 1 03-18-2003 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration