LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-11-2009, 03:05 AM   #1
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Rep: Reputation: 0
How to install shared library on Centos 5.2


Hi!

So, I am using Centos 5.2, and I installed all of the available gnome and gnome development libraries available via the "add software" menu item. Still, when running some programs, I get the following error message:

"error while loading shared libraries: libzvt.so.2: cannot open shared object file: No such file or directory"

If I understood it correctly, libzvt.so.2 is part of some gnome libs... Could someone tell me where to find and how to install them?

Thanks!
 
Old 02-11-2009, 03:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It's part of gnome-libs-devel

Cheers
 
Old 02-11-2009, 06:16 AM   #3
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks! But how do I proceed with the installation?

yum install gnome-libs-devel

doesn't work...
 
Old 02-11-2009, 07:30 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If yum doesn't work, then download the package locally and use rpm to install.

Last edited by bathory; 02-11-2009 at 07:36 AM.
 
Old 02-11-2009, 07:38 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
On my Centos 5.2 box I get
Code:
$ yum whatprovides libzvt.so.2
Loading "priorities" plugin
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * kbs-CentOS-Extras: centos.karan.org
 * rpmforge: ftp-stud.fht-esslingen.de
 * base: mi.mirror.garr.it
 * updates: mi.mirror.garr.it
 * addons: mi.mirror.garr.it
 * kbs-CentOS-Testing: centos.karan.org
 * extras: mi.mirror.garr.it
781 packages excluded due to repository priority protections
gnome-libs.i386 : The main GNOME1 libraries
Have you gnome-libs installed? What does "doesn't work" mean? Can you post the exact error message (if any)?
 
Old 02-12-2009, 02:17 AM   #6
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Well, I tried " yum whatprovides libzvt.so.2" on my computer, and I got:

Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: ftp.halifax.rwth-aachen.de
* updates: ftp.halifax.rwth-aachen.de
* centosplus: centos.bio.lmu.de
* addons: ftp.halifax.rwth-aachen.de
* extras: centos.bio.lmu.de
Excluding Packages from CentOS-5 - Base
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
No Matches found

Any ideas?
 
Old 02-12-2009, 02:28 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by Dtbzz View Post
Excluding Packages from CentOS-5 - Base
Your configuration excludes the Base repository for some reason. Check the file /etc/yum.repos.d/CentOS-Base.repo and see if the base repository is enabled. Also check under /etc/yum/pluginconf.d if you have some specific configuration (for example the priorities configuration) that prevents the Base repo to be used.

Anyway, the package gnome-libs.i386 is provided by the centos.karan.org repository for my system. You can eventually install this repo and do the search again.

Useful additional repositories for Centos are listed here.
 
Old 02-12-2009, 06:03 AM   #8
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
I followed the instructions provided by:

http://wiki.centos.org/AdditionalRes...s%2FCentOSPlus

in order to install Reiserfs support on the computer. If I understand them correctly, they don't exclude the Centos-Base-Repository, but for the sake of completness, I'll post my centos-base.repo:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel kernel-devel kernel-PAE-*
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
includepkgs=kernel* jfsutils reiserfs-utils
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


And my yum.conf:

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d



The installation of the centos.karan.org repo did not change anything, either
 
Old 02-12-2009, 07:04 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by Dtbzz View Post
The installation of the centos.karan.org repo did not change anything, either
This is really strange. Apart the problem with the Base repository, you can try to manually download the gnome-libs package and install using
Code:
yum localinstall gnome-libs-1.4.2-5.el5.kb.i386.rpm
Here is the direct link for downloading: http://centos.karan.org/el5/extras/t...l5.kb.i386.rpm (provided that your architecture is i386, that is 32-bit). At least it should resolve the issue with the missing shared library!
 
Old 02-16-2009, 01:34 AM   #10
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry, this does not work, either - here is the output:

yum localinstall gnome-libs-1.4.2-5.e15.kb.i386.rpm
Loading "fastestmirror" plugin
Setting up Local Package Process
Loading mirror speeds from cached hostfile
* kbs-CentOS-Misc: centos.karan.org
* base: centos.intergenia.de
* updates: centos.intergenia.de
* centosplus: centos.intergenia.de
* addons: ftp.halifax.rwth-aachen.de
* extras: centos.intergenia.de
kbs-CentOS-Misc 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
centosplus 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages from CentOS-5 - Base
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
Cannot open file: gnome-libs-1.4.2-5.e15.kb.i386.rpm. Skipping.
Nothing to do

Any ideas left? Anyway, thanks already for the help!
 
Old 02-16-2009, 01:52 AM   #11
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by Dtbzz View Post
Cannot open file: gnome-libs-1.4.2-5.e15.kb.i386.rpm. Skipping.
Nothing to do
You sure the downloaded file is in the directory where you run the yum command? Has it exactly that name? The error above means "file not found".
 
Old 02-16-2009, 02:13 AM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Dtbzz

By any chance are you running the 64bit version of Centos?

Edit: What specific programs are you trying to run that are asking for libzvt?

Last edited by lazlow; 02-16-2009 at 02:29 AM.
 
Old 02-16-2009, 08:11 AM   #13
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
It's a software that someone in our institute programmed, apparently for an older version of gnome? And no, it's 32 bit Centos and the installation worked fine this time, thanks. Now I just have to resolve the dependencies
 
Old 02-16-2009, 08:29 AM   #14
Dtbzz
LQ Newbie
 
Registered: Feb 2009
Distribution: Centos, Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Is there another way of finding out which package I have to download in order to resolve the dependencies besides

Code:
yum whatprovides *
?
 
  


Reply

Tags
centos, libraries



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
gcc link shared library against another shared library qcp Linux - Newbie 1 07-25-2008 11:15 AM
F8 install 'exec of anaconda failed: accessing corrupted shared library' terry-duell Fedora 8 02-14-2008 11:13 PM
How do I install a shared library? NichA Linux - Newbie 2 08-04-2007 06:30 PM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM

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

All times are GMT -5. The time now is 08:42 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